Skip to content
payrocdevelopers

Google Pay

Add Google Pay to your integration so merchants can accept Google Pay as a payment method for online transactions.

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 diagram
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
  1. Cardholder chooses to pay with Google Pay, for example, they select the Google Pay button on the merchant's web page.
  2. Your integration requests the cardholder's payment details from Google Pay.
  3. Google Pay returns the cardholder's encrypted payment details.
  4. Your integration converts the cardholder's payment details to hexadecimal format.
  5. Your integration sends a request to our Payments endpoint with the cardholder's encrypted payment details in hexadecimal format.
  6. Our gateway returns a successful payment response to your integration.

Guides

Add Google Pay to your integration

Run transactions with Google Pay.

Browse guides

Search documentation

API reference169
Guides118
Knowledge38
legal1
Solutions32
Workflows74
↑↓highlight↵openView all search results

Menu

Theme

Sign out

Your saved plans remain in your organization. This browser’s private draft and account view will be cleared.

Talk to an engineer