Class: Pxpay::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pxpay/base.rb

Overview

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.pxpay_keyObject

Returns the value of attribute pxpay_key.



7
8
9
# File 'lib/pxpay/base.rb', line 7

def pxpay_key
  @pxpay_key
end

.pxpay_request_urlObject



10
11
12
# File 'lib/pxpay/base.rb', line 10

def pxpay_request_url
  @pxpay_request_url ||= "https://sec.paymentexpress.com/pxpay/pxaccess.aspx"
end

.pxpay_user_idObject

Returns the value of attribute pxpay_user_id.



7
8
9
# File 'lib/pxpay/base.rb', line 7

def pxpay_user_id
  @pxpay_user_id
end

.url_failureObject

Returns the value of attribute url_failure.



7
8
9
# File 'lib/pxpay/base.rb', line 7

def url_failure
  @url_failure
end

.url_successObject

Returns the value of attribute url_success.



7
8
9
# File 'lib/pxpay/base.rb', line 7

def url_success
  @url_success
end

Class Method Details

.currency_typesObject



15
16
17
# 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

.return_detailsObject

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



20
21
22
# 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