#jr

1 messages · Page 1 of 1 (latest)

prime harborBOT
wide temple
wise oak
#

Obviously that is not feasible, considering that there may be hundreds of accounts connected to our platform, it should be an automated process, don't you think?

wide temple
#

Yes, so you need to have a valid transactions in order to do this.

#

and pass it a s source.

wise oak
#

That is correct

#

??

wise oak
wide temple
#

That's not possible without having a source transaction.

#

if you want to do it programatically

wise oak
wise oak
wide temple
#

The only option that exists is to try using the Dashboard by adding funds.

wise oak
# wide temple The only option that exists is to try using the Dashboard by adding funds.

I ask you to please put me in touch with someone who has the necessary knowledge for this, it is IMPOSSIBLE there is no such way to accomplish such a simple task as sending funds from my Stripe account to a connected account, you have not been able to give me a single answer that makes sense, I kindly ask you to please put me in touch with someone else.

wide temple
wise oak
wide temple
#

Try to reach out to Support they may have more insights. I already answered you that. you can use Dashboard for this. Otherwise you'll get an API request Error.

#

Send an email to support provide the list of your connected accounts that you want to send funds with your reasons and see if they can help you with this. Otherwise if it need further technical investigation your email/ticket will come straight to our team.

wise oak
wide temple
#

Please be mindful. I understand your concerns but unfortunately I can't help you.

wise oak
wide temple
#

Please stop spamming in the main channel let's keep talking in this thread.

wise oak
wide temple
#

You can refer to this thread directly.

wise oak
wide temple
#

Can you share the failing requestId?

barren birch
#

@wise oak no one at Stripe will ask you for our "worker id" or anything of that sort. You can use our discord handles if you really need to or just copy a link of the thread/message for reference

near ice
#

hi @wise oak to be clear, functionality to do unlinked transfers as a BR platform to connected accounts is not possible, which is a product limitation. So it's required to pass source_transaction or use Destination charges. There isn't really a workaround beyond using those, or having a business in a different country unfortunately. We'd of course prefer if that was not the case but there are complex regulatory and technical constraints we have to operate in and sometimes we can't have our whole product suite available in all countries. You may write to our support team to raise a feature request, that will help our product teams prioritise future work. That's the answer to your question.

#

actually, I could be wrong!

wise oak
near ice
#

@wise oak talk to me instead if you want, I am right here and I can probably help you.
Let's reset.

What was the exact error message and request ID req_xxx you got when you tried to use /v1/transfers without source_transaction?

wise oak
near ice
#

What was the exact error message and request ID req_xxx

#

I need that so I know what account you're doing this on, what balance that account had, what settings it had , and so on

wise oak
near ice
#

so just telling me in English doesn't really help, please share the exact technical detail to me developer-to-developer so I can help

near ice
#

like you can use /v1/transfers without a source_transaction, if you have sufficient available balance on your platform account

#

at leas you can in most countries, it's possible we have a restriction in MX(where your account actually is I think based on your support tickets). But it might be as simple as that and I can help you understand the available balance.

wise oak
near ice
#

I see. And?

#

any progress on getting me the exact error message and request ID req_xxx?

wise oak
#

And we already make transfers to the connected accounts when a customer buys a product, so if we get a source_transaction we can make the transfers without any problem, but in this example there is no customer, what we want is to make a transfer but directly from the Stripe account balance.

near ice
#

what we want is to make a transfer but directly from the Stripe account balance.
you can use /v1/transfers to do that

#

only one of the ways is using source_transaction, there are other possibilities.

wise oak
# near ice if you get an error about not having a sufficient balance, it's due to not havin...

No, you are completely wrong, if we are getting an error of insufficient funds why we are not passing the source_transaction, we have been testing transactions with test mode and we do them without any problem, even the same stripe documentation explains that if we do not pass the source_transaction we can get an error of insufficient funds even though there ARE insufficient funds, I invite you to read the documentation of the place you work in

near ice
#

@wise oak interesting! could you share the exact error message and request ID req_xxx you got so I can look into what's happening then?

#

also if you say one more rude thing, you are going to be banned from this server, I'm sorry. This is your final warning.

wise oak
near ice
#

I apologise in that case.

#

so

#

could you share the exact error message and request ID req_xxx you got so I can look into what's happening then?

wise oak
#

req_1exyRt7kpCPBEb

#

Look, this error is because we are not passing a source_transaction, so we must create a paymentIntent and confirm it to get the source_transaction, however we can not confirm the payment intent because it asks for a payment method, because we get the funds from the balance of our stripe account we can not pass the id of a conventional payment method.

near ice
#

this fails because your platform has 0 available balance. /v1/transfers relies on you having the specified amount 1000 in your available balance, which you don't. You do have 344,962.06 MXN in your pending balance but that is not used here.

you can use https://stripe.com/docs/api/balance/balance_retrieve to check the exact values of the available and pending balance.

note your platform is on automatic payouts, which means you will always have 0 available balance.

I direct you to https://stackoverflow.com/questions/55686949/why-i-am-getting-insufficient-funds-when-trying-stripe-transfers-even-though-i/55687932#55687932

