I have a webpage with Razorpay integrated and I want to use it in webview app. Everything works fine but when I select a payment method in razorpay form, it is stuck on loading and never opens the next screen where it asks whether to make it successful or fail (test mode).
Code:
var options = {
"key": "rzp_test_UIYCZTZXgkmZtu",
"amount": (totalAmount*100).toString(), // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise
"currency": "INR",
"name": "test payment :)",
"description": "Test Transaction",
"image": Logo,
"order_id": res.data.orderID,
"handler": function (response){
alert("payment successful! :)")
},
"prefill": {
"name": "xyz",
"email": "xyz@abc.com",
"contact": "000000000"
},
}
const paymentObject = new window.Razorpay(options)
paymentObject.open()
It works in website but not in web view. Am I missing something?