Skip to main content

Online payments

Google Pay™

Last updated: 13-Mar-2024

You can accept payments through Google Pay via Checkout (Hosted Payments Page - HPP) or viaeComm API.

Follow the integration steps below to process transactions via Verifone ecomm API.

Required fields




In the Payment Provider Contracts section in Verifone Central, set the Payment Type to Google Pay for web, select your contract and copy the Payment Provider Contract ID. Please note this value is different in Sandbox and in Production.


Amount of the transaction


Unique UUID you generate and can link the transaction to when the customer returns


More on the all currencies supported here: Verifone eCommerce API | Verifone Developer Portal


string Enum: "GOOGLE_PAY"



The encrypted payload object provided by the Wallet on the frontend

A Google Pay web integration consists of implementing both client-side and server-side components. You will need to implement the following:

  • Configure the Verifone payment gateway ID and your merchant ID to initialize the Google pay client.

  • Use the Google Pay token to make a wallet transaction API call and complete the session based on the response

Code sample

// Specify verifone as the gateway and define your wallet contract
const tokenizationSpecification = {
  parameters: {
    'gateway': 'verifone',
    'gatewayMerchantId': 'YOUR_WALLET_CONTRACT'

// Specify your google pay merchant ID and name when setting up your paymentDataRequest
  paymentDataRequest.merchantInfo = {
    // @todo a merchant ID is available for a production environment after approval by Google
    // See {@link|Integration checklist}
    merchantId: 'YOUR_MERCHANT_ID',
    merchantName: 'YOUR_MERCHANT_NAME'

// Pass the google pay token to your server to make the wallet transaction API call
function onGooglePaymentButtonClicked() {
  const paymentDataRequest = getGooglePaymentDataRequest();
  paymentDataRequest.transactionInfo = getGoogleTransactionInfo();

  const paymentsClient = getGooglePaymentsClient();
      .then(function(paymentData) {
        // handle the response
  paymentToken = paymentData.paymentMethodData.tokenizationData.token;
      fetch("YOUR_SERVER", {
      method: "POST",
        headers: {"Content-Type": "application/json"},
        body: getPayload(JSON.parse(paymentToken)),
      }).then((res) => res.json())
        .then((res) => {
// handle wallet transaction response
          if (res.status.includes('AUTHORIZED')) {
          alert('Payment Successful');
         .catch((err) => console.log(err));
      .catch(function(err) {
        // show error in developer console for debugging


Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo