Sha256: cd23f977d88a25caa584fa59f8fd9a17f54be9db7becdd7efc50bb8c0abeecdb

Contents?: true

Size: 362 Bytes

Versions: 8

Compression:

Stored size: 362 Bytes

Contents

module CatarsePaypalExpress
  class ContributionActions

    def initialize contribution
      @contribution = contribution
    end

    def refund
      refund_request = gateway.refund(nil, @contribution.payment_id)
      refund_request.success?
    end

    private

    def gateway
      @gateway ||= CatarsePaypalExpress::Gateway.instance
    end

  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
catarse_paypal_express-2.2.4 lib/catarse_paypal_express/contribution_actions.rb
catarse_paypal_express-3.0.2 lib/catarse_paypal_express/contribution_actions.rb
funddit_paypal_express-3.0.1 lib/catarse_paypal_express/contribution_actions.rb
catarse_paypal_express-3.0.1 lib/catarse_paypal_express/contribution_actions.rb
catarse_paypal_express-3.0.0 lib/catarse_paypal_express/contribution_actions.rb
catarse_paypal_express-2.2.3 lib/catarse_paypal_express/contribution_actions.rb
catarse_paypal_express-2.2.2 lib/catarse_paypal_express/contribution_actions.rb
catarse_paypal_express-2.2.1 lib/catarse_paypal_express/contribution_actions.rb