#kano_api

1 messages ¡ Page 1 of 1 (latest)

tropic urchinBOT
#

👋 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/1334694396922433600

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

drowsy wagon
#

hello! Can you share an example request where the transfer fails?

molten vapor
#

Sorry wrong one. This one: req_SlxWc06N2jIG5J (This is the transfer)

Here is the payment transaction from the client:
req_Kq4yYr5xaWDVtv

drowsy wagon
#

ok, what you would want to do when creating the Transfer is to include the corresponding Charge id in the source_transaction parameter : https://stripe.com/docs/api/transfers/create#create_transfer-source_transaction

The main point to remember is that when using source_transaction, if the payment is still pending, then the transfer will pull the funds from the pending balance. If the payment is already available, then the transfer will pull the funds from the available balance.

if you don't specify the source_transaction, it'll always try to use the funds from your available balance and if the payment funds is not yet available, and you don't specify the source_transaction then you run into the problem of insufficient funds

it's somewhat alluded to here : https://docs.stripe.com/connect/separate-charges-and-transfers?platform=web&ui=stripe-hosted#create-transfer

Create charges on your platform account and transfer funds to multiple connected accounts.