Sha256: 6751fceb3c7b439419603d6668014045c47cf879d944905cd30fc3a682456c64

Contents?: true

Size: 936 Bytes

Versions: 4

Compression:

Stored size: 936 Bytes

Contents

module Pxpay
  # The base Pxpay class, contains the acceptable currency types and the details that are returned from Payment Express
  class Base
    # A list of the acceptable payment currencies
    # See http://www.paymentexpress.com/technical_resources/ecommerce_hosted/pxpay.html#Properties
    def self.currency_types
      %w( CAD CHF EUR FRF GBP HKD JPY NZD SGD USD ZAR AUD WST VUV TOP SBD PNG MYR KWD FJD )
    end
    
    # The currently returned details from Payment Express. Access with Pxpay::Base.return_details
    def self.return_details
      [ :dps_billing_id, :txn_data1, :success, :card_number2, :email_address, :card_number, :amount_settlement, :txn_data2, :client_info, :date_expiry, :currency_settlement, :txn_data3, :txn_id, :txn_type, :date_settlement, :auth_code, :dps_txn_ref, :currency_input, :txn_mac, :card_name, :billing_id, :merchant_reference, :response_text, :card_holder_name ]
    end      
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pxpay-0.1.8 lib/pxpay/base.rb
pxpay-0.1.5 lib/pxpay/base.rb
pxpay-0.1.3 lib/pxpay/base.rb
pxpay-0.1.2 lib/pxpay/base.rb