Prerequisites: Authentication
An AI skill is available for this guide, get it on the Skills Marketplace (GitHub).
Google Pay® is a digital wallet application that Google customers can use to store payment card details and to pay for goods and services.
When you add Google Pay to your integration, your merchants can accept Google Pay as a payment method for online transactions. When a customer uses Google Pay to make a payment, your integration communicates with Google Pay and the Payroc gateway to make the sale.
How it works
The following diagram shows the flow of a transaction with Google Pay.
Mermaid source
sequenceDiagram
participant GP as Google Pay API
participant YI as Your integration
participant GW as Gateway
rect rgba(0, 81, 194, 0.4)
Note over GP,GW: Run a sale
Note over YI: 1. Cardholder chooses to pay with Google Pay
YI->>GP: 2. Request the cardholder's payment details
GP-->>YI: 3. Return the encrypted payment details
Note over YI: 4. Convert the payment details to hexadecimal format
YI->>GW: 5. Send the payment details in a payment request
GW-->>YI: 6. Return payment response
end
- Cardholder chooses to pay with Google Pay, for example, they select the Google Pay button on the merchant's web page.
- Your integration requests the cardholder's payment details from Google Pay.
- Google Pay returns the cardholder's encrypted payment details.
- Your integration converts the cardholder's payment details to hexadecimal format.
- Your integration sends a request to our Payments endpoint with the cardholder's encrypted payment details in hexadecimal format.
- Our gateway returns a successful payment response to your integration.
Guides
Add Google Pay to your integration
Run transactions with Google Pay.