#BrianC-customer-ID

1 messages ยท Page 1 of 1 (latest)

ivory lava
#

Hello ๐Ÿ‘‹
do you have a session ID I can look into?

kindred elm
#

cs_test_c1fDtCBWzu4rsAFfQ0EM2BZafzeKeMFv5hbfJpIjnAhtaYCfxUt8WybnOe

ivory lava
#

Thanks
give me a moment to look into it

kindred elm
#

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.

ivory lava
#

you'd probably want to set customer_creation parameter when creating a session

kindred elm
#

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.

ivory lava
kindred elm
#

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.

ivory lava
#

Umm what version of the library are you currently using?

kindred elm
#

39.77.0.0

#

Just decompiled it . That attribute is missing.

ivory lava
#

Ah okay! could you try updating it to the latest version?

kindred elm
#

Seeing it now in latest version. Thanks!

#

testing now'

#

Working. Thanks!

ivory lava
#

Thanks for confirming. I'm still looking into what is the setup payment method attached to if not a customer.

kindred elm
#

That would be good to know. Some mysteries still with the checkout process.

ivory lava
#

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.

kindred elm
#

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.'

sand dust
#

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

kindred elm
#

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

#

?

sand dust
#

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