Stay organized with collections
Save and categorize content based on your preferences.
Google Pay supports generic Unified Payments Interface (UPI) API calls to
make a payment request and receive the response. For more information regarding
the
request and response argument specifications, see NPCI UPI Linking Specification.
This document also explains how merchant apps can use URL deep linking to invoke
UPI apps on Android devices.
To integrate Google Pay with your app and receive payments, follow the
steps below:
Before you begin, make sure you have all required data as mentioned in the
Prerequisites section.
Generate an URI. Google Pay provides an example to generate URI.
See the code sample
to generate.
Pass the generated URI to Google Pay using the above code.
Google Pay is invoked and displays a Pay screen for user to enter
amount and pay.
If the Google Pay response status is Submitted or Succeeded, you must check
with your
PSP or payment aggregators to ensure that the correct order amount is paid.
The following code illustrates how to display Google Pay as mode of
payment when user triggers the payment option in the merchant app.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["Google Pay utilizes the Unified Payments Interface (UPI) API for processing payment requests and responses, with detailed specifications available in the NPCI UPI Linking Specification."],["Integrating Google Pay involves generating a specific URI, passing it to Google Pay to initiate the payment process, and verifying the payment status with your payment service provider to prevent fraud."],["Merchants must support generic UPI intent calls as mandated by NPCI, in addition to integrating Google Pay for a comprehensive payment solution."],["Sample code is provided to illustrate generating the URI and invoking Google Pay within your application, allowing for a smoother integration process."],["A table detailing the URI parameters needed to initiate transactions with Google Pay is included, ensuring clear instructions for developers."]]],["Google Pay uses generic Unified Payments Interface (UPI) API calls for payment requests and responses. Integration involves generating a URI, passing it to Google Pay, and invoking the Pay screen. The URI is constructed with parameters like merchant VPA (`pa`), name (`pn`), code (`mc`), transaction ID (`tr`), note (`tn`), amount (`am`), and currency (`cu`). After payment, merchants must verify with their Payment Service Provider (PSP) or aggregator to confirm the paid amount, to prevent fraud. Generic UPI intent calls are also supported.\n"]]