Testmode
Any QuickPay account is able to run in two so-called "modes". A "production mode" where all transactions is passing the acquirers.
When the system is in "test mode", no transactions is passing any acquirer. One can therefore test and develop without fear of abusing his own or someone elses credit card.
2 ways to enter test mode
Basicly you can enter test mode in two ways:- You can via the manager put the whole gateway in test mode. It affects all transactions. Eg. all transactions are then test transactions.
- You can do it on a transaction basis. When gateway in general is running in production mode, but the individual test transaction is a test transaction. This is done by setting the testmode = 1 where you call the Quickpay payment window:
| <form action="https://secure.quickpay.dk/form/" method="post"> <input type="hidden" name="protocol" value="4" /> <input type="hidden" name="msgtype" value="authorize" /> ... <input type="hidden" name="testmode" value="1" /> |
While testing, how can I provoke both error- and successfull responses?
In test mode you can provoke error response by sending a card number containing a letter, for exampleCard number: 4571123412341234, Expire: 09/12 og cvd: 12a.
Then the card is declined, even though running in test mode.
A successful response can be obtained by using the following card information:
Card number: 4571123412341234, Expire: 09/12 og cvd: 123.