Sha256: 4763efc4a57c9fb80425c62cbb2e23c94e1cbd823a2485b56dbcf66a8d6836d7

Contents?: true

Size: 444 Bytes

Versions: 7

Compression:

Stored size: 444 Bytes

Contents

module Workarea
  class Payment
    class Refund
      class Paypal
        include OperationImplementation

        def complete!
          validate_reference!

          transaction.response =
            Workarea::Paypal.gateway.refund(
              transaction.reference.response.params['id'],
              amount: transaction.amount
            )
        end

        def cancel!
          # noop
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
workarea-paypal-3.0.6 app/models/workarea/payment/refund/paypal.rb
workarea-paypal-3.0.5 app/models/workarea/payment/refund/paypal.rb
workarea-paypal-3.0.4 app/models/workarea/payment/refund/paypal.rb
workarea-paypal-3.0.3 app/models/workarea/payment/refund/paypal.rb
workarea-paypal-3.0.2 app/models/workarea/payment/refund/paypal.rb
workarea-paypal-3.0.1 app/models/workarea/payment/refund/paypal.rb
workarea-paypal-3.0.0 app/models/workarea/payment/refund/paypal.rb