Sha256: c20130d101d68b3d3ae50d1dce16cfc3bcaea87503568f6b088aaf3e8623be69

Contents?: true

Size: 762 Bytes

Versions: 102

Compression:

Stored size: 762 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class ApplePayPaymentToken < PaymentToken
      # This is a representation of the token object specified here:
      # https://developer.apple.com/library/ios/documentation/PassKit/Reference/PKPaymentToken_Ref/
      # https://developer.apple.com/library/IOs//documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html

      attr_reader :payment_instrument_name, :payment_network
      attr_accessor :transaction_identifier

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

      def type
        'apple_pay'
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 7 rubygems

Version Path
activemerchant-1.98.0 lib/active_merchant/billing/apple_pay_payment_token.rb
active_accountability_merchant-1.97.1 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.97.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.96.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.95.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.94.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.93.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.92.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.91.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.90.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.89.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.88.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.87.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.86.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.85.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.84.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.83.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.82.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.81.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.80.0 lib/active_merchant/billing/apple_pay_payment_token.rb