Add “Webservices” users


A Webservices user account allows us to authenticate your requests to Trust Payments. Using MyST, follow these steps to create a “Webservices” user for your account:

New users can only be added by users with “Site admin” role.


  1. Sign in to MyST using your provided username & password.
  2. Click “Users” from the left side-menu, then on the “Manage users” page, click “Add user”:



  1. Fill in the required fields.
    Web Services usernames are email addresses that can have a maximum length of 255 (maximum of 64 characters before the ”@” symbol).


Ensure you select “Webservices” for the role

Failure to do so will prevent requests from being processed successfully.




“Valid IP/network(s)” field (required)


By entering your system’s IP (or range of IPs) in this field, Trust Payments will only accept Web Services requests originating from this IP. This means that even if your Web Services credentials have been compromised, requests cannot be performed without access to your IP network.


Multiple IP addresses can be separated with either a semicolon (;) or a comma (,).
Ranges of IPs may be specified by using a CIDR netmask in the format


Important: “Role if invalid IP” must be set to “Prevent login”.


  1. Allocate the sites through which you wish to process Web Services payments, by typing into the “Allocated sites” field:


  1. Click “Save”.




Use the credentials provided on this page to test your solution.

When you sign up, you will be provided with a “live” account and a “test” account (the latter is prefixed with “test_”).
When testing, ensure requests submitted to Trust Payments reference your test sitereference.

It is important to thoroughly test your integration using your test sitereference before processing live payments.


Before you begin testing…

Please be aware of the following notes:


  • Most fields submitted to our test system will be accepted. Any data breaching its defined specification will return an error message.
  • Any test data that generates a successful response when submitted while a merchant is in test mode, will produce a declined response when a merchant is switched into live mode. In some cases, the test data may return an error response.
  • Our test system attempts to simulate responses in a similar fashion to the live system. However, depending on your acquirer you may find some responses differ slightly from those given by the test system.
  • In the interest of security, we recommend against using real payment details when using your test account.
  • We recommend specifying the main amount “10.50” when testing. Other amounts can be used but may return unexpected responses.
  • For those using Payment Pages, if you’re unsure where to start with your testing, you may find this resource helpful.



Test card details

The table below lists test card numbers and customer information that can be submitted to our test bank, along with the responses that should be expected in return.

Do not use these credentials when processing transactions on your live site reference.
While testing, all card types are supported, but when using your live account, you will receive an error if you do not have a valid merchant number for the payment type submitted.



3-D Secure v2

The following payment credentials can be used for testing 3-D Secure v2 (a form of SCA):


Visa-branded cards

Credit Debit V Pay
Success frictionless 4000000000001026 4006260000000030 4087000000000040
Success step-up 4000000000001091 4006260000000501 4087000000000701
Failed frictionless 4000000000001018 4006260000000303 4087000000000404
Failed step-up 4000000000001109 4006260000000204 4087000000000305


Mastercard-branded cards

Test case Mastercard
Credit Debit Maestro
Success frictionless 5200000000001005 5167300000000010 6759000000000067
Success step-up 5200000000001096 5167300000000101 6759000000000083
Failed frictionless 5200000000001013 5167300000000903 6759000000000026
Failed step-up 5200000000001104 5167300000000804 6759000000000018


American Express-branded cards

Test case American Express
Success frictionless 340000000001007
Success step-up 340000000001098
Failed frictionless 340000000001015
Failed step-up 340000000001106
Declined 300000000000512


3-D Secure v1

The following payment credentials can be used for testing 3-D Secure v1 (a form of SCA):

Visa-branded cards

Credit Debit V Pay Electron Purchasing
Enrolled (Y) 4111110000000211 4006260000002473 4370000000000111 4245190000000311 4484000000000411
Not enrolled (N) 4111110000000021 4006260000002481 4370000000000921 4245190000000121 4484000000000221
Unknown enrollment (U) 4111110000000401 4006260000002408 4370000000002307 4245190000000501 4484000000000601

Mastercard-branded cards

Test case Mastercard
Credit Debit Maestro (Intl.) Maestro (UK)
Enrolled (Y) 5100000000000511


5124990000000911 5000000000000611 6759000000000711
Not enrolled (N) 5100000000000321


5124990000000721 5000000000000421 6759000000000521
Unknown enrollment (U) 5100000000000701


5124990000000101 5000000000000801 6759000000000901


3-D Secure status testing

To test for different 3-D Secure status values, follow the instructions displayed in the authentication prompt shown on the page (an example is shown below). In the textbox provided, you can enter different PIN values to test for different cases.

Displaying the test ACS page


For Payment Pages:

With 3-D Secure enabled on your site reference, process a payment using one of the card numbers listed above and your browser will display an authentication prompt with instructions.


For JavaScript library implementations:

After your payment form has been updated to reference our JavaScript library, process a payment using one of the card numbers listed above and your browser will display an authentication prompt with instructions.


For Mobile SDK implementations:

After your Android or iOS app has been updated to utilise our Mobile SDK, process a payment using one of the card numbers listed above and your app will display an authentication prompt with instructions.


The authentication prompt will only be displayed for non-frictionless test card details.

Frictionless cards will bypass authentication. In this case, the payment will be processed immediately (without being prompted by the browser for information).



