class Pxpay::Base

The base Pxpay class, contains the acceptable currency types and the details that are returned from Payment Express

Attributes

pxpay_key[RW]
pxpay_request_url[W]
pxpay_user_id[RW]
url_failure[RW]
url_success[RW]

Public Class Methods

currency_types() click to toggle source

A list of the acceptable payment currencies See www.paymentexpress.com/technical_resources/ecommerce_hosted/pxpay.html#Properties

# File lib/pxpay/base.rb, line 15
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
pxpay_request_url() click to toggle source
# File lib/pxpay/base.rb, line 10
def pxpay_request_url
  @pxpay_request_url ||= "https://sec.paymentexpress.com/pxpay/pxaccess.aspx"
end
return_details() click to toggle source

The currently returned details from Payment Express. Access with Pxpay::Base.return_details

# File lib/pxpay/base.rb, line 20
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