#Cool Tortoise
1 messages · Page 1 of 1 (latest)
What api call are you making specifically where the api isn't returning anything?
I'm using the List bank account API
Customer: stripe.String(id),
Type: stripe.String(string(stripe.PaymentMethodTypeUSBankAccount)),
}
params.SetStripeAccount(t.AccountID)
result := paymentmethod.List(params)```
this is the specific go code i'm using
i see on the dashboard there is 1 payment method attached to the customer
Gotcha. And what's the id of the payment method you expect to be returned?
Can you share the request id of the request from above? The one that returned an empty list
cus_OgChgCvZL7PTdx
Nah the request id of the request you used to list pms
oh i see, one sec
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
req_1RgqVBumZr58Dl
Try removing the customer param
That pm doesn't look like it's attached to a customer actually at the moment
but i'm trying to get the payment methods for that customer?
oh huh but on the dashboard it shows as attached to that customer?
it was also linked via setup intent for that customer
oh sorry i think it was setup via CheckoutSession actually
ya let me find it
Oh
I think you need to finish verifying it for it to be attached
ok but how do i tell the customer that they have a bank account connected, it's just pending verification
The action is on them to verify
basically my flow is i create a CheckoutSession for them to link a bank account, they fill it out, now they need to go through the microdeposit flow but it redirects them back to our dashboard
i just want to show in the UI on our dashboard
"Hey, you're connected, you just need to finish verification in 1-2 days when you get the deposit"
so i just need an api to check whether they have a bank account pending verification or not
cuz rn it just shows "Hey you need to connect a bank account" which isn't right
Gotcha. I think you could listen for setup_intent.requires_action events. Like this one which came from the checkout session: https://dashboard.stripe.com/events/evt_1NsqYLC4wJCtRlFJ5Pfw8BtK
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Then update your db with the pm id and customer id and a note saying the account is pending verification
Verification succeeds when you get setup_intent.succeeded