Follow the instructions displayed within the authentication prompt to complete the payment:




Non 3-D Secure

The following card types are not currently processed using 3-D Secure (a form of SCA):


Card type Authorisation Decline Expiry date Security code
DINERS 3000000000000111 3000000000000012 12/2030 123
DISCOVER 6011000000000301 6011000000000202 12/2030 123
JCB 3528000000000411 3528000000000312 12/2030 123


After the payment has been processed, the error code and status values stored with the processed AUTH are used to convey the final outcome.

When the status is “N”, indicating the customer failed authentication, the errorcode “60022” will be returned.



Testing AVS and security code checks

If you haven’t already, please read our AVS and Security code documentation before testing:
Link to Payment Pages docs / Link to API docs

The following tables list test details that can be submitted to obtain different responses from the AVS and Security Code Checks. These details can be used with most major payment types.

Only the billing premise, billing postcode and security code field values dictate the outcome of the AVS and security code checks performed. As such, entering any details into the other address fields will not affect the outcome of these checks.



Billing premise Security response Security response caption
No 789 2 Matched
No 123 4 Not Matched
No 333 1 Not Checked
Leave blank 0 Not Given


Postcode / ZIP code

Billing postcode Security response Security response caption
TE45 6ST 55555 2 Matched
TE12 3ST 12345 4 Not Matched
TE33 3ST 33333 1 Not Checked
Leave blank Leave blank 0 Not Given


Security code

Security code AMEX security code Security response Security response
123 1234 2 Matched
214 2144 4 Not Matched
333 3333 1 Not Checked
Leave blank Leave blank 0 Not Given




Testing non-card payment methods

The procedure to follow when testing non-card payment methods will vary. For the most relevant testing information, please refer to the documentation provided for the specific payment method:
Link to Payment Pages docs / Link to Webservices API docs



Testing recurring payments

Testing for the acquirer advice code

When processing recurring payments, some acquirers may return an acquirer advice code in the response. The acquirer advice code is a numeric value used to indicate if further recurring payments can be processed for the given card.

Code Description Action
0 N/A No action required
1 New account information available (Mastercard only) Query customer for updated payment details
2 Cannot approve at this time Try again later. If you are continuing to have difficulties, please contact your acquiring bank
4 Do not try again Do not process further recurring transactions
8 Payment blocked by card scheme


Where to find the acquirer advice code


How to test for different acquirer advice codes

You can test that your system responds appropriately to different acquirer advice codes by processing transactions with the following attributes:

Acquirer advice code returned Card number Base amount
0 4111111111111111 1050
2 4000000000000671 1002
4 4000000000000671 1004
8 4000000000000671 1008


Acquirer advice code ‘1’ can only be returned for recurring Mastercard transactions.
Acquirer advice code returned Card number Base amount
0 5100000000000511 1050
1 5100000000000271 1001
2 5100000000000271 1002
4 5100000000000271 1004
8 5100000000000271 1008



Testing Protect Plus

If you haven’t already, please read our Protect Plus document before testing:
Link to Payment Pages docs / Link to JavaScript Library docs / Link to iOS SDK docs

Use the following baseamount values in RISKDEC requests to simulate the different possible responses from the Protect Plus checks:

baseamount Possible fraudcontrolresponsecode returned fraudcontrolshieldstatuscode returned
1011, 2011, 3011 0100, 0150 “ACCEPT”
1033, 2033, 3033 0300, 0330, 0500 “CHALLENGE”
1044, 2044, 3044 0250, 0400, 0600, 0700, 0800, 1300 “DENY”


The fraudcontrolshieldstatuscode and fraudcontrolresponsecode values returned in RISKDEC responses may vary when not using the baseamount values listed in the table, above.



Testing DCC

If you haven’t already, please read our DCC document before testing:
Link to Payment Pages docs / Link to JavaScript Library docs

The card numbers listed in this test section are associated with specific local currencies. During your integration, you can use the following international test card details in order to test your system for successful and declined DCC transactions.

Successful authorisations

Country code Currency code Visa Credit Mastercard Credit
DE EUR 4500000000000007 5500000000000004
GB GBP 4300000000002211 5311110000001511
JP JPY 4900400000000005 5590410000000006
US USD 4900460000000009 5590470000000018

Declined authorisations

Country code Currency code Visa Credit Mastercard Credit
DE EUR 4500000000002482 5500000000002422
GB GBP 4300000000002492 5311110000002402
JP JPY 4900400000002472 5590410000002432
US USD 4900460000002492 5590470000002402


You can also use an amount of 70000 in the final currency to generate a decline response.





MyST is our secure account-management tool,
providing you with quick access to your payment history.







MyST Getting started
Getting started

Everything you need to know to get started.

MyST Transactions

How to view recent transactions, perform actions on payments, generate reports and send invoices.

MyST Users

How to manage your sub-users and learn about different user roles.

MyST Sites

How to view and configure your sites.

MyST Password reset
Password reset

Having trouble signing in?


Tips to resolve issues you may encounter


investors in people logo   pci - security standards council logo

TRUST Payments LTD, No.1 Royal Exchange, London, EC3V 3DG.
A company registered in England and Wales with Company Number 04591066. VAT Number 756265116