#andrew-111555_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. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ 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/1214726117370630235
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Ok, here is the question:
I am using hosted payments and connect accounts.
Our main account is in Germany and we are a software company.
We have clients that use our software are in Australia.
Their customers are in Australia.
We want to have our clients create connect accounts to get payments and we would like to set the amount to take out.
We can currently create connect accounts (all this is in the test environment) along with these fields as in the link below:
- application_fee_amount=123
- transfer_data[destination]={{CONNECTED_ACCOUNT_ID}}
https://docs.stripe.com/connect/destination-charges#settlement-merchant
But when using it with a connect account that is showing payouts and charges enabled and requirements not due, I am getting the following exception
Stripe.StripeException: 'No such on_behalf_of: ' acct_xxxxxxxxxxxx ''
I am not sure if I need to use "on_behalf_of", and I tried adding with the same connect account put there, but I get the same error.
I don't know what the error is due to or how to figure this out.
@serene arch We'll chat here instead since you added more context in this thread and not the other
ok
Do you have a request ID associated with that on_behalf_of error?
You will need to use on_behalf_of for Destination charges in this case since your platform and connected accounts are in different regions
I am not seeing a request id in the exception message. Where should I see that?
should the on_behalf_of be the same as the connect account id?
ah, thanks. this is the request id:
req_jY4LfYTAJ0YqUy
the message there is:
resource_missing - payment_intent_data[on_behalf_of]
No such on_behalf_of: ' acct_1OnubqCB7NvMcykV '
but the item payment_intent_data[on_behalf_of] is clearly in there, so I'm not sure what to do.
Hm, I think the issue here are the spaces. I see a leading space and trailing space for both values of on_behalf_of and tranfer_data.destination
let me double check on that and get back here shortly
You're right. Sorry, I should have noticed that myself. Thank you for the help.
No worries, all good!
If there's any other feedback you have about our new flow in this channel, I'm all ears. If you think of any feedback later, feel free to drop it in #1211832777608273960