Google Pay Integration

Ezypay now supports Visa and Mastercard payments via Google Pay on the Ezypay checkout page. This gives customers a fast, secure way to pay using their saved Google Pay credentials β€” helping increase conversion rates.

πŸ‘‰ To learn more about Google Pay, visit the Google Pay website.

πŸ“˜

Pre-requisite

Merchants must contact Ezypay to enable Google Pay on their account.

How Google Pay Works on the Ezypay Checkout

Google Pay will appear as a payment option when a customer visits the Ezypay-hosted checkout page with a supported browser and device.

Integration Notes for Developers

Payload Structure

When a customer pays using Google Pay, Ezypay returns a tokenized card payload. Example:

{  
  "data": {  
    "paymentMethodToken": "785095a8-a40c-4d41-b913-97b1bdcb5f0a",  
    "customerId": "88379c2b-3be2-4e54-b922-b5d3a4815afe",  
    "type": "CARD",  
    "bank": null,  
    "payTo": null,  
    "card": {
        "accountHolderName": "Visa 1234",
        "expiryYear": "00",
        "expiryMonth": "00",
        "type": "VISA",
        "last4": "1234",
        "first6": "999999",
        "countryCode": "AU",
        "tokenDetails": {
            "tokenType": "Googlepay",
            "friendlyDisplay": "Visa 1234",
            "originalLast4": "1234",
            "tokenFirst6": "481852",
            "tokenLast4": "9831",
            "tokenExpiry": "01-30"
        },
        "tokenized": true
    },
    "invalidReason": null,  
    "lastUsedOn": null,  
    "replacedPaymentMethodData": null,  
    "wallet": null,  
    "valid": true,  
    "primary": true
  }
}
{  
  "data": {  
    "paymentMethodToken": "b3945926-ba8b-42fb-b00b-3e50b70d9cee",  
    "customerId": "89d36440-c7c9-4e0d-aab0-c9e38d249390",  
    "type": "CARD",  
    "bank": null,  
    "payTo": null,  
    "card": {  
      "first6": "411111",  
      "last4": "1111",  
      "accountHolderName": "test",  
      "type": "VISA",  
      "expiryMonth": "3",  
      "expiryYear": "27",  
      "origin": null,  
      "tokenDetails": null,  
      "tokenized": false  
    },  
    "invalidReason": null,  
    "lastUsedOn": null,  
    "replacedPaymentMethodData": null,  
    "wallet": null,  
    "valid": true,  
    "primary": true  
  }  
}

Key Fields

Object informationDescription
data.card.paymentMethodTokenEzypay's token representing the Google Pay method
data.card.accountHolderNameTemplate name used to identify the Google Pay payer
data.card.last4Last four digits of the real card linked to Google Pay
data.card.typeEzypay provide what type of CARD was attached to the Google Pay account.
data.card.originShould be "googlepay" to indicate origin
May be null if the customer enters actual PAN manually

Display Format

When showing Google Pay transactions in your UI, use the following format:

[Google Pay] | Visa ****1234

Refer to the Google Pay Brand Guidelines for official assets and usage rules.

πŸ“˜

Important notes:

  • Refer to the Sandbox Guide to simulate Google Pay transactions.