Support

Recent Posts

Archive

Tags

Google Pay

By integrating Google Pay into your website or Android application, your customers can securely make one-touch payments using any credit or debit card connected to their Google account.

To start processing Google Pay payments, you must first integrate directly with Google. Once integration is complete, you can add the 'Google Pay' button to your checkout page and start requesting your customers' encrypted payment information.

To simplify the process, we've condensed a Google Pay payment into a three-step method.

Please note:

You will need to specify which card types and card schemes to support in your payment data request. Checkout.com and Google Pay support the use of both Visa and Mastercard.

Step 2: Tokenize the Google Pay payment data

Once you have received the payment data from Google, you then need to call Checkout.com’s endpoint for tokenizing the encrypted payment data; you can find this payment data in the paymentMethodToken property of the Google Pay payment data request's response.

The response

Additional parameters

Identifies which encryption/signing scheme this message has been created. In this way, the protocol can evolve over time if needed. If it is not set, assume ECv0.

signatureStringrequired

Verifies the message came from Google. The signature is created using ECDSA.

signedMessageStringrequired

A serialized JSON string containing the encryptedMessage, ephemeralPublicKey and tag. To simplify the signature verification process, this value is serialized.

Step 3: Authorize a payment using Google Pay

Now you have the token, it's time to authorize the payment. Grab the token, and use it in the body of a card token payment request from your application or website's backend server.

Testing Google Pay in sandbox

Google Pay does not allow the configuration of test cards within its online wallet. However, when using Google's test environment, if a real card is selected when making the online purchase, Google Pay provides a test card in the encrypted payment data; ensuring that no actual transaction takes place.