#Cool Tortoise

1 messages · Page 1 of 1 (latest)

night sundialBOT
dull widget
#

What api call are you making specifically where the api isn't returning anything?

wispy cypress
#

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

dull widget
#

Gotcha. And what's the id of the payment method you expect to be returned?

wispy cypress
#

but the list api returns an empty list

#

pm_1NsqYKC4wJCtRlFJluoJf7iM

dull widget
#

Can you share the request id of the request from above? The one that returned an empty list

wispy cypress
#

cus_OgChgCvZL7PTdx

dull widget
#

Nah the request id of the request you used to list pms

wispy cypress
#

oh i see, one sec

dull widget
wispy cypress
#

req_1RgqVBumZr58Dl

dull widget
#

Try removing the customer param

#

That pm doesn't look like it's attached to a customer actually at the moment

wispy cypress
#

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

dull widget
#

What's the setupintent id?

#

I'm not seeing it created via setupintent

wispy cypress
#

oh sorry i think it was setup via CheckoutSession actually

dull widget
#

Gotcha

#

Can you share the session id?

wispy cypress
#

ya let me find it

dull widget
#

Oh

#

I think you need to finish verifying it for it to be attached

wispy cypress
#

ok but how do i tell the customer that they have a bank account connected, it's just pending verification

dull widget
#

The action is on them to verify

wispy cypress
#

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

dull widget
#

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

wispy cypress
#

ah ok, is that the only way? There's no way for me to pull for it?

#

i have to do it through webhook?

dull widget
#

At that point, you'd update the record

#

Yeah not via customer

#

Since it's not attached yet

#

SetupIntent needs to succeed for that to happen