#Shivam Kumar
1 messages · Page 1 of 1 (latest)
Hi
What do you mean exactly by wrong data? could you please provide more context ?
i connect only two accounts, why this api give 6 accounts details in array
Could you please copy/past the customerId here ?
ok sure cus_NGngu6YNO0opJW
IN the dashboard screenshot, you are referring to the PaymentMethods attached to the customer, meanwhile the api call you are making is for listing all financial connection of the customer
You should use this API call instead:
https://stripe.com/docs/api/payment_methods/customer_list
can you help me, how i display all ACH banks like this.
if you want to list the PaymentMethods of the customer, like in the dashbaord
const paymentMethods = await stripe.customers.listPaymentMethods(
'cus_1234',
{type: 'us_bank_account'}
);
using this code , Can banks display in this format?
which client_secret use for this ?
No that's an API call, you'll have a json response, you need to implement that popup in your web interface if you want
Your secret key
$stripe->customers->allPaymentMethods(
'cus_LkM5zVbqIBMKlv',
['type' => 'us_bank_account']
);
i am using this api , this api not provide bank is verified or not for which api use for this.
that API, retrun exatcly what the dashboard screenshot displays
i am using this api , this api not provide bank is verified or not for which api use for this.
You need to use the first API https://stripe.com/docs/api/financial_connections/accounts/list#financial_connections_list_accounts
And refer to the status field in order to check the status:
https://stripe.com/docs/api/financial_connections/accounts/object#financial_connections_account_object-status
but why this api provide removed accounts information.
i only want customer dashboard bank account,
Yes that returns all with status and other details
if you want only what dashboard is displaying use the Payment Methods APIs