#nicolas-fernandez-falco_api
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/1295403553636221018
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yes I have already implemented bank transfer as a payment method type. Now I want to add an enhancement in my flow
I want to check if the customer has enough cash balance before creating the payment intent. I have that already implemented. Now, the problem that I'm having is that if the customer doesn't have enough cash balance, I want to get the funding instructions to provide him where he has to perform the transfer
I want to get that information without creating the payment intent
So I need an endpoint to get the bank transfer funding instructions for a given stripe customer
You need a payment intent for this
I tried to perform the following request and worked but didn;t saw nothing in the doc
curl https://api.stripe.com/v1/customers/cus_LNdBvXBhmRRzOI/funding_instructions \
-u "sk_test_JIG4ZN9DdrDDO5xG7vAqMzom:"
that worked. it's returning the info I need
-u "sk_test_JIG4ZN9DdrDDO5xG7vAqMzom:"
{
"object": "list",
"count": 1,
"data": [
{
"object": "funding_instructions",
"bank_transfer": {
"country": "US",
"financial_addresses": [
{
"aba": {
"account_number": "11119936946364920",
"bank_name": "US Test Bank",
"routing_number": "999999999"
},
"supported_networks": [
"ach",
"domestic_wire_us"
],
"type": "aba"
},
{
"supported_networks": [
"swift"
],
"swift": {
"account_number": "11119936946364920",
"bank_name": "US Test Bank",
"swift_code": "TESTUS99XXX"
},
"type": "swift"
}
],
"type": "us_bank_transfer"
},
"currency": "usd",
"funding_type": "bank_transfer",
"livemode": false
}
],
"has_more": false,
"url": "/v1/customers/:customer/funding_instructions"
}%
Where did you get info on that endpoint?
Sorry? Didn't understand the question
If you don't see docs on that endpoint, then how did you know to call that?
common sense
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
That information is available in the customer page. So i thought that an endpoint like that one might exists
Since I didn't saw that endpoint in the API doc I decided to write a message here
I'm not aware of such an endpoint
I have no idea how that call is working for you
I also don't see a log of the account that cus_LNdBvXBhmRRzOI is on making that api call
intresting
You don't know if it's possible to call GET customer endpoint sending an expandable parameter to get funding instructions?
Can you ask if that's possible?
I don't understand the usecase. Why do you want to send funding instructions without a payment intent
Because I want to avoid creating a payment intent that will end up in the created status. I want to create the payment intent once I know the customer has enough customer balance to pay that invoice