#vickyh_docs

1 messages ยท Page 1 of 1 (latest)

icy owlBOT
#

๐Ÿ‘‹ 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.

wintry meteorBOT
#

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.

elfin wren
#

@delicate plaza

rigid dust
#

๐Ÿ‘‹ happy to help

#

what's your use case?

#

are you using Separate Charges and Transfers?

delicate plaza
#

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

rigid dust
#

when using separate charges and transfers it's always better to pass the source_transaction, to avoid the problem of fund availability

delicate plaza
#

right

#

in that case I can get back to you maybe, I'll try to add that source_transaction first & test it again

rigid dust
#

yes sure

delicate plaza
#

thanks

icy owlBOT
delicate plaza
#

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

idle shadow
#

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

delicate plaza
#

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

idle shadow
#

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

delicate plaza
#

right

idle shadow
#

What is it you're trying to do exactly?

#

(forget about source_transaction for now)

delicate plaza
#

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

idle shadow
#

OK, so you want to transfer balance from your platform to a conncted account yes? And the Transfer creation returns an 'insufficient balance' error?

delicate plaza
#

yes that's right

#

I'm looking for a way to top-up/increase that sandbox account balance

idle shadow
#

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?

delicate plaza
#

yeah sandbox stripe accounts are charged using various test cards from https://docs.stripe.com/testing?testing-method=card-numbers

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

#

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"

idle shadow
#

Can you share an example of a request (req_xxx) that fails unexpectedly where there should be balance?

delicate plaza
#

there's ID req_cAGVDNYjQ0GtuP

#

there's also req_fjRa5BTHlmX4iQ, which is the charge from 4000000000000077

idle shadow
#

Can you retry that request and omit the idempotency key so it tries to create a fresh transfer?

delicate plaza
#

right, let me see

#

still problematic it seems req_9Gu5yK1lEPBoyk & req_2GmzpLLfz7JAK2

idle shadow
#

Well acct_1HYmjwKPLd55usy7 does not have an IDR balance so the error seems expected?

delicate plaza
#

right, let me change a bit then

idle shadow
#

It has both a USD and SGD balance. Try a transfer with one of those currencies

delicate plaza
#

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

idle shadow
#

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

idle shadow