Razorpay payment provider implementation.
Razorpay is a popular payment gateway in India. Uses their REST API for:
- Payment Links (hosted checkout)
- Orders API
- Customers and Tokens (saved payment methods)
- Refunds
Configuration
Required settings in database:
billing_razorpay_enabled- "true" to enablebilling_razorpay_key_id- Razorpay Key IDbilling_razorpay_key_secret- Razorpay Key Secretbilling_razorpay_webhook_secret- Webhook secret for signature verification
Razorpay Flow
- Create Order with amount and currency
- Create Payment Link or use Checkout.js
- User completes payment on Razorpay
- Razorpay sends webhook on payment success
- Verify signature and process payment
Webhook Events
payment.authorized- Payment authorized (for 2-step payments)payment.captured- Payment captured successfullypayment.failed- Payment failedrefund.created- Refund initiatedrefund.processed- Refund completed
Currency Support
Primary currency is INR. International payments supported with: USD, EUR, GBP, SGD, AED, CAD, CNY, SEK, NZD, MXN, etc.