[Python] Running Stripe Asynchronously

Discussão em 'Python' iniciado por Stack, Abril 22, 2025.

  1. Stack

    Stack Membro Participativo

    The following code takes few second to run:

    payments = stripe.PaymentIntent.list(limit=10000)

    How I can make the above code run asynchronously?

    I tried await payments = stripe.PaymentIntent.list(limit=10000) but I received the error SyntaxError: cannot assign to await expression

    Continue reading...

Compartilhe esta Página