#chengyu-accounts
1 messages · Page 1 of 1 (latest)
why I got this error...
let me paste code
sec
stripe.api_key = 'my test key'
capabilities = {"transfers": {"requested": True}}
service_type = {'service_agreement': 'recipient'}
business_profile = {'name': 'test'}
account = stripe.Account.create( type="express",
country='AU', email='test@example.com', capabilities=capabilities, tos_acceptance=service_type, business_profile=business_profile)
The code you pasted doesn't seem to match the request you made - your code has country: AU while the request has country: US
srry I tried with code 'US' see if it works, used to be 'AU', and it get the similar result as well.
Gotcha - so you're saying previously you were able to create these accuonts with just the transfers capability, but recently it's stopped working?
Do you have an example of it working before?
tbh this code was not written by me, it used to working, but when I set up it on local dev with my own stripe account, this code given the above error
the code has not changed ever since it was wroten, it used to work before, but not now, I tried the test key pair on account (which our production server is using and was working before) and the key pair of my own stripe account.
this is original code un modified
my previous colleague did leave some comments, the code I pasted was just change the variable name to its value
What's the account ID of the one where it was previously working?
was the email it registered in
I do not have permission directly login to that account
it belongs to the business team and their leader is in meeting.
hope it helps
Deleting the message since it had an email in it (I just wanted the account ID acct_xxx) but I grabbed it and I'll try and find it
I found the account, but see no requests on it that ever created express accounts
test mode
Yes, I checked both
sec I will make 1 then, I used that key pair yesterday
I have made 1, usually it takes a while to receive that error message
stripe.error.InvalidRequestError: Request req_1Yp5oPgWxPzZAK: The recipient ToS agreement is not supported for platforms in AU creating accounts in US.
ok it got back
if switch 'US' to 'AU' it should be the same
Let's circle back for a second - why specifically are you creating accounts with the recipient service agreement?
tbh I was not the writer of that code, I am just to continue some1's work but from the comment
recipient tos type will not be able to collect card payments
# on their own (the master account will do it on their behalf).
# additionally, the accounts business relationship is inended
# to be more with the platform, rather than stripe. there is no
# option here, as 'full' service accounts are forbidden to be
# the destination of transfers in australia.
Just from looking into our documentation and the past requests on the accounts you've sent over, I'm not seeing any indication that creating a recipient service agreement connect account is allowed for non-US platforms.
the task is to create account for user so we can collect payment for them the extract commission
so when u mention non-US platform is that mean the when the account created I specified as in USA or the business profile need to be a USA company
Let me be more specific - You are specifying service_agreement: recipient and the platform account is based in the AU. This is something we do not support.
The only platform accounts that are allowed to specify service_agreement: recipient are platform accounts that are based in the US
understand, but is it possible for an AU company create an account and collect payment for that account?
if so what is the service type or account type we should using
Do you mean debit the account itself, or collect payments from customers for that account?
collect payments from customers for that account
Gotcha - yes, that's definitely doable. You should be using service_agreement: full and request the transfers and card_payments capabilities
no worries!
btw where can I find docs which can tell me "service_agreement: recipient" is not supported by non-US platform
I don't believe we have specific docs about it unfortunately
ok I was wondering thx
srry a different error this time
Your platform needs approval before giving accounts the platform_payments capability.
I think I can get to support channel for this 1
Definitely write into support - it also may be a versioning issue. The account I was looking at was on a very old API version, and a lot has changed since then
\o/
when u say account on a old API version, is that mean the requests from that account hit the old api endpoint?
the python sdk version we using is 2.55 released on 15 Oct 2020
The Python SDK version isn't what's important here - the API version of your Stripe account is what determines behavior
how do I upgrade the API version of Stripe account, any docs about that?
As a first step, you can try setting the API version per-request to see how it would affect your integration (see https://stripe.com/docs/api/versioning?lang=python). You should also read through https://stripe.com/docs/upgrades#how-can-i-upgrade-my-api
ok stripe support channel can not locate the api request failure which did not show on https://dashboard.stripe.com/test/log
so I have been redirect back to here
the account is 'Yu Cheng'
the error is Request req_f9iGIq5L0LBLtr: Your platform needs approval before giving accounts the platform_payments capability.
similar error also in the previous account we were discussing
@boreal agate I need to head out for the day but @ivory parrot is around and should be able to help!
I would push back on Support and ask for them to escalate you to someone else that can help - they should be able to reroute you to the correct people
have a good night!
thx so much for your help
@ivory parrot basically the problem is I got "Request req_f9iGIq5L0LBLtr: Your platform needs approval before giving accounts the platform_payments capability" while creating an account.
the code is something like following
the account name is 'Yu Cheng' which is a stripe account that I created just for testing
thx so much