Currently, I'm in the process of integrating a unique monthly subscription billing cycle into Stripe using Node js. One specific requirement I have is that the user's initial subscription period must always conclude on the final day of the present month, regardless of when they initially sign up. Here's the scenario that I could use some assistance with:
For example, if a user signs up on April 20th, I would like their first subscription period to end on April 30th, aligning perfectly with the conclusion of the current month. Following this, the second subscription period should commence on May 1st.
I am seeking advice on how to accomplish this using either Stripe's API or implementing custom logic within my application. Instead of utilizing trial periods for this setup, I am interested in exploring other options.
If anyone could provide insights on how to establish such a billing cycle within Stripe or recommend alternative methods to achieve this functionality, it would be greatly appreciated.
In addition, prior to creating the subscription when users pay through my stripe payment links, I want to execute certain logic so that the subscription period ends on the last day of the current month.