I'm building a checkout page where users sign up for a $100/month product. However, when users sign up, they must pay for the first two months upfront, which must be prorated over time. After the first 2 months, we will ask them to pay 100 USD per month. For example:
- Users who register on January 3, 2024, they will have to pay (3-31)/31) * 100 USD for the remaining 28 days of month 1 and 100 USD for the second month.
- Starting March 1, 2024, they will pay $100 at the beginning of each month to use
I've seen about subscription schedules, but I don't know how to configure the phase to meet the above requirements.
I tried with the solution in here. How to implement stripe subscription with three months initial upfront payment But it cannot be calculated based on the first month's time rate.
Step 0 : Create a Test Clock and/or Customer if necessary
Step 1 : Create a Subscription with a 2-month Price, and
billing_cycle_anchorset to March 1, 2024Step 2 : Upon successful Subscription first payment, you would create a SubscriptionSchedule for the Subscription
Step 3 : Update the SubscriptionSchedule to change to a 1-month Price on March 1, 2024
Advance the test clock to see how it charges