razorpay / razorpay/razorpay-flutter

Razorpay closes screen without Cancel payment > are you sure you want to cancel screen showing when user presses backbutton.

Open
#369 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
116
Forks
177
Avg merge
23h 58m
Merged PRs (30d)
1

Description

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

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.

1.Make confirm_close:true
2.Open Razorpay Pay page
3. Press backbutton or back gesture
4. Razorpay closes and goes back to app.

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproducible flutterrazor repository and follow the listed steps using modal.confirm_close. Inspect how the Flutter plugin handles the back button and back gestures when opening the Razorpay payment page; done means both actions show the confirmation screen before the payment page closes.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile, payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.