Custom Web Integration - Validate VPA
Validate VPA feature for Custom Web Integration.
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:
var razorpay = new Razorpay({key: 'rzp_test_lWHwMnGuDgD13V',});razorpay.verifyVpa(vpa).then(() => {// VPA is valid, ask the user to click Pay}).catch(() => {// VPA is invalid, show an error to the user});
Is this integration guide useful?
ON THIS PAGE