#chengyu-accounts

1 messages · Page 1 of 1 (latest)

gusty vault
#

Hello! What's your question?

boreal agate
#

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)

gusty vault
#

The code you pasted doesn't seem to match the request you made - your code has country: AU while the request has country: US

boreal agate
#

srry I tried with code 'US' see if it works, used to be 'AU', and it get the similar result as well.

gusty vault
#

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?

boreal agate
#

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

boreal agate
#

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

gusty vault
#

What's the account ID of the one where it was previously working?

boreal agate
#

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

gusty vault
#

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

boreal agate
#

thx so much

#

my test account named "Yu Cheng"

gusty vault
#

I found the account, but see no requests on it that ever created express accounts

boreal agate
#

test mode

gusty vault
#

Yes, I checked both

boreal agate
#

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

gusty vault
#

Let's circle back for a second - why specifically are you creating accounts with the recipient service agreement?

boreal agate
#

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.
gusty vault
#

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.

boreal agate
#

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

gusty vault
#

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

boreal agate
#

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

gusty vault
#

Do you mean debit the account itself, or collect payments from customers for that account?

boreal agate
#

collect payments from customers for that account

gusty vault
#

Gotcha - yes, that's definitely doable. You should be using service_agreement: full and request the transfers and card_payments capabilities

boreal agate
#

I am trying.....

#

thank you so much for your patience

gusty vault
#

no worries!

boreal agate
#

btw where can I find docs which can tell me "service_agreement: recipient" is not supported by non-US platform

gusty vault
#

I don't believe we have specific docs about it unfortunately

boreal agate
#

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

gusty vault
#

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

boreal agate
#

\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

gusty vault
#

The Python SDK version isn't what's important here - the API version of your Stripe account is what determines behavior

boreal agate
#

how do I upgrade the API version of Stripe account, any docs about that?

gusty vault
boreal agate
#

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

gusty vault
#

@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

boreal agate
#

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