Skip to main content

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

  1. Download the Razorpay Gateway module package
  2. Extract the module to Modules/RazorpayGateway
  3. Run the installation command:
php artisan module:enable RazorpayGateway
php artisan migrate
  1. Configure your Razorpay API credentials
  2. Clear the application cache:
php artisan optimize:clear

Usage

Configuration

Navigate to Settings > Payment Gateways > Razorpay to configure:

  1. Enter your Razorpay Key ID
  2. Enter your Razorpay Key Secret
  3. Enter your Webhook Secret
  4. Save settings

Webhook Setup

Configure webhooks in your Razorpay Dashboard:

  1. Go to Razorpay Dashboard > Settings > Webhooks
  2. Add webhook URL: https://yourdomain.com/api/webhooks/razorpay
  3. Select events:
    • payment.captured
    • payment.failed
    • subscription.activated
    • subscription.charged
    • subscription.cancelled
    • subscription.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