When "modal": {"confirm_close": true,} is true the screen, Are you sure you want to cancel screen should be shown when user tries to exit the screen.
On trying to close payment using backbutton or gestures ,Are you sure you want to cancel screen does not show and the payment page closes directly. When this screen should be showing
My options:
var options = {
"key": "rzp_test_HkIjTO2M#####",
"order_id": "order_NUKeH4x6imGGoF",
"amount": num.parse(textEditingController.text) * 100,
"name": "Sample App",
"modal": {"confirm_close": true, "escape": true},
"description": "Payment for the some random product",
"prefill": {"contact": "+918258011576", "email": "shdjsdh@gmail.com"},
};
Flutter Version : Flutter 3.10.6
Xcode Version : NA
Open Xcode > Go to About Xcode > copy the Xcode version here.
Cocoapod Version : NA
Go to iOS folder > open podfile.lock > copy the razorpay-pod version and razorpay_fluttera version.
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Description
When "modal": {"confirm_close": true,} is true the screen, Are you sure you want to cancel screen should be shown when user tries to exit the screen. On trying to close payment using backbutton or gestures ,Are you sure you want to cancel screen does not show and the payment page closes directly. When this screen should be showing![image](https://github.com/razorpay/razorpay-flutter/assets/44863696/9caa9b9a-a69e-4fcb-b6b0-10c969e2dd3d)
My options: var options = { "key": "rzp_test_HkIjTO2M#####", "order_id": "order_NUKeH4x6imGGoF", "amount": num.parse(textEditingController.text) * 100, "name": "Sample App", "modal": {"confirm_close": true, "escape": true}, "description": "Payment for the some random product", "prefill": {"contact": "+918258011576", "email": "shdjsdh@gmail.com"}, };
Flutter Version : Flutter 3.10.6
Xcode Version : NA
Open Xcode > Go to
About Xcode
> copy the Xcode version here.Cocoapod Version : NA
Go to iOS folder > open
podfile.lock
> copy therazorpay-pod version
andrazorpay_flutter
a version.Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
1.Make confirm_close:true 2.Open Razorpay Pay page
Expected Results
On trying to close user should be shown Are you sure you want to cancel screen then user can close the app.
Snack, code example, screenshot, or link to a repository:
Reproducible code github: https://github.com/Nxtframe/flutterrazor