#vickyh_docs
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/1269952544050905089
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- vickyh_docs, 5 days ago, 40 messages
- vickyh_docs, 6 days ago, 32 messages
@delicate plaza
๐ happy to help
what's your use case?
are you using Separate Charges and Transfers?
we're trying to integrate stripe connect accounts on our site, as a way for customer to be able to set their stripe account as a payouts target
all is ok & the customer stripe account is successfully registered (we've the acct_* id registered), but when we try to request to https://api.stripe.com/v1/transfers to transfer the balance from our stripe account to customer stripe account, we receive the error like vicky described above
I'm trying to find a way on how we could increase the balance on our stripe account, so that it can be tested on sandbox environment
I've tried to do some simple charges using the card number specified on the error, but it still says that the balance is insufficient when I do the transfer
when using separate charges and transfers it's always better to pass the source_transaction, to avoid the problem of fund availability
right
in that case I can get back to you maybe, I'll try to add that source_transaction first & test it again
yes sure
thanks
hmm, any idea where would I find the value for this source_transaction? I've tried looking at transfers data detail & it only shows null
You pass the parameter when you create the Transfer. It bind the transfer to a related payment, like a ch_xxx or pi_xxx ID
right, and from what I read it will create a pending payments if the fund isn't available, and it will be transferred when it is
but how about the availability of the balance itself on sandbox account? since I think current behaviour of failing when the funds isn't available is ok on our side
it's just that I want the funds to be available again
Sorry, I've no idea what you're asking me. You said source_transaction is null which would imply you're not setting it on creation
right
I was having a problem of not being able to test transfers to a connected stripe account
one solution is to use source_transaction, and I think this might work by creating the payments as a "pending" status, if the balance isn't available
OK, so you want to transfer balance from your platform to a conncted account yes? And the Transfer creation returns an 'insufficient balance' error?
yes that's right
I'm looking for a way to top-up/increase that sandbox account balance
OK, this is likely expected depending on how you're adding funds to the platform balance. Are you processing payments on the platform with a test card?
yeah sandbox stripe accounts are charged using various test cards from https://docs.stripe.com/testing?testing-method=card-numbers
including the 4000000000000077 mentioned on the error message, but I can't seem to make the balance be available even after charging that card
that is, request to https://api.stripe.com/v1/transfers into other test stripe connect accounts returns "insufficient balance"
Can you share an example of a request (req_xxx) that fails unexpectedly where there should be balance?
there's ID req_cAGVDNYjQ0GtuP
there's also req_fjRa5BTHlmX4iQ, which is the charge from 4000000000000077
Well this is a replay of a previously failed request (https://dashboard.stripe.com/test/logs/req_zqmReo0qTCBr2y). You're passing the same idempotency key so the outcome will always be the same
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you retry that request and omit the idempotency key so it tries to create a fresh transfer?
right, let me see
still problematic it seems req_9Gu5yK1lEPBoyk & req_2GmzpLLfz7JAK2
Well acct_1HYmjwKPLd55usy7 does not have an IDR balance so the error seems expected?
right, let me change a bit then
It has both a USD and SGD balance. Try a transfer with one of those currencies
ok, it seems that should solve it, I think we can just ignore olders transfers then, it should be ok
I assumed that the currency will be converted like it would be done like usual payments, but it seems I need to specify the currency to our available currencies
thanks, that should be it
To clarify, my colleague's original advice still stands: if you want to postpone the transfer until a related payment clears then that's when you'd use the source_transaction parameter when creating the Transfer
Yes, you can only create transfer from currencies your account settles in regardless of what the presentment currency was (e.g. what customer paid in)