Skip to content

Last updated: April 29, 2022

We also support the ability to make payments using Google Pay tokens that you have decrypted. To make use of this feature, use the network_token source type and specify the token_type as googlepay. This source type allows you to provide the details about the token, as well as the cryptogram and ECI value obtained from the Google Pay token.

Use the details below to set up your request.

Endpoints

You can find the full list, as well as complete request and response examples, in our API reference.

post

https://api.checkout.com/payments

Request example

1
{
2
"source": {
3
"type": "network_token",
4
"token": "4242424242424242",
5
"token_type": "googlepay",
6
"expiry_month": "10",
7
"expiry_year": "2025",
8
"eci": "06",
9
"cryptogram": "AgAAAAAAAIR8CQrXcIhbQAAAAAA"
10
},
11
"amount": 1000,
12
"currency": "USD"
13
}

Response

If the approved field is true, your authorization was successful. 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.

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 that the card scheme decided to request the payment with.