Documentation Index
Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Before testing network tokens in sandbox, make sure your account is fully enrolled to network tokenization.Speak to your Customer Success Manager or raise a ticket on our Support Portal. If you don’t have access, please contact your account administrator for assistance.
Provisioning network tokens
On sandbox, Primer attempts to provision a network token whenever a card is added to the vault of a customer ID starting with
primer-nt-testing.true. This automatically vaults the card if the payment is successfully authorized.
This first payment is processed using the raw card data. Once vaulted, it usually takes a few seconds for the network token to be provisioned and available for subsequent payments.
Use the following test cards to simulate scenarios:
| Scenario | Card Network | Card Number | CVV | Expiry date |
|---|---|---|---|---|
| Eligible card | Mastercard | 2222 6904 2006 4590 | Any 3 digit number | Any future expiry date |
| Eligible card | Mastercard | 2222 6904 2006 4574 | Any 3 digit number | Any future expiry date |
| Eligible card | Mastercard | 2222 6904 2006 4590 | Any 3 digit number | Any future expiry date |
| Eligible card | Mastercard | 5120 3501 0006 4594 | Any 3 digit number | Any future expiry date |
| Non-eligible card | Mastercard | 5460 1261 2820 0800 | Any 3 digit number | Any future expiry date |
customerId. The field “paymentMethod.isNetworkTokenized” is set to true when the network token was successfully provisioned and attached to the vaulted card.
Processing payments with network tokens
When a payment is created with a vaulted card that has been network tokenized, Primer automatically attempts to pass the network token to the processor, if the processor is supported. You can test this by creating a payment with:- the Payments API by following this guide
- or with the vault section of Universal Checkout, by selecting a vaulted card that was network tokenized
NETWORK_TOKENif the payment was processed with a network tokenCARD_PANif the payment was processed with the raw credentials