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
swiss-activemerchant-1.0.6 lib/active_merchant/billing/apple_pay_payment_token.rb
swiss-activemerchant-1.0.5 lib/active_merchant/billing/apple_pay_payment_token.rb
swiss-activemerchant-1.0.4 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.137.0 lib/active_merchant/billing/apple_pay_payment_token.rb
swiss-activemerchant-1.0.2 lib/active_merchant/billing/apple_pay_payment_token.rb
swiss-activemerchant-1.0.1 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.133.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.131.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.130.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.129.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.126.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.125.0 lib/active_merchant/billing/apple_pay_payment_token.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.124.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.123.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.121.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.120.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.119.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.118.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.117.0 lib/active_merchant/billing/apple_pay_payment_token.rb