![]() Import 'package:url_launcher/url_launcher.dart' Ĭlass MyApp extends StatelessWidget build(BuildContext context) ). One main problem with this method is that this doesn't give any call back to check whether the payment has been successful or failed. I read somewhere that only INR is supported now. pa: UPI id of the requesting personĬu: Currency. You need a package called url_launcher to be added in pubspec to this get work.Ĭheck the documentation here to see the details of parameters used in the URL.Īll parameters are required. If you are using flutter this is how it can be done. I believe the parameter name you are after is pa. tPackage(GOOGLE_PAY_PACKAGE_NAME) Īctivity.startActivityForResult(intent, GOOGLE_PAY_REQUEST_CODE) Tips: Your Google Pay account remains active after the account is removed from the device. ![]() Login into the Google account and click continue 6. The app will now ask for the necessary permissions, allow them 5. Enter the phone number you are using in your smartphone 4. Now, open the app and select the language 3. Tip: For step-by-step videos, check out Google Pay’s. Open App Store or Play Store on your smartphone and download the Google Pay app 2. Learn how to set up Google Pay with a step-by-step guide. At the top right, tap your profile picture. To get started with Google Pay, download and set up the Google Pay app. If I can connect a bank account to Google Pay, its not anywhere as easy to do as the other cash apps. On your mobile device, open the Google Pay app. Yes, most charge to instantly add to a debit card. Intent intent = new Intent(Intent.ACTION_VIEW) Sign out of Google Pay account on Android and iPhone. appendQueryParameter("url", "your-transaction-url") appendQueryParameter("am", "your-order-amount") appendQueryParameter("tn", "your-transaction-note") appendQueryParameter("tr", "your-transaction-ref-id") appendQueryParameter("mc", "your-merchant-code") appendQueryParameter("pa", "your-merchant-name") ![]() ![]() You can also refer to Google Pay documentation on how to integrate with in-app payments: String GOOGLE_PAY_PACKAGE_NAME = "." Disclaimer: I don't live in India and don't have access to UPI to verify for myself.Ĭonsider using the UPI linking specification ( upi://) to create UPI links for use with UPI compatible applications.
0 Comments
Leave a Reply. |