Available in🇮🇳 India
If the selected payment method is upi, the user has to enter the vpa in the Checkout form. You can check if the entered vpa is valid or not using the following code:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Validate VPA feature for Custom Web Integration.
upi, the user has to enter the vpa in the Checkout form. You can check if the entered vpa is valid or not using the following code:
var razorpay = new Razorpay({
key: 'YOUR_KEY_ID',
});
razorpay.verifyVpa(vpa)
.then(() => {
// VPA is valid, ask the user to click Pay
})
.catch(() => {
// VPA is invalid, show an error to the user
});
Was this page helpful?