Razorpay Gateway
Razorpay payment gateway integration for SaaS subscriptions. This module enables accepting payments via Razorpay, optimized for Indian businesses and supporting various Indian payment methods.
Features
- Razorpay Payments: Accept payments through Razorpay's payment platform
- Indian Payment Methods: Support for UPI, NetBanking, wallets, and cards
- Subscription Support: Recurring billing with Razorpay Subscriptions
- Payment Webhooks: Automatic payment status updates via webhooks
- INR Optimization: Optimized for Indian Rupee transactions
- EMI Options: Support for EMI payments on eligible cards
Requirements
- Open Core Business Suite (Base System)
- MultiTenancyCore module (required)
- Razorpay account
- Razorpay API credentials (Key ID and Key Secret)
Installation
- Download the Razorpay Gateway module package
- Extract the module to
Modules/RazorpayGateway - Run the installation command:
php artisan module:enable RazorpayGateway
php artisan migrate
- Configure your Razorpay API credentials
- Clear the application cache:
php artisan optimize:clear
Usage
Configuration
Navigate to Settings > Payment Gateways > Razorpay to configure:
- Enter your Razorpay Key ID
- Enter your Razorpay Key Secret
- Enter your Webhook Secret
- Save settings
Webhook Setup
Configure webhooks in your Razorpay Dashboard:
- Go to Razorpay Dashboard > Settings > Webhooks
- Add webhook URL:
https://yourdomain.com/api/webhooks/razorpay - Select events:
payment.capturedpayment.failedsubscription.activatedsubscription.chargedsubscription.cancelledsubscription.halted
Indian Payment Methods
Accept popular Indian payment methods:
- UPI: Direct UPI payments and UPI Intent
- NetBanking: All major Indian banks
- Wallets: Paytm, PhonePe, Amazon Pay, etc.
- Cards: Credit, Debit, and Prepaid cards
- EMI: EMI on credit cards
Subscription Management
Razorpay subscriptions are integrated:
- Create subscription plans in Razorpay Dashboard
- Map plans to your application plans
- Automatic recurring charges
- Handle payment failures gracefully
Payment History
View all Razorpay transactions at Central Admin > Payments:
- Filter by tenant, date, or status
- View transaction details including payment method
- Process refunds when needed
- Download payment receipts
Configuration
Access module settings at Settings > Razorpay Gateway to configure:
- API credentials (Key ID and Key Secret)
- Webhook secret
- Default currency (INR recommended)
- Payment methods to enable
- Checkout customization
- Receipt email settings