ExternalHppGooglePayPayload

Payment Method Identifier: 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.

Required Request Fields

Top-Level Fields

FieldTypeDescription
callbackUrlStringThe server endpoint that receives transaction status updates (webhooks) after payment processing.
successRedirectUrlStringThe URL to which the customer is redirected after completing the payment.
failureRedirectUrlStringThe URL to which the customer is redirected if the payment fails or is declined.

Billing DetailsApmBillingDetails

FieldTypeDescription
firstNameStringThe customer's given name as it appears on billing records.
lastNameStringThe surname of the customer for identification and billing purposes.
address1StringThe first line of the customer’s billing address (e.g., street name).
cityStringThe city is associated with the customer’s billing address.
countryStringThe two-letter ISO Alpha-2 country code of the billing address.
postalCodeStringThe postal or ZIP code for the customer’s billing location.
phoneStringThe customer’s contact phone number, including country code if available.
emailStringThe customer’s email address is used for communication and receipt purposes.

Device InformationDevice

FieldTypeDescription
ipStringThe IP address of the customer’s device, captured during the payment request.

Payload Structure

{
  "paymentMethod": "EXTERNAL_HPP_GOOGLE_PAY",
  "paymentType": "E_WALLET"
}

Fields

FieldTypeRequiredDescription
paymentMethodEnumYesSpecifies the payment method. Must be set to "EXTERNAL_HPP_GOOGLE_PAY" for Google Pay transactions.
paymentTypeEnumYesDefines the payment type. Must always be "E_WALLET" when using Google Pay.

All interactions with Google Pay (token collection, user authentication, etc.) are managed by the Hosted Checkout Page.

Expected apmResponseData (ExternalHppGooglePayResponseData)

{
  "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"
  }
}

Response Fields

FieldTypeDescription
paymentMethodEnumIndicates the payment method used. For Google Pay, this is always EXTERNAL_HPP_GOOGLE_PAY.
paymentTypeEnumSpecifies the type of payment. For Google Pay transactions, it is always E_WALLET.
redirectUrlString (nullable)URL to which the customer is redirected to complete the Google Pay checkout process.
iframeUrlString (nullable)URL that can be used to embed the Google Pay checkout flow in an iframe (if supported).
providerTransactionIdString (nullable)A unique transaction identifier returned by the payment provider for tracking and reconciliation.
extraMap<String, String>Optional metadata that may include details such as payment receipt information, device-specific data, or additional context provided by the provider.