razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
124 stars 107 forks source link

App is crashing on android phone when getting success response, getting failure response or canceling the payment page. #268

Closed Reactongraph closed 4 years ago

Reactongraph commented 4 years ago

Here is my configuration ===>

"react": "16.11.0", "react-native": "0.62.0", "react-native-razorpay": "^2.1.33"

Android Version: 5.1 Device: Oppo F1 S

How to replicate:

Created Order Id

then here is my front-end code

const RazorPayOptions = { description: "Your total amount to pay:", // currency: "INR", key: "----my key=---", order_id: "--myorder id here----" }; Razorpay.open(RazorPayOptions) .then(async data => { // handle success await console.log(Success:, data); }) .catch(async error => { // handle failure await console.log(Error:==, error); });

sanjeevkse commented 4 years ago

267 duplicate issue. Please you can remove it.