Google Pay Integration
Google Pay™ simplifies the payment process for users by reducing the number of clicks required to complete a transaction on websites, apps, or in stores. It securely stores customers' credit card information in a digital wallet, allowing them to choose which card to use for each transaction. For more information, visit Google Pay https://pay.google.com/intl/en_us/about/.
There are two integration scenarios with Payarc as a licensed PSP by Google. In both cases, Payarc handles the decryption of customer credit card information and processes the transaction. This benefits both customers and merchants: customers don’t need to enter full credit card details for each transaction, improving security, while merchants can trust that Google has already verified the card information before processing.
- Google Pay Button Integration: Merchant hosts the Google Pay button and sends the encrypted information to Payarc for processing.
- Hosted Checkout: Payarc offers a hosted page for customers to pay using their digital wallet, simplifying the process.
Integration Scenarios for Payarc with Google Pay
Learn More About Scenarios
Scenario Description 1 As a merchant, you host and invoke the Google Pay button on your site. When a customer selects it, you receive the encrypted card information. You then send this data, along with the encrypted payload, to Payarc’s API to process the transaction. Payarc returns the transaction status and details. 2 If you'd prefer not to manage Google Pay directly, Payarc offers a hosted checkout where customers can pay with a card from their digital wallet. This method simplifies and secures the payment process by eliminating the need for manual credit card entry.
Transaction Process Using Google Pay’s Digital Wallet
Follow the steps below to process a transaction using credit card information from Google’s digital wallet(https://developers.google.com/wallet). For support related to Google, please contact Google Support. For questions related to Payarc, please reach out to Payarc Support.
Merchant is hosting Google Pay button
Prerequisites
Before proceeding, please familiarize yourself with the Google Pay Web developer documentation and ensure
- Google Developer/Merchant Account: You must be registered as a Google developer/merchant, as outlined here.
Integration Steps
- Integrate the Google Pay Button
- Follow the Google Pay API setup instructions to add the Google Pay button to your site.
- When prompted for the payment gateway, select Payarc.
- For the gatewayMerchantId, use the value from the Client ID on your Payarc API page.
- Reference Google’s Tutorial
- Google’s tutorial will guide you step-by-step through integrating the button and interacting with Google’s APIs.
- Authenticate with Payarc API
- Before registering the transaction, you must authenticate with Payarc. For authentication details, refer to the Payarc API Authentication documentation.
Performing Transactions
To register a transaction with Payarc, follow these steps:
- Invoke Payarc’s API: Pass the required information, including the encrypted card data from Google Pay, which must be sent as a Base64 encoded string.
- Translate Google Pay Data: The Google Pay object may contain additional information that needs to be mapped to properties understandable by Payarc’s API.
Updated 19 days ago