\ImprovedPaystationHostedPayment
PaystationHostedPayment - www.paystation.co.nz Contains improvements
Test cards:
Type - number - expiry - security code
VISA - 5123456789012346 - 0513 - 100
MASTERCARD - 5123456789012346 - 0513 - 100
How to get different responses (by changing transaction cents value):
cents - response - response code
.00 - approved - 0
.51 - Insufficient Funds -5
.57 - Invalid transaction - 8
.54 - Expired card - 4
.91 - Error communicating with bank - 6
URL paramaters:
paystation (REQUIRED)
pstn_pi = paystation ID (REQUIRED) - This is an initiator flag for the payment engine and can be nothing, or if your environment requires to assign a value please send ‘_empty’
pstn_gi = Gateway ID (REQUIRED) - The Gateway ID that the payments will be made against
pstn_ms = Merchant Session (REQUIRED) - a unique identification code for each financial transaction request. Used to identify the transaction when tracing transactions. Must be unique for each attempt at every transaction.
pstn_am = Ammount (REQUIRED) - the amount of the transaction, in cents.
pstn_cu = Currency - the three letter currency identifier. If not sent the default currency for the gateway is used.
pstn_tm = Test Mode - sets the Paystation server into Test Mode (for the single transaction only). It uses the merchants TEST account on the VPS server, and marks the transaction as a Test in the Paystation server. This allows the merchant to run test transactions without incurring any costs or running live card transactions.
pstn_mr = Merchant Reference Code - a non-unique reference code which is stored against the transaction. This is recommended because it can be used to tie the transaction to a merchants customers account, or to tie groups of transactions to a particular ledger at the merchant. This will be seen from Paystation Admin. pstn_mr can be empty or omitted.
pstn_ct = Card Type - the type of card used. When used, the card selection screen is skipped and the first screen displayed from the bank systems is the card details entry screen. Your merchant account must be enabled for External Payment Selection (EPS), you may have to ask your bank to enable this - check with us if you have problems. CT cannot be empty, but may be omitted.
pstn_af = Ammount Format - Tells Paystation what format the Amount is in. If omitted, it will be assumed the amount is in cents
Synopsis
- // members
- public static array $db = ;
- protected static string $privacy_link = 'http://paystation.co.nz/privacy-policy';
- protected static string $logo = 'payment/images/payments/paystation.jpg';
- protected static string $url = 'https://www.paystation.co.nz/direct/paystation.dll';
- protected static boolean $test_mode = false;
- protected static $paystation_id;
- protected static $gateway_id;
- protected static $merchant_ref;
- protected static $returnurl = NULL;
- // methods
- public static void set_test_mode()
- public static void set_return_url()
- public static void set_paystation_id()
- public static void set_gateway_id()
- public static void set_merchant_ref()
- public static void get_paystation_id()
- public void getPaymentFormFields()
- public void getPaymentFormRequirements()
- public void processPayment()
- public void ProcessError()
- public void RedirectJavascript()
- public void redirectToReturnURL()
Hierarchy
Extends
- Payment
Tasks
Line | Task |
---|---|
219 | show some default thing if there's no return url?...or throw error immediately in the processPayment method? |
Members
protected
- $gateway_id
- $logo
- $merchant_ref
- $paystation_id
- $privacy_link
- $returnurl
- $test_mode
- $url
public
- $db