#rodrigo-dietze_api
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/1222278778605277214
📝 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.
- rodrigo_connect-cbp-obo, 3 hours ago, 44 messages
- rodrigo-dietze_best-practices, 1 day ago, 48 messages
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
$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
Can you share the request ID where you're seeing this?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
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
I believe you'd transfer the amount in usd but it will settle in the default currency on the connected account
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)
oh.. huh..
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.
I don't really understand the error as the source_transaction currency is uyu so the transfer should work 🤔
Let me ask a colleague
Sure, thank you Hanzo! I also expected it to work gracefully, but it never does hehe 😛
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
Yes I think so too
So how can I find out the exact UYU net value i can transfer to the connected account?
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
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
Ah I see.
If you retreive the BalanceTransaction for the charge, are you seeing the exchange_rate there?
https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-exchange_rate