Within this Response POST you will receive a Security key which is a 10-digit alphanumeric code that is used in digitally signing the transaction. This value (security key) MUST be stored in your database, as it will be required if you needed to REFUND the payment.
If the transaction was authorised, the Status field containing
"OK" there will also be a field called 'TxAuthNo'. This is not the authorisation code from the bank but instead a unique reference number to that authorisation, called the VPSAuthCode.
This is the transaction ID sent to the bank during settlement (we cannot use your VendorTxCode because it is too long and might contain letters) so the bank will use this value to refer to your transaction if they need to contact you about it. You should store this value in your database along with all the other values returned to you.
The TxAuthNo field is
ONLY present if the transaction was authorised by the bank. All other messages are authorisation failures of one type or another (see
Appendix A2 above for full details of the fields and errors returned by VSP Direct) and you should inform your customer that their payment was not accepted.
If you do receive an
"OK" status and a TxAuthNo, you should display a completion page for your shopper thanking them for their order.
Having stored the relevant transaction ids in your database, your payment processing is now complete.
IMPORTANT
Once again, we would point out that it is crucial that you store these details in your database alongside the shopper and order details for this transaction. This is very important for your own records so you can match the transaction details to your shopper and their purchase from your online store. The Protx Admin area does contain basic information on the Shoppers transaction, like the billing address, Shopper name etc. but having your own database is far more comprehensive and can be tailored to your needs.
Another very important fact for storing the VPSTxId, SecurityKey and VendorTxCode is you can automate more than payments. VSP Direct and VSP Server place you in control of your transactions. Because you will have your own secure database servers and web servers on which you store details of your shoppers and their transactions, you may well wish to automate many of the daily procedures, such as
RELEASING and
ABORTING DEFERRED transactions,
REPEATING regular payments or issuing
REFUNDS to customers.
The processes of RELEASING a payment, or REFUNDING a transaction, are essentially the same as registering a VSP Server or VSP Direct payment. Your server sends an HTTPS POST containing a collection of Name=Value pairs directly to the VSP system, which validates the information and either carries out the instruction returning an OK status and any relevant transaction Ids and authorisation codes for you to store in your database, or generates an INVALID, MALFORMED, NOTAUTHED or ERROR Status with a description of the error in the StatusDetail field.
For Further information please go to
payment types section on our website - you should use this section in conjunction with our VSP Server and Direct Shared Protocol document which can be downloaded
here.