Class: ActiveMerchant::Billing::ApplePayPaymentToken
- Inherits:
-
PaymentToken
- Object
- PaymentToken
- ActiveMerchant::Billing::ApplePayPaymentToken
- Defined in:
- lib/active_merchant/billing/apple_pay_payment_token.rb
Instance Attribute Summary collapse
-
#payment_instrument_name ⇒ Object
readonly
This is a representation of the token object specified here: developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentToken_Ref/ developer.apple.com/library/IOs//documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html.
-
#payment_network ⇒ Object
readonly
This is a representation of the token object specified here: developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentToken_Ref/ developer.apple.com/library/IOs//documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html.
-
#transaction_identifier ⇒ Object
Returns the value of attribute transaction_identifier.
Attributes inherited from PaymentToken
Instance Method Summary collapse
-
#initialize(payment_data, options = {}) ⇒ ApplePayPaymentToken
constructor
A new instance of ApplePayPaymentToken.
- #type ⇒ Object
Constructor Details
#initialize(payment_data, options = {}) ⇒ ApplePayPaymentToken
Returns a new instance of ApplePayPaymentToken.
11 12 13 14 15 |
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 11 def initialize(payment_data, = {}) super @payment_instrument_name = @metadata[:payment_instrument_name] @payment_network = @metadata[:payment_network] end |
Instance Attribute Details
#payment_instrument_name ⇒ Object (readonly)
This is a representation of the token object specified here: developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentToken_Ref/ developer.apple.com/library/IOs//documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html
8 9 10 |
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 8 def payment_instrument_name @payment_instrument_name end |
#payment_network ⇒ Object (readonly)
This is a representation of the token object specified here: developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentToken_Ref/ developer.apple.com/library/IOs//documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html
8 9 10 |
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 8 def payment_network @payment_network end |
#transaction_identifier ⇒ Object
Returns the value of attribute transaction_identifier.
9 10 11 |
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 9 def transaction_identifier @transaction_identifier end |
Instance Method Details
#type ⇒ Object
17 18 19 |
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 17 def type 'apple_pay' end |