Sha256: bf29b220aac2303fe35d8432636c13736747ba8c108b8840dde41513a9f66bdd

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 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
    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

1 entries across 1 versions & 1 rubygems

Version Path
spreedly-2.0.21 lib/spreedly/transactions/auth_purchase.rb