Razorpay
Quick Start
- Sign up at razorpay.com and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
Razorpay payment integration
| Provider ID | razorpay |
| Category | Card Processors |
| Website | razorpay.com |
Authentication
Method: Basic Auth
Header:
Authorization: Basic base64(razorpay_id:razorpay_secret)
Example:
razorpay_id = "rzp_live_abc123"
razorpay_secret = "secret_xyz"
auth = Base.encode64("#{razorpay_id}:#{razorpay_secret}")
# Authorization: Basic cnpwX2xpdmVfYWJjMTIzOnNlY3JldF94eXo=
Testing
Sandbox URL
https://api.razorpay.com/v1
Test Cards
| Card | Number | CVV | Exp | Result |
|---|---|---|---|---|
| Visa (Domestic) | 4111 1111 1111 1111 | any 3 digits | any future | Successful payment |
| Mastercard (Domestic) | 5104 0155 5555 5558 | any 3 digits | any future | Successful payment |
| Mastercard (International) | 5105 1051 0510 5100 | any 3 digits | any future | Successful payment |