Google Omnichannel Integration - Custom Checkout
Integrate Google Omnichannel at Razorpay's Custom Checkout page for web and Android apps.
You can integrate your custom applications or Android Apps with Google Omnichannel to enable your customers to make payments via GPay. The customers can click the notification sent by Google Pay and complete the payment on their mobile phones.
- for a business account with Google Pay.
- and have them whitelist your UPI ID/VPA.
- Verify your UPI ID/VPA details on the . Google deposits a small amount into the bank account linked to your VPA (UPI ID).
- You should have already integrated the Razorpay Checkout with your application using one of the following:
- from the Dashboard.
While creating a request, there is no need to ask for vpa from your customer. The intent request is sent to the customer's registered phone number.
razorpay.createPayment({"key": "<YOUR_KEY_ID>","amount": 5000,"email": "gaurav.kumar@example.com","contact": "9123456780","method": "upi","_[flow]": "intent","upi_provider": "google_pay"});
When the user enters the phone number, along with the Checkout fields, you need to submit method
, upi_provider
and _[flow]
options along with the other Checkout fields as shown below:
try{JSONObject data = new JSONObject();data.put("amount", 100000); //pass in paise (amount: 100000 equals ₹1000)data.put("email", "gaurav.kumar@example.com"); //customer's email addressdata.put("contact", "9876543210"); //customer's mobile numberJSONObject notes = new JSONObject();notes.put("custom_field", "Make it so."); //notes for the payment, if anydata.put("notes", notes);data.put("method", "upi"); // mandatory for Omnichanneldata.put("_[flow]", "intent"); // mandatory for Omnichanneldata.put("upi_provider", "google_pay"); // mandatory for Omnichannelrazorpay.submit(data, new PaymentResultWithDataListener().......... // add your custom logic}
Is this integration guide useful?
ON THIS PAGE