#tiaringhio-subscription

1 messages · Page 1 of 1 (latest)

quartz sparrow
#

Hi, let me break down the requirement a bit

#

So you are using Checkout with mode=subscription, hence it always charge your Customer upfront

#

After your customer has had the product assigned, did you present the Checkout Session page to him/her?

glossy coral
glossy coral
quartz sparrow
#

In your problematic scenario, your backend already assigned the product to the Customer, but haven't show them the Checkout Session with mode=payment?

glossy coral
#

right, the customer has the product, can activate a subscription but does not have a customer object and a payment method associated with him on stripe

quartz sparrow
#

Then... why don't you just show the Checkout Session, and only after it's successfully confirmed call your backend API to start the Subscription?

glossy coral
#

yes that would be the easiest option but my client asked for it to be as smooth as possible and that involves (unfortunately) the client not having to go trough the payment process

quartz sparrow
#

Ah

glossy coral
#

if going through the checkout session is the best way to go about it i will put pressure on my client to go that way

quartz sparrow
#

So like, just start a subscription right away, but later on collect payment methods?

glossy coral
#

yes

quartz sparrow
#

It's the flexibility over Checkout. You would need a Custom integration for that. I suggest pushing back your client on using Checkout and the ideal flow of finishing-payment-then-start-subscription, because that's how Subscription should work

#

for the workaround on Custom integration, yes you can but without Checkout

#

You would need to create a Subscription then collect the Customers' payment method for latest_invoice.payment_intent.client_secret

glossy coral
#

ah i understand, in the end i will be much simpler going that way instead of creating a custom integration, since i rely a lot on checkout

quartz sparrow
#

Yeah

glossy coral
#

thank you very much for the help and the advice, i will pass it along and hope for the best ahah

#

have a nice day orakaro!

quartz sparrow
#

np!

#

and good luck!