#sayori_code
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/1234588071467548764
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, to clarify are you getting an error message back from our server that tells you to include additional_verifications? If so, can you send me the request ID of a request that got this error? (req_123)
And if this error is entirely coming from the python library, can you send me the full error message that you are getting?
Can you send me your Account creation code? I just installed 9.4 and was successfully able to create an account with our the account creation snippet from our API reference https://docs.stripe.com/api/accounts/create
type="custom",
country="US",
email="jenny.rosen@example.com",
capabilities={
"card_payments": {"requested": True},
"transfers": {"requested": True},
},
)```
Sorry, I was in a meeting for a bit. let me pull together the request ID
~~This is our stripe account creation code:
type="express",
country=country,
additional_verifications=_get_additional_verifications(
country, earnings_over_tax_info_threshold
),
capabilities=_get_capabilities(country),
tos_acceptance={"service_agreement": _get_service_agreement(country)},
api_key=a.model.earnings.producer.stripe.get_stripe_spaces_secret_key(),
stripe_version=stripe_api_version.get(),
)```
specifically, the `additional_verifications` field is what messes things up~~
sorry what I described earlier was not entirely correct. let me rephrase my issue:
the python typing of stripe.Account.create is create(**params: typing_extensions.Unpack[ForwardRef('Account.CreateParams')]) -> 'Account' method of builtins.type instance
Looking at stripe.Account.CreateParams, additional_verifications is missing. this is causing type checks to fail
Specifically, the type-checker we use is pyanalyze
Ah so you do have the additional_verifications parameter, but our account create params don't have that, so the type checking fails?
yep. I am indeed able to make accounts correctly by forcing the parameter through, but our CI/CD pipeline is not a big fan of that ๐
Gotcha, unfortunately I'm not finding a workaround for this at the moment. Would you mind adding your usecase on this GH issue about this? Seeing more interest will help our library devs prioritize this https://github.com/stripe/stripe-python/issues/1287
yep, works for me, I'll report it there. thanks!
Unfortunately I'm not seeing a workaround at the moment. So at the moment the workaround may be to suppress the error until we release the fix