Open kumarmohan7 opened 1 year ago
Payment failed: We are facing some trouble completing your request at the moment. Please try again shortly.
when i try to pay via flutter web i got payment fialed error Code: 5
My Code is: void bPayment() { Razorpay _razorpay = Razorpay(); var options = { 'key': 'rzplive#########', 'amount': 100, 'name': 'Zero Gravity', 'description': 'Massage', 'retry': {'enabled': true, 'max_count': 1}, 'send_sms_hash': true, 'prefill': {'contact': sPhoneNumber}, 'external': { 'wallets': ['paytm'], }, }; _razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, handlePaymentErrorResponse); _razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, handlePaymentSuccessResponse); try { _razorpay.open(options); } catch (e) { debugPrint('Error: e'); } }
Error:
Flutter 3.7.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 12cb4eb7a0 (6 days ago) • 2023-03-01 10:29:26 -0800 Engine • revision ada363ee93 Tools • Dart 2.19.3 • DevTools 2.20.1
Any updates on this issue?
Payment failed: We are facing some trouble completing your request at the moment. Please try again shortly.
Description
when i try to pay via flutter web i got payment fialed error Code: 5
My Code is: void bPayment() { Razorpay _razorpay = Razorpay(); var options = { 'key': 'rzplive#########', 'amount': 100, 'name': 'Zero Gravity', 'description': 'Massage', 'retry': {'enabled': true, 'max_count': 1}, 'send_sms_hash': true, 'prefill': {'contact': sPhoneNumber}, 'external': { 'wallets': ['paytm'], }, }; _razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, handlePaymentErrorResponse); _razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, handlePaymentSuccessResponse); try { _razorpay.open(options); } catch (e) { debugPrint('Error: e'); } }
Error:
![image](https://user-images.githubusercontent.com/7358397/223624381-310beed5-ae1d-4bb8-9057-afaaba7f7cff.png)
Flutter Version :
Flutter 3.7.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 12cb4eb7a0 (6 days ago) • 2023-03-01 10:29:26 -0800 Engine • revision ada363ee93 Tools • Dart 2.19.3 • DevTools 2.20.1