#sayori_code

1 messages ยท Page 1 of 1 (latest)

versed blazeBOT
#

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

ionic cipherBOT
limpid fossil
#

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},
    },
)```
stray ridge
#

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

limpid fossil
#

Ah so you do have the additional_verifications parameter, but our account create params don't have that, so the type checking fails?

stray ridge
#

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 ๐Ÿ˜…

limpid fossil
stray ridge
#

yep, works for me, I'll report it there. thanks!

limpid fossil
#

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