I am developing an application in expo and used react-native-razorpay-expo for razorpay integration but I found out that it doesnot support expo. The code
var options = {
description: 'Credits towards consultation',
image: 'https://i.imgur.com/3g7nmJC.png',
currency: 'INR',
key: 'test key',
amount: '20',
name: 'foo',
prefill: {
email: 'void@razorpay.com',
contact: '9191919191',
name: 'Razorpay Software'
},
theme: { color: '#F37254' }
}
// console.log("fh",options);
RazorpayCheckout.open(options).then((data) => {
// console.log("fh",data,options);
// handle success
alert(`Success: ${data.razorpay_payment_id}`);
}).catch((error) => {
// handle failure
alert(`Error: ${error.code} | ${error.description}`);
});
I am getting undefined | undefined. Can I get a solution of how to do this in android studio or an alternative to do in expo only?