Sha256: 21076f778799bff62dd48f37b6f9c668532d7052645c41c797daf4724692a45f

Contents?: true

Size: 881 Bytes

Versions: 109

Compression:

Stored size: 881 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    # Base class representation of cryptographic payment data tokens that may be used for EMV-style transactions
    # like Apple Pay. Payment data may be transmitted via any data type, and may also be padded
    # with metadata specific to the cryptographer. This metadata should be parsed and interpreted in concrete
    # implementations of your given cryptographer. Like credit cards, you must also return a string representing
    # the token's type, like 'apple_pay' or 'stripe' should your target payment gateway process these tokens.
    class PaymentToken
      attr_reader :payment_data

      def initialize(payment_data, options = {})
        @payment_data = payment_data
        @metadata = options.with_indifferent_access
      end

      def type
        raise NotImplementedError
      end
    end
  end
end

Version data entries

109 entries across 109 versions & 7 rubygems

Version Path
swiss-crm-activemerchant-1.0.15 lib/active_merchant/billing/payment_token.rb
swiss-crm-activemerchant-1.0.14 lib/active_merchant/billing/payment_token.rb
swiss-crm-activemerchant-1.0.13 lib/active_merchant/billing/payment_token.rb
swiss-crm-activemerchant-1.0.12 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.11 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.10 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.9 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.8 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.7 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.6 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.5 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.4 lib/active_merchant/billing/payment_token.rb
activemerchant-1.137.0 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.2 lib/active_merchant/billing/payment_token.rb
swiss-activemerchant-1.0.1 lib/active_merchant/billing/payment_token.rb
activemerchant-1.133.0 lib/active_merchant/billing/payment_token.rb
activemerchant-1.131.0 lib/active_merchant/billing/payment_token.rb
activemerchant-1.130.0 lib/active_merchant/billing/payment_token.rb
activemerchant-1.129.0 lib/active_merchant/billing/payment_token.rb
activemerchant-1.126.0 lib/active_merchant/billing/payment_token.rb