Payment Response
The following are the parameters returned by WebPAY for real time transactions.
Field | Field Description | Expected Values |
---|---|---|
apprAmt | Will always have a value of 0 | 0 |
cardNum | Will always have a value of 0 | 0 |
payRef | A reference number that uniquely identifies all transactions that goes through the gateway | variable |
retRef | Reference number from the switch’s interconnecting with the banking application | variable |
txnref | The transaction Reference initially generated & sent by the merchant site will be sent back with this variable | variable |
Note: CollegePAY will perform a HTTP POST to the site_redirect_url sent in the initial request/payment leg. You should use the txn_ref sent to your site_redirect_url to query Interswitch for transaction data (next section)
Successful Transaction Response
https://sandbox.interswitchng.com/webpay/pay/ResponsePost/?txnRef=754348&payRef=FBN|WEB|WEBP|20-10-2015|167377&retRef=000000106903&cardNum=0&apprAmt=0&url=http%3a%2f%2flocalhost%2fwebpstaging%2ftpay.php
Failed Transaction Response
https://sandbox.interswitchng.com/webpay/Pay/ResponsePost/?txnRef=JB3813821&payRef=&retRef=&cardNum=0&apprAmt=0&amt=66666&url=http%3a%2f%2flocalhost%2fdemopay4%2fredirect4.php
Please note, for a failed transaction some response parameters will be empty
The POST back sent from Interswitch can be viewed using Firefox browser as below:-