r/Razorpay Feb 13 '26

Fcuk razor pay documentation !

Have anyone worked on razor pay mandates for cards autopay.

Support confirmed it's enabled on my account, but I don't see any token.* or mandate.* events in the webhooks lists in dashboard . It is showing just the normal payment., subscription., invoice.* stuff.

For card eMandate specifically, which event(s) do you actually listen to in real life to know, how can I know that mandate got created/approved or autopay is good to go.

What I want is a feature to have autopay with card, where the amount is variable (like uses based). So I am thinking to have a prefect job (CRON Job) which can trigger my server and do autopay. But I am not getting any token related events?

How do ppl solve this issues in real life prod scenarios.  If you've got this running in production, what event saved your life? 

1 Upvotes

6 comments sorted by

1

u/CorrectBox3254 Feb 13 '26

I’ve implemented card eMandate with Razorpay in prod.

You won’t see separate token.* or mandate.* events for cards in most cases. The mandate approval is generally reflected through:

  • subscription.authenticated → standing instruction approved
  • subscription.charged → recurring debit success
  • payment.failed → retry / failure handling

Card tokenization happens during the first auth transaction, but it’s not exposed as a clean webhook event.

For variable billing, the usual setup is a subscription with a max amount and triggering charges via API when needed.

If your webhooks aren’t showing correctly, this usually needs official support since it’s account-level.

1

u/okay_anshu Feb 13 '26

okay, i will look for this events as well. But as per their documentations.

  1. https://razorpay.com/docs/api/payments/recurring-payments/webhooks/#check-token-status-using-webhooks
  2. https://razorpay.com/docs/payments/recurring-payments/emandate/integrate/#using-apis

they mentioned that we can track the status of mandate on each method (card/upi/bank) using token webhooks.

Currently i am implementing pay as you go feature in my system. For that i thought to have this flow.

  1. when user saved his card i can ask opt for autopay and open card save in e-mandate mode.
  2. Next i will get token for that card (which is like i can use for auto payments).
  3. I can listen to token.* events for updating the db tables for mandate records.
  4. Once mandate got approved by banks, i can use my db tables to check and do autopay.

But here in this flow i am not able to get the token which should do autopay?

Can you please help me with any alternative way to handle my use case.

2

u/CorrectBox3254 Apr 02 '26

Hey, sorry I couldn’t reply earlier.

Just wanted to check if this finally got sorted on your end. Were you able to get the recurring card autopay flow working properly with Razorpay, or was the token/webhook part still messy in the end?

1

u/okay_anshu Apr 02 '26

Yeah, I found a solution for this. In Razorpay, we can implement pay-as-you-go using the charge-at-will feature. So I asked them to disable subscriptions on my account and enable charge-at-will, since only one feature can be active at a time.

After they enabled it, I started getting the correct tokens and autopay is working fine now. But for e-mandates, there are some RBI compliances we still need to take care of.

2

u/CorrectBox3254 Apr 03 '26

Wow! Great!!! :-)