razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 147 forks source link

Stuck in retry loop after failed payment (Android) #170

Open Puruchandra opened 3 years ago

Puruchandra commented 3 years 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 : 2.0.1

Xcode Version : 12.4

Cocoapod Version : 1.10.1

razorpay-pod (1.1.12) razorpay_flutter (1.1.10):

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. open checkout
  2. fail the payment

Expected Results

After failing the payment, it retries again and basically stuck in loop of retries, have to manually cancel the payment from top right. This issue is only happening in Android. ios works fine.

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

void razrpayOpenCheckout(od.OrderModel order) async { var options = { 'key': order.transactionDetails["rpay_key_id"], 'amount': order.transactionDetails["amount"], 'retry': {'enabled': false}, 'order_id': order.transactionDetails["id"], 'external': { 'wallets': ['paytm'] } };

try {
  _razorpay.open(options);
} catch (e) {
  Navigator.pop(context);
}

}

sumedht commented 3 years ago

@Puruchandra u have to pass above values for retry https://razorpay.com/docs/payment-gateway/android-integration/standard/checkout-form-fields/

Puruchandra commented 3 years ago

@Puruchandra u have to pass above values for retry https://razorpay.com/docs/payment-gateway/android-integration/standard/checkout-form-fields/

@sumedht yes but i dont want it to retry, its retrying automatically on its own even after it is set to false

nadeem-golflan commented 3 years ago

@sumedht i am also facing the same issue. When the transaction fails I have to manually close the payment gateway.

Puruchandra commented 3 years ago

@sumedht please look into it