Network tokens
Last updated: April 29, 2022
You can use Visa or Mastercard network tokens to make payments through the unified payments endpoint.
Use the details below to set up a payment request using a network token.
You can find the full list, as well as complete request and response examples, in our API reference.
post
https://api.checkout.com/payments
1{2"source": {3"type": "network_token",4"token": "4242424242424242",5"token_type": "vts",6"expiry_month": "10",7"expiry_year": "2025",8"eci": "06",9"cryptogram": "AgAAAAAAAIR8CQrXcIhbQAAAAAA"10},11"amount": 1000,12"currency": "USD"13}
Use the approved
field to check whether or not the authorization was successful ("approved": true
). If your authorization was not successful, it's possible the payment used an invalid/expired card, or a valid card with an insufficient available balance.
If you received a 202
response, the payment requires a redirect. For example, if the payment is 3D Secure.
Information
A successful response will include a payment_account_reference
value, which is a unique reference to the underlying card for network tokens. If the card scheme provided us with an eci
value, it will be included in the response. The value indicates the security level with which the card scheme decided to authorize the payment.
1{2"id": "pay_k7yuyhvad5vujdl7zcb6de2qmm",3"action_id": "act_k7yuyhvad5vujdl7zcb6de2qmm",4"amount": 100,5"currency": "GBP",6"approved": true,7"status": "Authorized",8"auth_code": "000205",9"eci": "05",10"scheme_id": "17896",11"response_code": "10000",12"response_summary": "Approved",13"risk": {14"flagged": false15},16"source": {17"id": "src_6h3fksgf7n4evi2cgv2vdekgua",18"type": "card",19"expiry_month": 6,20"expiry_year": 2025,21"scheme": "Visa",22"last4": "4242",23"fingerprint": "9F3BAD2E48C6C8579F2F5DC0710B7C11A8ACD5072C3363A72579A6FB227D64BE",24"bin": "424242",25"card_type": "Credit",26"card_category": "Consumer",27"issuer": "JPMORGAN CHASE BANK NA",28"issuer_country": "US",29"product_id": "A",30"product_type": "Visa Traditional",31"avs_check": "UM",32"cvv_check": "Y",33"payment_account_reference": "2FCFE326D92D4C27EDD699560F484"34},35"customer": {36"id": "cus_6wa6milnaqnutl3sysyjxwd4wq"37},38"processed_on": "2019-07-31T08:25:12Z",39"processing": {40"acquirer_transaction_id": "621237178574778015081",41"retrieval_reference_number": "527881243825"42},43"_links": {44"self": {45"href": "https://qa.ckotech.co/gateway/payments/pay_k7yuyhvad5vujdl7zcb6de2qmm"46},47"actions": {48"href": "https://qa.ckotech.co/gateway/payments/pay_k7yuyhvad5vujdl7zcb6de2qmm/actions"49},50"capture": {51"href": "https://qa.ckotech.co/gateway/payments/pay_k7yuyhvad5vujdl7zcb6de2qmm/captures"52},53"void": {54"href": "https://qa.ckotech.co/gateway/payments/pay_k7yuyhvad5vujdl7zcb6de2qmm/voids"55}56}57}