razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 147 forks source link

After payment failure there is no try again option, which used to come earlier, Currently a page comes which shows payment failed status and message showing redirection in some seconds. But it does not redirect #395

Open sumanth1462 opened 1 month ago

sumanth1462 commented 1 month 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

vivekshindhe commented 1 month ago

@sumanth1462 Can you pass the following retry object in the payload? Have added a sample for your reference.

var options = {
  'key': '<YOUR_KEY_HERE>',
  'amount': 100,
  'name': 'Acme Corp.',
  'description': 'Fine T-Shirt',
  'retry':{
      'enabled':true,
      'max_count':4
  },
  'prefill': {
    'contact': '8888888888',
    'email': 'test@razorpay.com'
  }
};
sumanth1462 commented 1 month ago

thank you for the response. But in documentation it is mentioned that by default enabled will be true. Attaching screenshot for reference Screenshot 2024-07-29 121710

vivekshindhe commented 1 month ago

it is. While we are looking into the reason for it not being displayed, maybe you can resolve this at your end first to get it up and running? @sumanth1462

sumanth1462 commented 1 month ago

After doing the changes specified by you , it worked once but later same is(try again pop up) not showing up.

vivekshindhe commented 1 month ago

@sumanth1462 would it be possible for you to share a video of the flow you are seeing? Do you mean that if a payment is unsuccessful the retry isn't showing? or if the retry isn't showing when the user clicks on the back button during the payment and specifically cancels a payment.

sumanth1462 commented 1 month ago

@vivekshindhe, I checked again today on both our live product (which does not have the changes you suggested) and a testing app (which includes the retry changes). In both cases, the popup was shown. Are any dynamic changes being made on your end?. Attaching image which showcases the issue specified. Image_20240729_142624_249

vivekshindhe commented 1 month ago

@sumanth1462 Not sure of the changes, will have to look into it. Would it be possible for you to share your app name to my mail address : vivek.shindhe@razorpay.com? This will help us test this as well. We aren't able to get the scenario in which this isn't happening. A step-by-step progress, or a video would be very helpful.