Get your keys from Razorpay
Sign in
Pick test or live
rzp_test_ or rzp_live_.Generate a key
Create the webhook in Razorpay
Add a webhook
Enter the URL
Choose a secret
Select the events
subscription.chargedsubscription.cancelledsubscription.completedsubscription.halted
Add the keys in MagicPost
Open the Razorpay card
Enable it
Paste the keys
- Live Razorpay Key ID
- Live Razorpay Key Secret
- Sandbox Razorpay Key ID
- Sandbox Razorpay Key Secret
Paste the webhook secret
Save
How payments work
One-time plans (Prepaid, Lifetime). MagicPost creates a Razorpay order for the plan price and opens the Razorpay window. If the window does not appear, the page shows an Open Razorpay button. After a successful payment the window sends the payment ID and signature back to MagicPost, which verifies the signature with your Key Secret, records the order and, for Lifetime plans, creates the subscription. Recurring plans (Monthly, Yearly). The first time someone buys the plan, MagicPost creates a Razorpay plan with a one-month or one-year period. It then creates a Razorpay subscription for the customer, set to run for 120 billing cycles on a Monthly plan and 10 on a Yearly plan, and opens the same window. The customer is notified by Razorpay. Renewals and cancellation.subscription.chargedextends the subscriber’s period and renews the credit allowance.subscription.cancelled,subscription.completedandsubscription.haltedmark the subscription as cancelled.- Cancelling a subscriber in MagicPost does not cancel it at Razorpay. Also cancel it in your Razorpay Dashboard.
Currency
MagicPost sends the plan’s currency in uppercase and the price multiplied by 100, for every currency. Your Razorpay account must be able to charge the plan’s currency.Test mode
Fill in the Sandbox key fields, select Sandbox under Mode and save. Use Razorpay’s test payment details with your dashboard in test mode. Switch Mode back to Live before you sell.Common errors
This payment method is not available right now.
This payment method is not available right now.
Razorpay could not start the payment. Please try again. / Razorpay could not start the subscription. Please try again.
Razorpay could not start the payment. Please try again. / Razorpay could not start the subscription. Please try again.
storage/logs/laravel.log.Razorpay returned an unexpected response.
Razorpay returned an unexpected response.
We could not prepare this plan for Razorpay billing. Please contact support.
We could not prepare this plan for Razorpay billing. Please contact support.
Razorpay signature verification failed.
Razorpay signature verification failed.
Missing Razorpay session reference.
Missing Razorpay session reference.

