Integration with Razorpay
What You'll Need
Backbench account - Sign Up, the personal account will always remain free to use.
Razorpay account – sign up and generate your test credentials i.e key id and secret key (www.razorpay.com).
Prerequisites for the app
Sign In to Backbench account.
Select +, in the upper right corner to create a Bench. For example, say "bench_one" and select CREATE or hit Enter.
Frontend
Select +, in the upper right corner of file manager to create a html file . For example, say "razor.html" and select CREATE or hit Enter.
Copy and paste the code module from below.
Replace KEY-ID from Razorpay test dashboard.
Select save.
Backend
Select +, in the upper right corner to create a Module. For example, say "razorpay.js" and select CREATE or hit Enter.
Copy and paste the code module from below.
Replace API key from test dashboard.
Select save.
The API-KEY here is a combination of Key ID and Key Secret. After generating the keys from the dashboard, you must download and save them securely. e.g. https://<key-id>:<key-secret>@api.razorpay.com )
Last updated