React native app is crashing after confirming payment with razorpay test key?
See original GitHub issueI am trying to implement UPI payment in my react native app but my app is crashing on successful payment even though I am getting a successful payment alert. I am using the customui SDK for implementing Razorpay payments. I am not getting any kind of exception or error, the app is just shutting down. I am using react native version 0.61.5 Any help would be appreciated. Thank you.
Checkout code
var options = {
currency: 'INR',
key_id: 'test_key',
amount: this.props.total,
vpa:this.state.upi,
contact: 'XXXXXXXXXX',
email: 'XXXXXXXXX',
method: 'upi'
}
Razorpay.open(options).then((data) => {
// handle success
alert(`Success: ${data.razorpay_payment_id}`);
console.log(`Success: ${data.razorpay_payment_id}`)
}).catch((error) => {
// handle failure
alert(`Error: ${error.code} | ${error.description}`);
console.log(`Error: ${error.code} | ${error.description}`)
});
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Why does react native app crash after confirming upi payment ...
This will cause Razorpay references in your code to not be minified. This will solve the issue if anyone faces this.
Read more >react-native-razorpay/CHANGELOG.md - UNPKG
The CDN for react-native-razorpay. ... 13, - React native app is crashing after confirming payment with razorpay test key?
Read more >react-native-razorpay - Yarn - Package Manager
React Native wrapper around our Android and iOS mobile SDKs ... App is getting crashed in android when i call open function. #265;...
Read more >Payment Gateway | React Native - Troubleshooting & FAQs
Open android/app/src/main/java/[...]/MainApplication.java . Add import com.razorpay.rn. · Append the following lines to android/settings.gradle : Settings Gradle.
Read more >react-native-video shows blank screen in my app without any ...
Why does react native app crash after confirming upi payment with razorpay? ... Why isn't zIndex working in React Native? How to test...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
use this Doc
https://razorpay.com/docs/payment-gateway/react-native-integration/custom/