I am working on implementing a custom monthly subscription billing cycle in Stripe in Node js, and I have a specific requirement that the user’s first subscription period should always end on the last day of the current month, regardless of when the user actually subscribes. Here’s the scenario I need help with:
Let’s say a user subscribes on the 20th of April. In this case, I want their first subscription period to end on the 30th of April, aligning with the end of the current month. Then, the second subscription period should start from the 1st of May.
I am looking for guidance on how to achieve this using Stripe’s API or any other custom logic within my application. I prefer not to rely on trial periods for this implementation.
Could someone provide insights on how to set up such a billing cycle within Stripe or suggest any alternative methods to achieve this functionality ?
I have stripe payment links that the users can copy paste so when the user pay the subscription is also created so before the subscription creation i want to apply some logic that the subscription period should end on last date of current month.