Sha256: 481e8bdb96cd64175d17dfd6d1b94e3ae1dd28d4d2a678c530f6167a57095a0d

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

module Pxpay
  # The base Pxpay class, contains the acceptable currency types and the details that are returned from Payment Express
  class Base
    @@pxpay_request_url = "https://sec.paymentexpress.com/pxpay/pxaccess.aspx"

    class << self
      attr_accessor :pxpay_user_id, :pxpay_key, :url_success, :url_failure, :pxpay_request_url

      # A list of the acceptable payment currencies
      # See http://www.paymentexpress.com/technical_resources/ecommerce_hosted/pxpay.html#Properties
      def 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 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pxpay-0.2.4 lib/pxpay/base.rb