Test mode

Once your Virtual Terminal payments service installation has been activated, and has gone live, you can use the service in Test mode at any time. You can use test mode to try out the Virtual Terminal payments service before activate the Virtual Terminal payments service and use it to transmit 'live' payment information to the Worldpay system.

When the service is in Test mode, the details you enter are not sent to the live production environment but instead go to a test environment. The Virtual Terminal Payment page does behave in the same way as when live: it will check your input and produce error messages if the input is incomplete or incorrect.

Warning:  You must be especially careful about submitting test transactions to the Virtual Terminal payment service. If test transactions are not submitted correctly, they will be treated as live and our systems will attempt to debit accounts. Reversing transactions such as these, and adjusting accounts, will cause unnecessary work for you.

See also Live and test environments for more details.

Specify that the Service should be in Test mode

You can force the Virtual Terminal service to submit test transactions by adding the testMode parameter (with a value of 100 or 101) to the URL used to log into the service. It will remain in Test mode until you instruct it to revert back to Live mode - use the address field in your browser to enter the URL and testMode instruction.

For example, the following URL will result in all transactions submitted through the service being treated as test transactions until the system is instructed to revert to Live mode.

https://www.worldpay.com/moto?testMode=100

The testMode parameter can take one of the values shown in the table below.

testMode value Description
0 Sets the service Live. All transactions will be sent to bank for the standard authorisation process with resultant funds transfers if successful.
100 or 101 Sets the service to Test mode. The result will depend upon the value specified in the shopper name field in the Payment Page. But funds will NOT be transferred, regardless of the result.

Warning:  The testMode parameter is case sensitive, if it is not entered exactly as required the transaction will be treated as a live transaction, and the service will revert back to Live mode - a common mistake.

Test result values

You can instruct the Test Environment to respond in different ways to suit the test you want to carry out by entering an appropriate value in the shopper name field in the Payment Page - valid values are shown in the table below.

If you do not specify one of the values shown in the table below, the system will assume you want an AUTHORISED response. For example, if you entered a real name, such as John Smith, the system would reply with an AUTHORISED response.

name value System response

REFUSED

Will be equivalent to a refused transaction at the bank.

AUTHORISED

Will be equivalent to a successful authorisation at the bank, but no funds transferred.
ERROR Will be equivalent to a payment that ends in error.
CAPTURED Will be equivalent to a successful capture result - where funds have been transferred to the merchant's account.

Revert to Live mode

To return the service to Live mode, use a value of zero for the testMode parameter when you enter the URL in your browser's address field, or simply omit it, as shown below:

https://www.worldpay.com/moto?testMode=0

https://www.worldpay.com/moto

Test card numbers

The following card numbers can be used when you make test transactions in Test mode only - do not use them in the live, production environment:

Card Type

Card Number

American Express

343434343434343

Cartebleue 5555555555554444
Dankort 5019717010103742
Diners

36700102000000

36148900647913

Discover card

6011000400000000
JCB 3528000700000000
Maestro

6759649826438453

6799990100000000019

Mastercard

5555555555554444

5454545454545454

Visa

4444333322221111

4911830000000

4917610000000000

Visa Debit

4462030000000000

4917610000000000003

Visa Electron (UK only) 4917300800000000
Visa Purchasing 4484070000000000

Note:  Visa Purchasing transactions are treated as Visa credit card transactions.

Note:  For all card types, you can use the CVC value of 555 and enter any future date as the expiry date.