#csiplstripe_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1225762483596169287
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
How can we know or get data from webhook or API call that bank account used in ACH transfer is a Business Account or Personal Account. I do get account type and account holder type but it does not help me.
are you using Financial Connection Accounts?
i am using stripe API to get payment from my client via ach transfer
oh so it's not ACH direct debit
is there a way to get that kind of data
would you mind sharing a request where you collect a payment or setup one
this is some part of code
$stripe->checkout->sessions->create([
'mode' => 'payment',
'customer' => $customer->id,
'payment_method_types' => ['us_bank_account'],
'payment_method_options' => [
'us_bank_account' => [
'verification_method' => 'instant',
'financial_connections' => ['permissions' => ['payment_method']],
],
],
'line_items' => [[
'price_data' => [
'currency' => 'usd',
'product_data' => [
'name' => $OrderDescription,
],
'unit_amount' => $amount
],
'quantity' => 1,
]],
ok perfect
so you're using finanical conenctions
refer to the doc I sent earlier
and I think the permission you're looking for is ownership
yes the stripe doc the show this json data
{
"id": "fca_zbyrdjTrwcYZJZc6WBs6GPid",
"object": "financial_connections.account",
"ownership": {
"id": "fcaowns_1MzTG4IG1CZuezXppfPbUpXb",
"object": "financial_connections.account_ownership",
"created": 1651784999,
"owners": {
"object": "list",
"data": [
{
"name": "Jenny Rosen",
"email": "jenny.rosen@example.com",
"phone": "+1 555-555-5555",
"ownership": "fcaowns_1MzTG4IG1CZuezXppfPbUpXb",
"raw_address": "510 Townsend San Francisco, CA 94103",
"refreshed_at": 1651784999
}
],
"has_more": false,
"url": "/v1/financial_connections/accounts/fca_zbyrdjTrwcYZJZc6WBs6GPid/owners?ownership=fcaowns_1MzTG4IG1CZuezXppfPbUpXb"
}
},
"ownership_refresh": {
"status": "succeeded",
"last_attempted_at": 1651784999,
"next_refresh_available_at": 1651785000
},
// ...
}
but this might not tell me if account is a business account
actually you have it here https://docs.stripe.com/api/payment_methods/object#payment_method_object-us_bank_account-account_holder_type
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
let me check
that account holder type and account type information is already being captured
i thought there might be some other method to know if bank account is owned by a company
no I don't think so