Class: Afterpay::Components::Payment

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/payment.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Initializable

included, #initialize

Methods included from Representable

#as_json, included

Instance Attribute Details

#amountAfterpay::Components::Money

The refund amount.



19
20
21
# File 'lib/afterpay/components/payment.rb', line 19

def amount
  @amount
end

#merchant_referenceString

The merchant’s order id / reference that this payment corresponds to

Returns:

  • (String)


14
15
16
# File 'lib/afterpay/components/payment.rb', line 14

def merchant_reference
  @merchant_reference
end

#tokenString

The token returned in the order creation request.

Returns:

  • (String)


9
10
11
# File 'lib/afterpay/components/payment.rb', line 9

def token
  @token
end