Razorpay integration

Hello Cursor Team,

I’ve built and completed my app using Cursor, with Firebase as the backend, and the core functionality is already live.

I now want to integrate Razorpay for payments with the following flow:

  • A 14-day free trial for new users

  • After the trial ends, users should automatically convert to a ₹59/month subscription

  • Payments should be autopay after the trial (with proper user consent)

I’m looking for guidance on:

  1. What setup is required on Razorpay and Firebase for this flow

  2. What Cursor AI commands/prompts I should use to correctly implement:

    • Trial tracking

    • Subscription creation

    • Auto-debit after 14 days

    • Webhook handling and payment status updates

Since the app and backend are already done, I want to keep the implementation simple, clean, and production-ready.

Any best practices or recommended approach using Cursor would be really helpful.

Thanks in advance,

Nakul

hi @Nakul_Singla and thank you for posting in Cursor Forum. Though we do handle AI coding questions note that we may not be familiar with Razorpay.

Therefore you may get that specific information from the Razorpay website and their support.