#python-dev_api

1 messages ยท Page 1 of 1 (latest)

opaque thunderBOT
#

๐Ÿ‘‹ 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/1291735662130630841

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

strong steppe
#

hi there!

silent ivy
#

hello soma

strong steppe
#

In tried changing the configuration as shown in the link but the error is persistent.
can you share other requests you made with different configurations?

silent ivy
#

the response is same

#

by the way, code is working for the standard account and the error is coming when I am trying to create an express account

silent ivy
# strong steppe > In tried changing the configuration as shown in the link but the error is pers...

Request req_4fwV8EOcqFRxvt: Platforms in AE cannot create accounts where the platform is loss-liable, due to risk control measures. Please refer to our guide (https://support.stripe.com/questions/connect-availability-in-the-uae) for more details.

strong steppe
#

but it's the exact same parameters you used. looks like you didn't change anything?

silent ivy
#

class CreateStripeAccount(Resource):
def post(self):
try:
account = stripe.Account.create(
type='express',
country='AE',
capabilities={
'card_payments': {'requested': True},
'transfers': {'requested': True},
}
)
return {'status': 1, 'message': 'Account created', 'data': account.id}
except Exception as e:
return {'status': 0, 'message': 'Something went wrong', 'error': str(e)}, 400

#

it's my code to create a connect account , which parameter should I change here ?

strong steppe
silent ivy
#

req_kql8pVvsxQMb3F

#

in thi request I tried changing the configuration but still facing the same issue

#

it's only happening when I try to create an express account

#

for standard any configuration works fine

strong steppe
#

in thi request I tried changing the configuration but still facing the same issue
it's the exact same configuration as before. you are not changing anything, so you are getting the same error.

#

like the payload is always the same:

{
  capabilities: {
    card_payments: {
      requested: "True",
    },
    transfers: {
      requested: "True",
    },
  },
  country: "AE",
  type: "express",
}
silent ivy
strong steppe
#

where did you change the configuration exactly? can you share a screenshot?

silent ivy
#

yes wait a moment

strong steppe
silent ivy
#

req_901YhVLTZzII2I

#

in this request I've changed the account type from express to standard

#

and it worked fine

#

but i want to facilitate the express account in my application

opaque thunderBOT
silent ivy
#

hey @strong steppe , any solution for the issue ??

onyx pendant
#

Taking over for soma

#

I'm looking

#

Express accounts by default have platform loss-liable

#

So you wouldn't be able to create an express account with default parameters

silent ivy
#

So what should I do to prevent this error?

onyx pendant
#

If you want express dashboard access, you need to create the account with the controller properties

#

Like my colleague suggested

silent ivy
#

okay let me try it out

onyx pendant
#

The main thing is losses.payments

#

losses.payments can't be application in the uae

#

So you need to set that to stripe

#

Also I think you still can create it with capabilities (the way you were trying)

#

But that support link clearly says if using express accounts, you can only request the transfers capability not the cards capability

#

This means the following charges types are available:

Destination charges without the on_behalf_of parameter
Separate charges and transfers```
silent ivy
#

account = stripe.Account.create(
# type='express',
controller={
"stripe_dashboard": {"type": "express"},
"fees": {"payer": "application"},
"losses": {"payments": "application"},
},
country='AE',
capabilities={
# 'card_payments': {'requested': True},
'transfers': {'requested': True},
}
)

#

Used this payload

#

still the same issue

onyx pendant
#

You passed losses.payments as application

#

That's the same thing as passing type=express

silent ivy
#

I changed the losses from stripe to applicaiton because of this error : "Request req_Imn5JrI8hXiDC9: With a dashboard type of express, the Connect application must control losses.

onyx pendant
#

From my earlier messages

#
losses.payments can't be application in the uae
So you need to set that to stripe```
#

Oh ok

#

So I guess your only option then is to create an express account with only transfers

#

If you want express access

silent ivy
#

same issue

onyx pendant
#

Can you share request id

silent ivy
#

req_JeIZ3KKtDEiKzi

onyx pendant
#

Try passing just country, account type, and capabilities

#

instead of controller

#

curious if you get same error

silent ivy
#

okay let me make a new request

#

req_ycfWvUqOdrMHDH

onyx pendant
#

Oh that support article mentions You should be aware that some configurations may require you to contact our sales team.

#

I'm guessing you need this explicitly enabled

#

So recommend clicking that link in the article

silent ivy
#

Okay thank you for the assistance

onyx pendant
#

No problem

silent ivy
#

appriciate the help, Have a good day ๐Ÿ˜„