#MarkoBoras
1 messages · Page 1 of 1 (latest)
or can I do this
hi! let me think about it. As far as I know at least under the 'real' Customer cus_xxx you might create later, you will see a 'related guest payments' section that shows you previous payments from that same source
customer is created after checkout for every user
my question above is stupid when I think now
can I create customer after checkout with data that he provided during checkout?
depends which data exactly, for example you can get the email address they used in the Session and create a Customer from that, but you can't access their card details(the PaymentMethod) and create a Customer with that for instance
I just need his email and address to create customer after checkout
Is there some functionality that stripe automatically will create customer after successful checkout or should I do that with webhooks
well the functionality would be https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation set to always
not sure if that's what you're looking for. If not, you can also manually create a Customer post-hoc in a webhook handler using details from the customer_detail hash on the Session ,yes
let me check that
customer_creation: 'always',
so if I set this
after checkout user'll be created?
per the docs : "The Checkout Session will always create a Customer when a Session confirmation is attempted."