#tyson

1 messages · Page 1 of 1 (latest)

thin tapirBOT
fluid spire
#

Let's start over

#

Just pasting the original question here

#

Same question as bismarck:
Is the customer paying all at once here?
Or is this like an installments type thing?

bleak herald
#

Sweet thanks

#

All at once ideally

fluid spire
#

Can you give an example just so I understand correctly

bleak herald
#

But a customer may come to the page and their may only be 3 sessions left ect or just want to go to one

#

Its for a 4 weeks every sunday their is a football session that costs £9 if you book for all 4 its £9 each so total £36. If you come and there is only 3 weeks left you pay for £27

#

If you only want one session however you have to pay £11

#

Thats the kinda gist of it.

fluid spire
#

Got it that makes sense. If they just want 1 session, then you could create the checkout session in "payment" mode (ie a one time payment): https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-mode. Just set the amount to $11/week: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount. Otherwise if they will have > 1 session you will need a subscription. So, create the checkout session in "subscription" mode: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-mode with a price of $9/week.

#

The problem though is since it's a subscription, it will continue to bill every week forever

#

This way they will only be billed for the dates that you want them to

#

So that the customer is charged the full $9

bleak herald
#

Ok sweet thanks for that! But it can't be done in one checkout session?

fluid spire
#

Unfortunately you can't set cancel_at in Checkout

#

Will need to be set on the subscription after the customer checks out

#

But yeah you can't configure 1-time and subscription payments all in 1 session