#bensif88
1 messages · Page 1 of 1 (latest)
Yeah you can just set the cancel_at date: https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so how would you configure the product for this? a non-recurring, one time payment? Then you crearte a sub with this product and stamp an end date on it?
Oh it's just 1 payment?
Why not just create a 1-time payment intent then?
But if you wanted to do it through a sub, you'd need to set the billing interval to yearly or something so they only receive 1 payment in that 12 week period
Yeah it would be via a sub so we could let stripe manage it being cancelled and use the hook to deactive the customer etc.
That works though, so we create the sub with the one-time payment price, then set the interval > duration and cancel_at date
Yeah
Would need to be a recurring price though
Can't use 1-time prices with subs
So just set the interval to yearly so they're only billed once
oh ok, i see. Thank you
No problem