Sha256: 4b103a619c793b8c71ca7ed69f0bb6aaec72abc4079cbd703daab33159af1f3e

Contents?: true

Size: 532 Bytes

Versions: 7

Compression:

Stored size: 532 Bytes

Contents

module Spreedly
  class AuthPurchase < GatewayTransaction
    field :currency_code, :checkout_url, :checkout_form, :redirect_url, :callback_url
    field :required_action, :challenge_form, :challenge_url, :device_fingerprint_form
    field :stored_credential_initiator, :stored_credential_reason_type, :three_ds_context
    field :amount, type: :integer

    attr_reader :payment_method

    def initialize(xml_doc)
      super
      @payment_method = PaymentMethod.new_from(xml_doc.at_xpath('.//payment_method'))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spreedly-2.0.28 lib/spreedly/transactions/auth_purchase.rb
spreedly-2.0.27 lib/spreedly/transactions/auth_purchase.rb
spreedly-2.0.26 lib/spreedly/transactions/auth_purchase.rb
spreedly-2.0.25 lib/spreedly/transactions/auth_purchase.rb
spreedly-2.0.24 lib/spreedly/transactions/auth_purchase.rb
spreedly-2.0.23 lib/spreedly/transactions/auth_purchase.rb
spreedly-2.0.22 lib/spreedly/transactions/auth_purchase.rb