#hajoshi

1 messages ยท Page 1 of 1 (latest)

tribal kayakBOT
restive cargo
#

Can you share an example Checkout Session ID cs_xxx

terse fog
#

sure

#

"cs_test_a1A4fqBDlQRrvIe7MiShRKc2HZH2Wv5Wjb6wqcP29wu4cJ5PgWiaK7mqkF"

restive cargo
#

Can you clarify the issue?

terse fog
#

sure

#

issue is, when i make payment from stripe checkout session with email : hardik@email.com and once payment complete it will add hardik@email.com to customer in stripe dashboard section

#

after that second time someone make payment from stripe checkout session with different email then it will update the old one with alternative email

#

and consider old one as alternative

restive cargo
terse fog
#

if i don't want gust customer then what's the proper way to add customer with checkout session ?

restive cargo
#

We changed this behaviour in the latest API version:

When creating a Checkout Session in payment mode, the default value of customer_creation has changed from always to if_required.
https://stripe.com/docs/upgrades#2022-08-01

Keep track of changes and upgrades to the Stripe API.

#

You'd pass customer_creation: 'always' when creating your Checkout Session

terse fog
#

okay thanks bro

#

it's now working prefect ๐Ÿ™‚ thanks again brother

restive cargo
#

np!