#Zan
1 messages · Page 1 of 1 (latest)
By default Checkout only creates Customer objects when required. What is it you're trying to do?
I had an issue in past that Stripe had refunded all the money to customers incorrectly.
After Stripe un-blocked the account, I requested to re-charge customers for refunded payments
But they said it's not possible for Guest accounts
I have to create customer accounts so that they can be charged automatically when required
Is that even true?
In the context of recurring payments yes
In any case, you just need to pass customer_creation: 'always: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So if i configure "Always", it will by default create customer account and if customer needs to be charged then can i manage from my end?
You mean a subsequent payment outside of the original Checkout payment?
yes subsequent payment
i.e: in case original is refunded by stripe then i need to re-collect it
In that case, don't pass customer_creation. Instead: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#save-payment-method-details
That will save the payment details entered by the customer on checkout for re-use
Saving the payment details like that will inherently create a customer too (its required for saving payment details)
ah okey
That's when the customer_creation: 'if_required' kicks in as by you saying 'save these payment details', we require a customer for that.
np!
Sorry
I just created session as you suggested
but i see no detail for new customer
acct_1LoknjQTVQcO2NN7
Can you share the cs_xxx ID of the session?
Ok, it's this: cs_test_a1OXCPsvEHH4QBOtpfZsSHCakVGwIxV7bLFnmpmmWIJfYAYSQIz1pELJOU
What do you mean by 'customer details'?
name, payment detail etc
That could be because i had called function to create customer before session. Then i commented that line out and tried again.
And this time it created account but also see this
How does it connect all these emails and bank detail with one account? Based on name?
That's just another Guest Customer, not an actual Customer object
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
yeah, that's guest too
Trying to figure out why your Checkout Session didn't create an actual customer
Still checking!