Open shrutika-tatkare-apptware opened 3 years ago
It's happening for me also
Found the issue, it's not returning any data for order id and signature.
I don't think it's an issue with the package itself, I think it's from the server.
I am also facing the same issue, the payment success screen is coming, but none of the payment handlers are getting called, please help
Same is the case with us. A lot of time we have to manually reconcile the payments.
and there's no response from the team
@shrutika-tatkare-apptware Apologies for connecting late. If u can provide more scenarios that will be helpful. In a reposting issue it's mention "sometimes" so can u provide scenario/steps for it?
same issue . anyone got solution ?
I am also facing this issue.. Any Solution?
got output....
here is my code
@override void initState() { super.initState(); razorpay = Razorpay(); razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, _handlePaymentSuccess); razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, _handlePaymentError); razorpay.on(Razorpay.EVENT_EXTERNAL_WALLET, _handleExternalWallet); }
@override void dispose() { super.dispose(); razorpay.clear(); }
void flutterpayment(String orderId,int t) { var options = { "key": "rzp_test_LSWWTkxxxxxxx", "amount": t * 100, 'name': 'ghgjjg', 'currency': 'INR', 'description': 'maligai', 'external': { 'wallets': ['paytm'] }, 'retry': {'enabled': true, 'max_count': 1}, 'send_sms_hash': true, "prefill": {"contact": "978776576558", "email": "nitin@gmail.com"}, }; try { razorpay.open(options); } catch (e) { debugPrint('Error: e'); } }
void _handlePaymentSuccess(PaymentSuccessResponse response) { response.orderId;
Fluttertoast.showToast(
msg: "SUCCESS: " + response.paymentId!,
toastLength: Toast.LENGTH_SHORT);
}
void _handlePaymentError(PaymentFailureResponse response) { Fluttertoast.showToast( msg: "ERROR: " + response.code.toString() + " - " + response.message!, toastLength: Toast.LENGTH_SHORT); }
void _handleExternalWallet(ExternalWalletResponse response) { Fluttertoast.showToast( msg: "EXTERNAL_WALLET: " + response.walletName!, toastLength: Toast.LENGTH_SHORT); }
Hi @Manikandan88564 what's update in this code ? . if we use'retry': {'enabled': true, 'max_count': 1}, this problem resolves ?
Yes @Manojkumar-android, that two resolves this problem
Same issue here even the payment is success, SDK never return the success response, Razorpay team is not very helpful to resolve this issue
When we call open method from razorpay it's sometimes open with only grey screen and some times payment successfully done not call callback success method.
Flutter Version :
Flutter 2.0.5-0.0.pre.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 95fba3eb50 (3 months ago) • 2021-06-03 22:16:12 +0530 Engine • revision 2dce47073a Tools • Dart 2.12.2
Xcode Version :
Version 12.4 (12D4e)
Cocoapod Version :
razorpay-pod (1.1.12) razorpay_flutter (1.1.10):
Steps To Reproduce
steps that reproduce the issue.