Testing your code
Anchor provides a testing environment for the payment gateway and we require that users perform some initial testing before switching over to the live payment gateway system.
Please file a support request to get your test environment set up if you would like to integrate your code with the Anchor Payment Gateway (APG).
When testing your payment gateway code, it is important to check that your code will deal with any error code that APG may return. A full list of the response codes can be found on the APG Response Codes page.
When connected to the testing environment, you can use the purchase amount to control which error code you will get back; the cents part of the amount will be returned as the response code. Note that this is a behavior specific to the testing environment.
When using the test payment gateway you can not use an arbitrary product value.
You should test that your code behaves sensibly in all of these cases before accepting real payments.
Test Credit Card Numbers
The testing gateway will accept any valid credit card number & current expiry date.
No charges will ever be made to the card used. However you can use the following test card numbers.
The test gateway does not support American Express card numbers for testing.
Card Number |
Expiry |
Card Type |
5105105105105100 |
1219 |
Mastercard |
4012888888881881 |
1219 |
Visa |
Purchase Values & Response Code Table
Amount |
Response code |
Response Summary |
Meaning |
10.00 |
000 |
APPROVED |
The transaction was successful. |
10.02 |
198 |
DECLINED |
Declined for other reasons, in this case the upstream gateway indicates refer to card issuers special conditions. |
10.03 |
101 |
DECLINED |
Invalid merchant. The merchant details we have are incorrect. If you ever see this on the live gateway please contact anchor support. |
10.08 |
000 |
APPROVED |
The transaction was successful. |
10.13 |
106 |
DECLINED |
Transaction was declined due to an Invalid transaction. This is the response from our upstream gateway provider. |
10.14 |
102 |
DECLINED |
Invalid card details, check the card number or expiry values. |
10.19 |
107 |
DECLINED |
Transaction failed, please retry. |
10.33 |
102 |
DECLINED |
Invalid card details, check the card number or expiry values. |
10.34 |
105 |
DECLINED |
Suspected fraud or reported lost/stolen card. |
10.41 |
105 |
DECLINED |
Suspected fraud or reported lost/stolen card. |
10.43 |
104 |
DECLINED |
Stolen card. |
10.51 |
103 |
DECLINED |
Insufficient funds available. |
10.64 |
106 |
DECLINED |
Invalid order details. Is the order code unique? Check APG XML-RPC Guide |
