Sha256: c20130d101d68b3d3ae50d1dce16cfc3bcaea87503568f6b088aaf3e8623be69

Contents?: true

Size: 762 Bytes

Versions: 111

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

111 entries across 111 versions & 8 rubygems

Version Path
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
activemerchant-1.116.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.114.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.113.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.112.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.111.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.110.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.109.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.108.0 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.107.4 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.107.3 lib/active_merchant/billing/apple_pay_payment_token.rb
activemerchant-1.107.2 lib/active_merchant/billing/apple_pay_payment_token.rb