Skip to main content

Razorpay

Quick Start
  1. Sign up at razorpay.com and obtain API credentials
  2. Create a terminal in the Admin Console with the parameters below
  3. Start processing — the adapter is pre-built and ready to use

Go to Razorpay →

Overview

Razorpay payment integration

Provider IDrazorpay
CategoryCard Processors
Websiterazorpay.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

CardNumberCVVExpResult
Visa (Domestic)4111 1111 1111 1111any 3 digitsany futureSuccessful payment
Mastercard (Domestic)5104 0155 5555 5558any 3 digitsany futureSuccessful payment
Mastercard (International)5105 1051 0510 5100any 3 digitsany futureSuccessful payment

Resources