#rodrigo-dietze_api

1 messages · Page 1 of 1 (latest)

quartz elmBOT
#

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

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

upbeat trenchBOT
#

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.

lusty hedge
#

Charging

$pay = $stripe->paymentIntents->create(
[
'amount' => 100000,
'currency' => 'uyu',
'payment_method' => "pm_1OyfpEH3fc7kUv7DOnvAzMQe",
'customer' => $ch->id,
'off_session' => true,
'confirm' => true,
'transfer_group' => 'ORDER5',
]
);

#

Then trying to transfer to connected account

upbeat trenchBOT
lusty hedge
#

$transf = $stripe->transfers->create([
'amount' => 100000,
'currency' => 'uyu',
'destination' => 'acct_1OybC9QciYoBVHJ5',
'transfer_group' => 'ORDER5',
'source_transaction' => $pay->latest_charge
]);

#

Then getting this

#

The currency of source_transaction's balance transaction (usd) must be the same as the transfer currency (uyu)

#

Main connect platform is US (usd) connected account uses UYU

orchid shale
lusty hedge
#

Sure

#

The currency of source_transaction's balance transaction (usd) must be the same as the transfer currency (uyu)

#

Ooops wrong clip board

#

req_ghIUkaNdjbft5s

#

This is the one above

#

Test mode

orchid shale
#

I believe you'd transfer the amount in usd but it will settle in the default currency on the connected account

lusty hedge
#

But i collected in UYU so I dont know exactly how much USD that is

#

How to tell stripe to automatically convert it safely (in a way we wont be ending up transfering more that we should at the cents level)

orchid shale
#

oh.. huh..

lusty hedge
#

The platform is in US / USD. The connected account is in Uruguay / UYU. The product price (presentment price) is in UYU. The charge is in UYU. So I expected to transfer 100% of it to the connected account.

orchid shale
#

I don't really understand the error as the source_transaction currency is uyu so the transfer should work 🤔

Let me ask a colleague

lusty hedge
#

Sure, thank you Hanzo! I also expected it to work gracefully, but it never does hehe 😛

orchid shale
#

I have a feeling this is likely due to the conversion that happened when the charge settled on the platform, the uyu amount was converted to usd

lusty hedge
#

Yes I think so too

#

So how can I find out the exact UYU net value i can transfer to the connected account?

orchid shale
#

Ah you'd need to use on_behalf_of parameter when you create the charge in order to keep the balance in uyu currency. Then you should be able to create a transfer to the connected account

lusty hedge
#

But I can´t use on behlf of because the connected account does not have card_payment capability since it is in Uruguay. It is under service agreement

#

service recipient i mean

orchid shale