EXTERNAL_HPP_GOOGLE_PAY
This method enables Google Pay payments through an external Hosted Checkout Page (HPP). The payment page collects the Google Pay token and securely processes it. This is ideal for simplifying frontend handling while maintaining PCI compliance.
Field Type Description callbackUrlString URL to receive transaction status updates successRedirectUrlString URL to redirect the customer after successful payment failureRedirectUrlString URL to redirect the customer after failed payment
Field Type Description firstNameString Customer’s first name lastNameString Customer’s last name address1String First line of the billing address cityString City of the billing address countryString Country code in ISO Alpha-2 format postalCodeString Postal/ZIP code phoneString Customer’s phone number emailString Customer’s email address
Field Type Description ipString Customer’s IP address
JSON
{
"paymentMethod": "EXTERNAL_HPP_GOOGLE_PAY",
"paymentType": "E_WALLET"
}
Field Type Required Description paymentMethod Enum Yes Must be "EXTERNAL_HPP_GOOGLE_PAY" paymentType Enum Yes Must be "E_WALLET"
All interactions with Google Pay (token collection, user authentication, etc.) are managed by the Hosted Checkout Page.
JSON
{
"paymentMethod": "EXTERNAL_HPP_GOOGLE_PAY",
"paymentType": "E_WALLET",
"redirectUrl": "https://checkout.example.com/redirect/googlepay/xyz789",
"iframeUrl": "https://checkout.example.com/iframe/googlepay/xyz789",
"providerTransactionId": "txn_google_001",
"extra": {
"receipt": "GooglePayTransactionReference"
}
}
Field Type Description paymentMethod Enum "EXTERNAL_HPP_GOOGLE_PAY"paymentType Enum "E_WALLET"redirectUrl String (nullable) URL for redirect-based payment completion iframeUrl String (nullable) URL for iframe-based payment completion providerTransactionId String (nullable) Unique identifier from the payment provider extra Map<String, String> Optional metadata, such as receipt information or device data