Razorpay
Setup
1
Get your Razorpay Credentials
To use Square, you need an API token. You can get them from the Razorpay Dashboard.
Usage
Confirm Payment
To create payment link with razorpay, you can use the createPaymentLink
function provided by the provider. It takes object with following properties:
const response = await provider.createPaymentLink({
upiLink: false, // UPI Link. By default false.
amount: 1000,
currency: 'INR',
name: '', // optional
phoneNumber: , // optional
email: 'test@gamil.com',
isSMS: false // optional. By default false
isEmail: false // optional. By default false
returnUrl: 'YOUR_RETURN_URL_AFTER_SUCCESSFULL_PAYMENT',
metadata: {} // optional
})
Last updated