#robclayton_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1252237749025509448
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
hi there!
Gudday soma
how are you creating the Subscriptions? with Checkout Session, the Subscription endpoint, something else?
and do you want to update an existing subscription with an "extra feature", or create a brand new subscription with an extra feature
Sorry, not really a very technical question, but more a best practice question from our technical implementation.
So with a checkout session, but also from the admin interface (and we then use webhooks to interface back to our system).
This is up for discussion, but I think we only want a single subscription because we bind our customers to a contract, and the subscription is a contract.
multiple subscriptions would get complicated I think.
Plus we only support one subscription per customer in our callback from the webhook right now ๐
It's more about the best way to implement "add ons"
I'm thinking simply new prices added to a subscription
we could hack it with an invoice for a price and apply that to our own system ... but then it's complicated to unwind if we use stripe as the source of truth
which we want to
thoughts?
basically:
I have a subscription to our core vertical, at the top tier, and I've added on extra1 and extra2
I think the best way is to simply have all these as prices in the subscription ...
but you are the expert
is the "add on" a recurring price, or only one time?
so, we work on a subscription that is yearly (independent of the billing cycle - we have to map that)
We can "renew", in which case we add a phase
can you answer my above question?
It is a single purchase FOR the current year of subscription ,however far through the year the customer is
it is not a lifetime purchase
then you can update the Subscription with add_invoice_items https://docs.stripe.com/api/subscriptions/update#update_subscription-add_invoice_items , and it will be added to the next invoice of the user. and you can optionally set pay_immediately: true
that adds an invoice item to the subscription and is then part of the subscription?
this will add an invoice item only to the next Invoice of the Subscription.
so that's a one off payment then