razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
107 stars 147 forks source link

After completing the payment it shows success page, i have to wait for 4 sec for the listener to call the _handlePaymentSuccess, if i click the cancel button in that 4 sec window it wont call the _handlePaymentSuccess..it wont return anything?Someone please help. #306

Open Juttu opened 1 year ago

Juttu commented 1 year ago

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Please provide a clear and concise description of what the bug is. Include screenshots if needed. Please test using the latest Razorpay Flutter plugin release to make sure your issue has not already been fixed:

Flutter Version :

Run flutter version in your terminal and copy the results here.

Xcode Version :

Open Xcode > Go to About Xcode > copy the Xcode version here.

Cocoapod Version :

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. 2.

Expected Results

Describe what you expected to happen.

Snack, code example, screenshot, or link to a repository:

Please provide a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

vichuer commented 7 months ago

I am stuck at the same situation. If a user closes the app within that 4 seconds handlePaymentSuccess wont be called and they will lose their money. So is there a way to remove that delay?

Juttuu commented 7 months ago

I think this won't happen when you implement using the real APIs (when dealing with real money). I haven't tried, but I remember someone telling me this.