
Network Tokenization Overview
What is Network Tokenization?
Network tokenization is a service provided by card networks, such as Visa and Mastercard, where they directly provide a token as a substitute for the 14 to 19 digit primary account number (PAN). A network token can be used instead of the PAN when processing payments and is more secure because:- It minimizes the risk of exposing customers’ sensitive information because a token is exchanged instead of the raw card details.
- The token is unique to the customer and merchant pairing, and can’t be used by a bad actor for any merchant online like they could with the PAN.
- For customer-initiated payments, a one-time cryptogram called the Token Authentication Verification Value (TAVV) needs to be generated which acts as the equivalent of the CVV. This can only be generated by the token requestor who created the network token.
Learn more about network tokens by reading this blog post on how to optimize payments using network tokenization.
Get Started with Primer
As your unified payments infrastructure, Primer acts as your centralized Technical Service Provider (TSP), giving you all the powerful capabilities of using network tokens without you having to do any engineering work.
Network Tokenization Flow
Primer currently only supports network tokens for Visa and Mastercard.
- Activate network tokenization for your Primer account
- Create network tokens
- Process payments with network tokens
Activate network tokenization for your Primer account
To activate network tokenization, speak to your Customer Success Manager or raise a ticket on our Support Portal. As part of enrolling, we will register your company as a token requestor and generate a token requestor ID (TRID) directly with the card networks on your behalf.Create network tokens
Once network tokenization is fully activated for your account, go to the Network Tokenization section of your Dashboard to start creating network tokens.
Network Token Creation Configuration
Based on the selected strategy, we will automatically try to create a network token on:
- vaulting events i.e. if you set
vaultOnSuccessorvaultOn3DStoTruein or - new payments i.e. if you make a payment with an already-vaulted card
In any case, the network token is not created and used for the first payment, but only created after the first payment and then used for processing on subsequent payments.This is the advice from card networks due to the additional latency that would be caused during the first payment flow and the negative impact it would have on the checkout.
Check the creation of network tokens
If a network token was successfully created, this will be reflected in thepaymentMethod object of subsequent payments where isNetworkTokenized will be set to True.
The number of created Network Tokens is also visible in the
Network Tokenization’s Reporting section.
Process payments with your network tokens
By default, Primer ignores the created network tokens and uses the PAN to process card payments. When you are ready to process payments with your network tokens, go to the Network Tokenization section of your Dashboard to activate and configure when network tokens should be used.
Network Token Processing Configuration
The processing volume applies to both customer-initiated payments (CIT) using a saved card and merchant-initiated payments (MIT).
For CITs, in the background, a one-time cryptogram (TAVV) is generated directly from the card network which acts as the equivalent of the CVV. If the TAVV generation fails for whatever reason, we will fall back to using the PAN as usual.
Not all processors support external network tokens and some processors, such as Stripe, require your account to be gated in on their side before allowing external network tokens.Please speak to your Customer Success Manager or our Support Portal to understand which of your processors are able to process network tokens created by Primer.
Check that a payment was processed with a network token
There are two ways to see if a network token was used for a payment:-
In the payment object, the
cardTokenTypefield is set toNETWORK_TOKEN. It is set at the payment level and transaction level. This field is available in both the API response and the webhook body.See below for an example:This is only available on API and Webhook version 2.2 or greater.JSON -
In the payment timeline, you can see the raw processor requests and responses. When a network token is used, you’ll see
{{NETWORK_TOKEN_*}}fields in the request instead of{{PRIMER_*}}fields. See below for an example:
Payment Timeline Example
-
The payment appears when you set the filter
Card Token Type UsedtoNETWORK_TOKEN.
If the payment falls back to a merchant account that is not configured for network tokens, the payment will be processed using the PAN and will be not considered to be a Network Token payment anymore.
Managing card updates
You don’t have to do anything here - Primer handles this for you and will update the records accordingly.Testing network tokens
PAN retries
PAN retries are deactivated by default. Contact us to activate it on your account.
The performance of the Network Token strategy, including and excluding the performance of the “PAN retry” logic, is visible in your Dashboard.
Caveats
Activate external network tokens with Stripe
Although Stripe can process the network tokens created by a third-party like Primer, Stripe disables this capability by default. Before processing Primer network tokens with Stripe, please contact your Account Manager at Stripe and ask them to gate all your accounts in for Bring Your Own Token (BYOT). If you need support, speak to your Solution Engineer, Customer Success Manager or our Support Portal.Activate external network tokens with Nuvei
By default, Nuvei does not expose the Network Transaction ID after customer-initiated payments. This identifier is required in order to:- Use Nuvei to process Primer network tokens for merchant-initiated payments
- Use another payment processor to perform merchant-initiated payments with cards that were originally saved through Nuvei
externalSchemeTransactionId in the authorization response. If this field is empty, contact your Nuvei Account Manager and request that they enable the setting ShouldReturnSchemeReference on all your accounts.
If you need support, speak to your Solution Engineer, Customer Success Manager or our Support Portal.