Sha256: db1071c6d77d7f05d783aa897c8b05a29c4991812fa39ec79eb328b1e4426ec6

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
spreedly-2.0.20 lib/spreedly/transactions/auth_purchase.rb
spreedly-2.0.19 lib/spreedly/transactions/auth_purchase.rb