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:
-
What setup is required on Razorpay and Firebase for this flow
-
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