#BrianC-customer-ID
1 messages ยท Page 1 of 1 (latest)
cs_test_c1fDtCBWzu4rsAFfQ0EM2BZafzeKeMFv5hbfJpIjnAhtaYCfxUt8WybnOe
Thanks
give me a moment to look into it
OK. Thanks
Q: If we create a setup session with pre-built checkout will it automatically create a customer if we don't add an existing customer ID? It was my understanding it would. Perhaps this is the issue.
Yeah I'm not sure we do create a new customer by default,
because if you see here in the response the customer field is null https://dashboard.stripe.com/test/logs/req_rhpJCwJ6LLI1Sc
you'd probably want to set customer_creation parameter when creating a session
Can you point to docs for the customer_creation parameter?
Just for clarity, what is the setup payment method attached to if not a customer?
When creating a setup intent.
That's a great question ๐ I haven't dug deeper into those yet
Let me take a look but here's the link to the docs
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_creation
It's not clear with setup mode. Can you ask someone?
We actually just need clarity on the procedure for creating "setup" mode using pre-built and what we can set to have it automatically create a customer to attach to the setup intent. We just need to know that this is possible and how to do it. As I said, the docs are not clear
It also looks like the customer_creation parameter does not exist in the .Net library.
Umm what version of the library are you currently using?
Ah okay! could you try updating it to the latest version?
Thanks for confirming. I'm still looking into what is the setup payment method attached to if not a customer.
That would be good to know. Some mysteries still with the checkout process.
Thanks for you patience
It seems like we don't attach the payment method to anything at that point so you'd need to attach it to a customer after checkout is completed.
OK. That doesn't make sense though. When using setup mode in pre-built the customer provides the card info for future purchase. The card info needs to be attached to something.'
hello, catching up here
well confirming a CheckoutSession in setup mode just creates a PaymentMethod and confirms the SetupIntent with it.
If a Customer is created as part of the CheckoutSession, then the PaymentMethod is attached to them
Otherwise, the PaymentMethod just sits around until you charge it later, or attach it to a Customer for later reuse
When we want to charge it later, if we instruct to create a customer id when creating the session, can we use the customerId to retrieve the payment method or do we need to use the SetupIntentid
?
can we use the customerId to retrieve the payment method or do we need to use the SetupIntentid
you use the Customer ID to retrieve the PaymentMethod