Skip to content

Google Pay™

Google Pay lets cardholders pay merchants with their credit and debit cards which are securely stored in the cardholder's Chrome web browser or Android device.

As a supported payment service provider with the Google Pay API, PayNetWorx facilitates a merchant's use of the Google Pay API, where PayNetWorx handles all decryption the merchant's behalf.

Prerequisites

Before starting integration, ensure the following have been completed:

Workflow

mermaid
---
title: Google Pay Workflow
---
sequenceDiagram
    accTitle: Google Pay Workflow Diagram
    accDescr {
        This diagram displays the sequence of events a customer will follow to make a payment using the Google Pay button.
    }
    participant Customer
    participant Merchant Payment Page
    participant Google Pay
    box Purple
    participant PayNetWorx
    end

    Customer->>Merchant Payment Page: 1. Customer clicks Google Pay button
    Google Pay->>Customer: 2. Google Wallet shown to Customer
    Customer->>Google Pay: 3. Customer selects card
    Google Pay->>Merchant Payment Page: 4. Merchant receives paymentData with token
    Merchant Payment Page->>PayNetWorx: 5. Payment submitted with token
    PayNetWorx->>Merchant Payment Page: 6. Payment response
    Merchant Payment Page->>Customer: 7. Merchant updates customer

Google Pay Workflow

  1. Customer clicks the Google Pay button on merchant payment page.
  2. Google's payment popup displays cards saved to their Google wallet.
  3. Customer select their desired card.
  4. Google returns an encrypted PaymentData token to merchant payment page.
  5. Merchant server adds the encrypted token to a payment request that is sent the PayNetWorx's Payments API.
  6. PayNetWorx decrypts, authorizes, and returns a payment result.
  7. Merchant updates customer payment page with final result.

References

Web

Android