如何解决我可以通过razorPay直接重定向到特定的网上银行网站吗
<button id="rzp-button1">Pay</button>
<button type="submit" onclick="UserAction()">Search</button>
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
<script>
var options = {
"key": "key",// Enter the Key ID generated from the Dashboard
"amount": "50000",// Amount is in currency subunits. Default currency is INR. Hence,50000 refers to 50000 paise
"currency": "INR","name": "Acme Corp","description": "Test Transaction","image": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTalIw95OBcDFxFzLvh-F_6jAlHAm_yXZ-rJA&usqp=CAU","order_id": "some_id","handler": function (response){
alert(response.razorpay_payment_id);
alert(response.razorpay_order_id);
alert(response.razorpay_signature)
},"prefill": {
"name": "name","email": "email",'method': 'netbanking',"contact": jsonObject['notes']['mobile'],// "card[number]": jsonObject['notes']['card_number'],// "card[expiry]": jsonObject['notes']['expiry']
},"notes": {
"address": "Razorpay Corporate Office"
},"theme": {
"color": "#3399cc"
}
};
var rzp1 = new Razorpay(options);
rzp1.on('payment.failed',function (response){
alert(response.error.code);
alert(response.error.description);
alert(response.error.source);
alert(response.error.step);
alert(response.error.reason);
alert(response.error.metadata.order_id);
alert(response.error.metadata.payment_id);
});
document.getElementById('rzp-button1').onclick = function(e){
rzp1.open();
e.preventDefault();
}
</script>
当我使用此代码时,它只是将我带到网上银行部分,但我想专门选择一家银行并转到该银行的网上银行门户。
so basically I want something like this instead am getting some list of banks
但是使用上面的代码会变成这样 see this is the response am getting
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。