#andrew-111555_api

1 messages ¡ Page 1 of 1 (latest)

winged hedgeBOT
#

👋 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.

serene arch
#

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.

undone anchorBOT
full sorrel
#

@serene arch We'll chat here instead since you added more context in this thread and not the other

#

Porting this from the other thread:
As for ⁠#dev-help , we just rolled out the form in ⁠#help in order to collect key details from developers at the start of our interaction. We're working on adjusting the character limits so thanks for the feedback

serene arch
#

ok

full sorrel
#

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

serene arch
#

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?

full sorrel
#

Yes, on_behalf_of should be the AU connected account's ID in this case

serene arch
#

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.

full sorrel
#

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

serene arch
#

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.

full sorrel
#

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