#Ian Kaplan - Self-Hosted Checkout
1 messages · Page 1 of 1 (latest)
Hello! Generally this is something you would manage on your end in your own code/cart system. You mentioned Invoices though, are you talking about Stripe Invoices?
Are these one-off Invoices or Invoices belonging to Subscriptions?
we have some items that are one-off and also subscriptions
it would be possible to checkout one-offs and subscriptions in the same session ideally
This is certainly possible, but what you're asking covers a lot of ground.
First I recommend you read how Stripe Subscriptions work: https://stripe.com/docs/billing/subscriptions/overview
Actually, point of clarification, when you say "self hosted checkout" you mean a checkout page you built on your end, right?
Yes
Yeah, okay, so that Subscriptions guide is where you should start. 🙂
I know it involves creating an invoice maybe from an invoice maybe not and managing the cart by updating the returned payment intent
Oh, you mean for one-off payments not involving a Subscription?
We have information about that here, although I don't think people typically use Invoices with carts: https://stripe.com/docs/invoicing/overview
For one-off purchases people typically use Payment Intents, yeah. They handle the cart logic, totals, etc. on their end and create a Payment Intent to charge the final amount.
Yep, for Subscriptions you create a Subscription in Stripe, and that Subscription will generate Invoices to charge people for each recurring period.
And use the attatched payment intent?
But if I were to combine all items on one invoice would it be anything beyond adding invoice items to the invoice?
I haven’t checked but can I add a recurring price invoice item to an invoice and will a subscription be created or will it error?
No, that won't work. You need to create a Subscription for recurring payments.
Ok
Subscriptions generate Invoices, not the other way around.
Got it