#g105b-checkout

1 messages · Page 1 of 1 (latest)

fickle idol
#

Hey, taking a look!

#

Hmm, this is a POST /v1//subscriptions request. How is Checkout involved?

sweet meteor
fickle idol
#

Hmm, that's not how it works. You'd create mode: 'subscription' session which creates the subscription for you

sweet meteor
#

My intention is to create a monthly subscription, but also charge the customer a one-off payment (I'm using add_invoice_items for this). Can I do this just from creating the checkout session?

fickle idol
#

In mode: 'subscription' you can pass recurring and one-time prices in a single session

sweet meteor
#

Oh, nice. I've been pre-creating the prices as Product types, but I can just create the Price instead? I'll try that now and confirm in a few mins, thanks!

fickle idol
#

Price objects require a parent Product object

sweet meteor
#

That's great - works a treat. Thank you for your help. I do have one follow up question, which is whether it's possible to only charge the monthly amount at the end of the first month, rather than at the same time as the one off fee? req_0rEnP3ASTN6aPL shows my working checkout, with £100 one off, and £25 subscription, but I would rather the £25 is only charged after 30 days.

#

I know I could just reduce the £100 to £75, but the invoice would be cleaner if I could delay the subscription fee by a month.

fickle idol
#

That's not how our billing works – we always bill upfront for the period in advance

#

I guess you could just simulate it with an initial free trial period

sweet meteor
#

Yes, a free trial period would be perfect, but I can't figure out how to add a free trial to a Price.

#

Maybe I should be using Plan instead of Price for the recurring payment?

fickle idol
fickle idol
sweet meteor
#

🎉 Thank you @fickle idol , that's perfect.

#

Have a wonderful day, keep doing what you're doing... amazing service.

fickle idol
#

Thank you so much! You too 4242