To make this request work you could:

  • pass source_transaction or use Destination charges(not an option for you)
  • wait a number of days(https://stripe.com/docs/payouts#standard-payout-timing) for the funds from a previous charge to settle into your available balance (and also set your account to manual payouts as described above)
  • switch your platform account to manual payouts. In that mode, any balance you make on your platform from whatever source, will accumulate into your available balance and you can transfer from that over time.
    • note there's a test card you can use in test mode to add funds directly to your platform balance. I cover all this in my Stackoverflow link. I'm happy to answer any followup questions you have here.
#

@wise oak let me know if this makes sense/helps.

wise oak
# near ice this fails because your platform has 0 available balance. /v1/transfers relies o...

Ok, look, the fact that we are working in test mode has nothing to do with it, ok, when we make a transfer with the source_transaction we do not get any insufficient balance error, Stripe apis work in test mode without any problem, the support team already confirmed that the transfers are achieved by passing the source_transaction, it has nothing to do that the actual balance outside the test mode is 0.

#

We are already making transfers when a customer buys a product to a connected account and we are not experiencing any problems, these purchases are in test mode.

near ice
#

when we make a transfer with the source_transaction we do not get any insufficient balance error
yes, indeed. That's because that parameter allow the pending balance on your account to be used for the transfer. Without it, only your available balance is used.

wise oak
near ice
#

right?

wise oak
#

It always asks for the source_transaction, not sometimes, it always asks for it.

near ice
#

when I asked previously you shared req_1exyRt7kpCPBEb which has the message:

 message: "You have insufficient funds in your Stripe account. One likely reason you have insufficient funds is that your funds are automatically being paid out; try enabling manual payouts by going to https://dashboard.stripe.com/account/payouts.",

and is not directly referring to source_transaction

wise oak
#

So look, to confirm the payment intent it asks me for a payment method go obvious I don't have why I try to get it from my Stripe account balance.

near ice
#

like you don't have to create a PaymentIntent

#

you can just directly call stripe.transfers.create() to attempt a transfer(from your platform's available balance)

wise oak
#

This is the error when I try to confirm the payment intent without a payment method: req_zVCQ3iIswuNqxx

near ice
#

yep

#

so .. don't create the PaymentIntent. Do you see what I mean?

wise oak
near ice
#

you say: "[in] this example there is no customer, what we want is to make a transfer but directly from the Stripe account balance."

#

yes but the documentation is about a specific type of flow

#

it is possible to just skip that step and go straight to calling /v1/transfers.

#

now, it won't work, and I've explained why it won't, and what you can do about it. But are you clear on that point at least?

wise oak
#

Gentleman, support confirmed that even if the account balance is not at 0, we need the source_transaction

#

Whether the account balance is zero or not will not change the fact that we will still be prompted for the source_transaction

near ice
# wise oak Gentleman, support confirmed that even if the account balance is not at 0, we ne...

then they're wrong I'm afraid. The chat agents you speak to likely understand less than I do who has worked at Stripe for several years in this role and answered this exact question 100s of times and wrote that Stackoverflow answer 3 years ago. You are talking to an expert on your exact problem.

when you call /v1/transfers, that checks your available balance if you don't use source_transaction. That's it.

near ice
#

you may verify that by doing this :

let pi = await stripe.paymentIntents.create({
  amount: 1500,
  currency: 'mxn',
  payment_method_types: ['card'],
  payment_method:"pm_card_bypassPending",
  confirm:true
});

that adds 1500 mxn to your platform balance, just to test with. In reality, you would get this balance by switching your account to manual payouts and waiting for it to accumulate.
now call your

 const transfer = await stripe.transfers.create({
    amount: 1000,
    currency: 'mxn',
    destination: "acct_xxxx",
  });

it will succeed

if you then try stripe.transfers.create again, it will fail since you now have less than 1000 in your balance.

wise oak
#

Ok, let me run the example you just sent me.

wise oak
near ice
#

yep I see that, looking into it!

#

ah it's because of the fees

#

so you can repeat that step of adding funds with pm_card_bypassPending until you have more , and then try again. Or do a smaller transfer. For example:

console.log(balance.available) // 610
const transfer = await stripe.transfers.create({
amount: 100,
currency: 'mxn',
destination: "acct_xxxx",
});
balance = await stripe.balance.retrieve()
console.log(balance.available) // 510
#

make sense?

#

let me know how you get on @wise oak .

#

cool so it just worked I see

wise oak
#

It worked

near ice
#

so do you feel like you now understand how the use of /v1/transfers is associated with the available balance of your platform?

near ice
wise oak
near ice
#

if your platform had an available balance then yes

wise oak
near ice
#

again, please read what I wrote and my stackoverflow link. By default you will never have an available balance, if you want to operate this way your platform needs to be changed to manual payouts mode so you accumulate funds in your balance(by default we just pay the money out so it goes from pending to your bank account and your Stripe account never has available money unless you use a manual payout schedule). So you need to super understand that.

near ice
#

ok, going to close this thread for now. I will remind you of the warning I gave earlier — you were extremely rude to my colleagues and disrupted the main channel, and if that continues, we will have to ban you.
But we're happy to help with specific technical questions if you keep focussed on that! Hopefully this has been useful on understanding this aspect of Connect.