Google Pay™

Accept Google Pay payments in your online store.


Google Pay allows your customers to make payments in your app or website using a credit or debit card added to their Google Account. Use the emerchantpay Google Pay API to accept Google Pay as a payment method across all of emerchantpay’s payment integrations. emerchantpay Google Pay
Payment method Countries/regions Supported payments
eWallet Global (see list) Card (Visa, Mastercard)

Prerequisites

To use emerchantpay as a Google Pay payment provider, follow the integration checklist to integrate with the Google Pay API and authorise Google Pay payments on your site:

  • Read and accept the Google Pay™ API Terms of Service and the Google Pay APIs Acceptable Use Policy
  • For your online store, consult the Google Pay overview for websites
  • Complete the Google Pay Integration checklist
  • Complete the Google Pay Developer Integration checklist
  • Any references or referrals related to Google Pay must follow the brand guidelines for websites
  • Integrate the emerchantpay payment page as a page frame for added security. Do not send the customer billing address if you use the emerchantpay payment page frame. For help integrating a payment page frame, contact support at tech-support@emerchantpay.com
  • Use emerchantpay as the gateway along with your unique gatewayMerchantId to encrypt your customers’ cards and secure processing by a payment provider. For more information, see the Google Pay Tutorial or contact support at tech-support@emerchantpay.com for help with your gatewayMerchantId
  • Visa and MasterCard international payment systems are supported. Google Pay outlines accepted payment card types in the Google Pay Tutorial
  • To use payment cards stored on file in a customer’s Google Account, use the PAN_ONLY authentication method. To modify this feature, contact support at tech-support@emerchantpay.com
  • Google Pay integration via the emerchantpay payment page supports processing with and without 3DS authentication. To use 3DS, enable 3DS for PAN_ONLY and contact support at tech-support@emerchantpay.com
Your Google merchant ID is located in the upper right-hand corner of the Google Pay and Wallet Console dashboard: Google merchant ID Tell your emerchantpay support representative your Google merchant ID and it will be added to your merchant account. After it is added, your Google merchant ID will be listed under Registration Number in the Merchant Details section of your Genesis Merchant Console: Genesis google pay

Process Google Pay payments in the Web Payment Form (WPF)

To process Google Pay payments using the emerchantpay Web Payment Form (WPF), add an emerchantpay gateway domain to your Google merchant account. To add a gateway domains:
  1. Open the Google Pay & Wallet Console.
  2. Select Google Pay API in the navigation menu.
  3. In the Integrate with your website section, select Add website.
  4. In the Website URL field, enter in wpf.emerchantpay.net or wpf.e-comprocessing.net. Which domain should I add?
  5. In the Integration type field, select Gateway.
  6. Contact support for the screenshots required for each of the Screenshots of your buyflow elements.
  7. Select Save.
  8. Optional: To add another domain, repeat from step 3.
The gateway domains will show up in the Integrate with your website section under Google Pay API in the navigation menu: emerchantpay WPF domains

1. Authorise a Google Pay payment

After your customer selects Buy with Google Pay at checkout, the Google Pay API will return an encrypted payment token containing the unique transaction information. Example of a unique payment token:
{
“signature”:”…”,
“intermediateSigningKey”:{
“signedKey”:”{
“keyValue”: “…”,
“keyExpiration”: “…”
}”,
“signatures”:[…]
},
“protocolVersion”:”…”,
“signedMessage”:”{
“encryptedMessage”: “…”,
“ephemeralPublicKey”: “…”,
“tag”: “…”
}”
}

2. Create a Google Pay payment request

After the payment token is received, create a Google Pay payment request to the emerchantpay Genesis payment gateway. Specify the encrypted payment token in payment_token and the payment type in payment_subtype. Accepted Google Pay payment types: Example of passing a Google Pay transaction request that contains a unique payment token:
<?xml version=”1.0″ encoding=”UTF-8″?>
<payment_transaction>
<transaction_type>google_pay</transaction_type>
<transaction_id>119643250547501c79d8295</transaction_id>
<payment_subtype>authorize</payment_subtype>
<payment_token>
{
“signature”:”…”,
“intermediateSigningKey”:{
“signedKey”:”{
“keyValue”: “…”,
“keyExpiration”: “…”
}”,
“signatures”:[…]
},
“protocolVersion”:”…”,
“signedMessage”:”{
“encryptedMessage”: “…”,
“ephemeralPublicKey”: “…”,
“tag”: “…”
}”
}
</payment_token>

3. Receive a response

You will receive a Success or Error response to your payment request. Example of a Success response:
 <?xml version=”1.0″ encoding=”UTF-8″?>
<payment_response>
<transaction_type>google_pay</transaction_type>
<status>approved</status>
<mode>live</mode>
<transaction_id>119643250547501c79d8295</transaction_id>
<unique_id>44177a21403427eb96664a6d7e5d5d48</unique_id>
<consumer_id>123456</consumer_id>
<avs_response_code>5I</avs_response_code>
<avs_response_text>Response provided by issuer processor; Address information not verified</avs_response_text>
<authorization_code>345678</authorization_code>
<response_code>00</response_code>
<timestamp>2022-05-24T17:25:03Z</timestamp>
<descriptor>Descriptor one</descriptor>
<amount>100</amount>
<currency>USD</currency>
<sent_to_acquirer>true</sent_to_acquirer>
<scheme_transaction_identifier>019091214161031</scheme_transaction_identifier>
</payment_response>

4. Test your integration

Use a Google Pay test card to test your Google Pay integration:
  1. Add an item to your cart in your online store.
  2. Proceed to the checkout page and check out using Buy with Google Pay.
  3. Pay using one of the test card details.
  4. Log in to Genesis.
  5. In the navigation menu, go to Payment transactions.
  6. Verify that the transaction appears at the top of the list and is successful.

5. Accept live payments

After you have successfully tested your Google Pay integration, you are ready to move to the production environment and accept live payments from your customers. Contact your emerchantpay Account manager to get your login credentials for the Genesis production environment.

You are now ready to accept live payments from your customers using Google Pay.

Google Pay is a trademark of Google LLC.