#brian_api

1 messages ¡ Page 1 of 1 (latest)

red groveBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1483889625918341122

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

slim bolt
#

hi! i don't know off the top of my head but i can look into this for you, gimme a bit

#

the request ID you shared isn't showing up when i look for it in our internal system, can you double check if you copied it properly?

#

alternatively if you can just share the customer IDs (one example that works as expected, one that doesn't) i can find the info i need from there

remote ember
#

this is the one that didn't work: stripe payment_methods list --customer=cus_SeNKsnleTljGqe --stripe-account=acct_1QAYVtDtUQrylkbl

#

ah actually, this is the only customer on this connected account with PMs. so it could be account related too, but I have no leads on what that issue could be...

slim bolt
#

hmm yeah i'm not seeing any attached payment methods to that customer

#

i see a lot of setup intents being created but none being confirmed

#

can you share an example that worked real quick?

remote ember
#

stripe payment_methods list --customer=cus_SuCeVkLMIPvmZe --stripe-account=acct_1QAYYeBwdLqaSY3o

this worked, but is for a different connected account on our platform

#

and this one also works (querying the pm directly):
stripe payment_methods retrieve pm_1TC0esDtUQrylkbll1RD5nod --stripe-account acct_1QAYVtDtUQrylkbl

#

^this PM is the one attached to the query that wasn't working

slim bolt
#

hmm no, that payment method isn't attached to the customer

#

what do you see for the customer property when you query the payment method directly?

remote ember
#

oh interesting, {"customer": null, "customer_account": null}.

#

the PMs are showing up on the dashboard, that's how i got these ids

#

I'm guessing PMs aren't associated with the customer until it's verified?

slim bolt
#

1 sec, still researching the origins of that payment method

#

ok yep i see this is the request that originated the checkout session which eventually led to the PM creation, and you're properly passing in the customer ID there

#

so yeah it might be something to do with verification after all, lemme dig just a bit

#

ok yeah, the setup intent seti_1TC0d4DtUQrylkblfZYbJS52 is still in status status: "requires_action", with

    type: "verify_with_microdeposits",
...
#

so that's almost certainly it. let me triple check some things though

#

ok yep! i just replicated this exact flow in test mode and confirmed that after the Checkout Session is completed we create the Payment Method token, but it isn't attached to the Customer until they complete verification

#

so if they do microdeposit rather than automatic verification there will be a period where the PM exists un-attached

remote ember
#

awesome, thank for the confirmation! mystery solved