#Ian Kaplan - Self-Hosted Checkout

1 messages · Page 1 of 1 (latest)

subtle venture
#

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?

lapis fog
#

yes

#

stripe invoices

#

that part was not specific

subtle venture
#

Are these one-off Invoices or Invoices belonging to Subscriptions?

lapis fog
#

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

subtle venture
#

This is certainly possible, but what you're asking covers a lot of ground.

#

Actually, point of clarification, when you say "self hosted checkout" you mean a checkout page you built on your end, right?

lapis fog
#

Yes

subtle venture
#

Yeah, okay, so that Subscriptions guide is where you should start. 🙂

lapis fog
#

I know it involves creating an invoice maybe from an invoice maybe not and managing the cart by updating the returned payment intent

subtle venture
#

Oh, you mean for one-off payments not involving a Subscription?

lapis fog
#

How do they do it?

subtle venture
#

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.

lapis fog
#

And subscriptions are handled differently then

#

But you could draft an invoice no?

subtle venture
#

Yep, for Subscriptions you create a Subscription in Stripe, and that Subscription will generate Invoices to charge people for each recurring period.

lapis fog
#

And use the attatched payment intent?

subtle venture
#

You could create a single Invoice for a one-off payment, yes.

#

Yep.

lapis fog
#

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?

subtle venture
#

No, that won't work. You need to create a Subscription for recurring payments.

lapis fog
#

Ok

subtle venture
#

Subscriptions generate Invoices, not the other way around.

lapis fog
#

Got it