#nicolas-fernandez-falco_api

1 messages ¡ Page 1 of 1 (latest)

formal dockBOT
#

👋 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.

wheat saddle
#

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

vivid rover
#

You need a payment intent for this

wheat saddle
#

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"
}%                        
vivid rover
#

Where did you get info on that endpoint?

wheat saddle
#

Sorry? Didn't understand the question

vivid rover
#

If you don't see docs on that endpoint, then how did you know to call that?

wheat saddle
#

common sense

#

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

vivid rover
#

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

wheat saddle
#

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?

vivid rover
#

I don't understand the usecase. Why do you want to send funding instructions without a payment intent

wheat saddle
#

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

vivid rover
#

Gotcha

#

Apparently we do support this

#

I wasn't aware

wheat saddle
#

Okay. Cool I will see.

#

I'll create a new message if I need more help

#

thanks