#python-dev_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.
โฑ๏ธ 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.
hi there!
hello soma
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?
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
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.
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
but it's the exact same parameters you used. looks like you didn't change anything?
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 ?
I recommend reading this doc that covers the different configuration you can set when creating a conencted account: https://docs.stripe.com/connect/design-an-integration
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
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",
}
payload is the same but I changed the configuration suggested in the link given below https://support.stripe.com/questions/connect-availability-in-the-uae
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
where did you change the configuration exactly? can you share a screenshot?
yes wait a moment
in the connect setup i have tried the configuration suggested in the link https://support.stripe.com/questions/connect-availability-in-the-uae
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
but that's not a setting, this is just used to generate some docs for you.
now you need to make API calls with the correct payload that match your screenshot, by calling the create account endpoint and setting the controller parameter https://docs.stripe.com/api/accounts/create?lang=node#create_account-controller
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
hey @strong steppe , any solution for the issue ??
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
So what should I do to prevent this error?
If you want express dashboard access, you need to create the account with the controller properties
Like my colleague suggested
okay let me try it out
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```
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
You passed losses.payments as application
That's the same thing as passing type=express
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.
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
I tried only transfer option but still the
same issue
Can you share request id
req_JeIZ3KKtDEiKzi
Try passing just country, account type, and capabilities
instead of controller
curious if you get same error
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
Okay thank you for the assistance
No problem
appriciate the help, Have a good day ๐