Skip to main content

ledgerely.com

View Categories

Razorpay Payment Gateway Integration

The Razorpay Payment Gateway allows users to manage subscription-based payments securely within Ledgerely. This integration ensures seamless processing of recurring transactions via Credit Cards, Debit Cards, and e-mandates. The system also includes real-time webhook updates to reflect subscription changes automatically.

Subscription Billing #

  • Subscription billing is enabled for Credit Cards, Debit Cards, and e-Mandate transactions.
  • Ensure Razorpay is in Test Mode before initiating any test transactions.

Test Card Details for Payment Simulation #

For Domestic Recurring Payments: #

Card Number: 4718 6091 0820 4366

For International Recurring Payments: #
  • Card Number: 5104 0155 5555 5558
  • Alternate Card Number: 5104 0600 0000 0008

Payment Processing & Webhook Integration #

  • Once the payment is successful, the Razorpay Webhook API triggers automatically.
  • The webhook updates new subscription plan details in the Ledgerely database.

Handling Payment Failures #

  • If the payment is declined or fails, an exception message appears in the header of the page.
  • Users need to re-login or refresh for updates to reflect.
  • Razorpay may take a few seconds to sync changes in the database.