#r0zator
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Are these 3 separate subscriptions? Or are you subscribing to 3 products but 1 is one-time product?
I have 3 products
- 2 out of the products have 3 different prices (subscription recurring period)
- 1 product has to have a single price and has to work for 1 month and then cancel itself (basically I have to be informed after 1 month has ended by an event so I can also update accordingly my app, without having an external scheduler)
Maybe I can edit this when creating a subscripton on that product, from api? on create subscribe api call?
That's one option but it could get messy with 3 separate subscriptions to manage!
We do have Subscriptions with multiple products option
https://stripe.com/docs/billing/subscriptions/multiple-products
Just trying to think how you'd 'end' subscription to 1 product
Ah sorry. I have 3 different subscriptions, each having it's own product
(i need to have a special situation in which I have to create 2 subscriptions for each user, and those 2 subscriptions have different recurring period)
So I just need to create for a user
- 2 subscriptions (for 2 different products) that has a life of 1 month
I see. In that case, you can listen to Subscription webhook event such as customer.subscription.created
https://stripe.com/docs/billing/subscriptions/webhooks
And then update the Subscription to cancel_at_period_end by calling the API which should cancel the subscription after the first month
https://stripe.com/docs/billing/subscriptions/cancel?dashboard-or-api=api#cancel-at-end-of-cycle
ok there is no way to set a lifetime period when creating the subscription?
There is I think. You can set cancel_at_period_end when you create the subscription as well
https://stripe.com/docs/api/subscriptions/create#create_subscription-cancel_at_period_end
I've not tested it myself though so don't know what the ideal behavior would be
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'd recommend testing it out to be 100% certain
Ok, good. Thanks a lot!
NP! ๐ Good luck