Integrate Google Pay for in-app payments

  • Follow the Android guide and prepend gpay:// to the URI to generate the iOS intent for Google Pay integration.

  • The URI structure for iOS and Android intents is almost identical, with the iOS version requiring gpay:// at the beginning.

  • After completing a payment, iOS users need to manually switch back to the merchant app, which is a current limitation of the collect/intent flows.

  • Refer to the NPCI UPI Linking Specification for detailed information about request and response argument specifications.

Follow the Android guide for generating the URI for iOS intent and integrating Google Pay with your app.

For more information regarding the request and response argument specifications, see NPCI UPI Linking Specification.

Example iOS intent URI

gpay://upi/pay?pa=merchant%40pspbank&pn=MyNameHere&tr=15330175804633937&tn=Test%20deposit%2015330175804633937%20DH0490&am=5000&cu=INR&mc=621
Parameters Description
pa your-merchant-vpa@xxx
pn your-merchant-name
mc your-merchant-code
tr your-transaction-ref-id
tn your-transaction-note
am your-order-amount
cu INR