#Oleksiy

1 messages · Page 1 of 1 (latest)

humble badgeBOT
fervent isle
#

Currently, passing existing customer into pricing table is not supported

fervent brook
#

I suppose I can not pass customerID in PaymentLinks neither ?

#

Is there a way to avoid duplicated customer in Stripe?

#

PS . Saas - recurrent subscription model.

fervent brook
#

Or can I provide customerId in the checkout page using 'stripe.checkout.sessions.create' in SDK to generate the url?

fervent isle
fervent brook
#

so in the subscription flow it goes like this : CUSTOM pricing table -> on click request to the backend to get URL -> on the backend I do stripe.checkout.sessions.create and return URL ro Frontend -> redirects to that URL with checkout page where all the info is already pre-populated since it is an existing customer and after checkout the Stripe will not create a new customer but use the one I sent ?

fervent isle
#

Sorry that I misunderstood your question. Previous recommendation only works on standalone Checkout Session without pricing table.

With pricing table, re-using existing customer is not supported. Pricing table will always create a new customer.

fervent brook
#

But if I create my custom pricing table , and which will trigger a call to the my backend, that will trigger session.creation and redirect customer to session checkout page , will this work ?

#

by custom pricing table, I mean my own.