Class: ActiveMerchant::Billing::ApplePayPaymentToken

Inherits:
PaymentToken
  • Object
show all
Defined in:
lib/active_merchant/billing/apple_pay_payment_token.rb

Instance Attribute Summary collapse

Attributes inherited from PaymentToken

#payment_data

Instance Method Summary collapse

Constructor Details

#initialize(payment_data, options = {}) ⇒ ApplePayPaymentToken


11
12
13
14
15
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 11

def initialize(payment_data, options = {})
  super
  @payment_instrument_name = @metadata[:payment_instrument_name]
  @payment_network = @metadata[:payment_network]
end

Instance Attribute Details

#payment_instrument_nameObject (readonly)


8
9
10
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 8

def payment_instrument_name
  @payment_instrument_name
end

#payment_networkObject (readonly)


8
9
10
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 8

def payment_network
  @payment_network
end

#transaction_identifierObject

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

#typeObject


17
18
19
# File 'lib/active_merchant/billing/apple_pay_payment_token.rb', line 17

def type
  'apple_pay'
end