#rossano
1 messages · Page 1 of 1 (latest)
How to create a product with an annual price of $100 and monthly recurring charge of $8.33, with a subscription that will last for 12 months always and the user cannot cancel at any time? I sell a monthly subscription. I cannot charge the amount once a year, as I need to release a certain amount of credits per month to the user every time the monthly cycle renews.
Just to make sure I understand: You want a Subscriptoin that charges for a full year and every month it charges $8.33. At the end of the year the Subscription ends
Yes
Gotcha - so you can accomplish something like that by creating a Subscription schedule with the monthly $8.33 price and configure it to cancel at the end of the 12 months
You're going to want to read these docs: https://stripe.com/docs/billing/subscriptions/subscription-schedules
Ok, so I Can't do it using the dashboard? I have to create it by coding
Is it possible to use a payment link with a custom number of iterations?
You could also create it through the dashboard (you can configure the end date), but it's not something you can do with payment links
I can't find it in the dashboard 😦
When you create the subscription you should see this
but where can I create the subscription?
I found it thanks
What I'm not getting is how to implement the following code in something like the example in this page: https://stripe.com/docs/billing/quickstart?client=react
const schedule = await stripe.subscriptionSchedules.create({
customer: 'cus_G8BQyXLV4wIrlu',
start_date: Math.floor(new Date("2023-04-01").getTime() / 1000),
end_behavior: 'release',
phases: [
{
items: [{price: '{{PRICE_PRINT}}', quantity: 1}],
iterations: 12
},
],
});
I mean. In this example it goes to the checkout page. With the subscriptionSchedules.create function, how can I send the user to the checkout page?
Just catching up, give me a minute
You don't - you can't use schedules and checkout together, currently.
What are you trying to achieve?
If you want to do something like that, you'd use Checkout in mode=setup to collect a payment method you set as the customer invoice default then create the subscription schedule as needed
What I'm trying to get is how the users go to a checkout page of a product that has phases in the subscription
That's not possible, currently
If you wanted to do that, you could use Checkout to create the subscription in trial mode, then create a schedule from that existing subscription
https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#existing-subscription
How is the checkout of the 11 example?
You'd combine it with use case example 3, an existing subscription, like i linked
Create a $0/trial subscription via Checkout, then set the schedule afterwards
You cannot use schedules with Checkout directly, currently
It's not supported
Ok, now I get it. Thank you very much for your time
NP!
I found this video, that is exactly what I wanted. https://www.youtube.com/watch?v=7z8mncrjq24
In this episode, you'll learn how to use Subscription Schedules to collect a large payment over several months in installments. We'll start the Subscription with Stripe Checkout, then create a Subscription Schedule from that new Subscription assigning phases for the incremental payments, and ultimately canceling the Subscription after the final ...
So if another dumb developer ask you in the future you can send this link 😄
Nic,e glad that's helpful
Note that this shows with an upfront payment
If you wanted to defer the first payment you'll need a $0 price or a trial
But that's up to you
Thanks!