razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
107 stars 147 forks source link

app get crashed and restart when return from razorpay payment screen after payment #310

Open jassi-singh opened 1 year ago

jassi-singh commented 1 year ago

Description

When a user completes a payment with UPI then it returns to the Razorpay screen and then redirects it to the app but the app gets crashed and get restarts hence the handleSuccess function is not called.

Flutter Version :

Flutter 3.7.3 • channel stable

Xcode Version :

Version 14.2 (14C18)

Cocoapod Version :

Steps To Reproduce

  1. make a payment from UPI in Razorpay screen

Expected Results

App should start from same screen from where the Razorpay payment screen is opened.

Video of issue:

https://user-images.githubusercontent.com/54185836/231967961-a22690a3-748b-477f-a9ac-053e09579da5.mp4

thealteria commented 1 year ago

Same happening with Netbanking as well.

Go to the checkout page > Open Razorpay > Do Netbanking payment > Select Success > Application restarts automatically > Go to the checkout page again > Razorpay's EVENT_PAYMENT_SUCCESS calls automatically > Payment done automatically

jassi-singh commented 1 year ago

@thealteria thanks for the reply, but why the app is restarting do you know any solution for that