In App Payments using RazorPay
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
This is razorpay integration. Now start accepting customer's payment through various payment methods like cards, netbanking, wallets, upi
-
You have to add Razorpay Dependency : https://pub.dev/packages/razorpay_plugin#-readme-tab-
-
Create Account : Razorpay.com, go to settings to find API key
-
Add your key in startPayment method which is getting called on Make Payment button click
-
One small configuration change you have to do if you getting below error: Error inflating class androidx.constraintlayout.widget.ConstraintLayout Just go to module level build.gradle of razorpay project and replace: implementation 'androidx.constraintlayout:constraintlayout:1.1.2' to : implementation 'androidx.constraintlayout:constraintlayout:1.1.3'