#mtoledo2

1 messages · Page 1 of 1 (latest)

wild fableBOT
torn rune
#

👋 Right, a Checkout Session that results in a charge can only be created in subscription or payment mode, so the one time price + a recurring price doesn't really fit

#

You could use Checkout in setup mode to collect payment details, and then create the Subscription off session (while your customer is no longer actively in your application)

digital crag
#

hmm. So I'm a little confused. A one time price + a recurring price in subscription mode works fine. When I want to add a shipping cost though that is not supported.

Ideally I'd like 3 line items. My one time price, my recurring price and then a shipping cost.

I could hack it and create a "shipping" product/price but then I lose the notion of a shipping rate when querying via API, etc.

While checkout session doesn't support the shipping cost + 1 time price + recurring price. Is there a lower level set of API's for this. Can do something with stripe elements so not married to checkout.

#

Oh just reread message, misunderstood the first time. Hmm. Ideally I'd prefer not doing something off session. Any other alternatives or not really?

torn rune
#

Gotcha. Yep, you could create a subscription that includes the recurring price under items and the one-time price under add_invoice_items

#

Then use the PaymentElement to collect payment details. You'd initialize Elements with the client secret of the first invoice's payment intent

digital crag
#

Yep, but looks like I still wouldn't be able to add a shipping cost to that, right? Might just have to include that another 1 time price under add_invoice_items

torn rune
#

Ooh, I see what you mean. Give me a few minutes.