Skip to content

Async wrapper around stripe's official python library

License

Notifications You must be signed in to change notification settings

cglacet/async-stripe-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-stripe

An asynchronous wrapper around the official stripe library.

/!\ Note: This is still a work in progress and doesn't provide async support for all the resources yet.

Usage

The usage api is kept very similar to stripe's official library:

from async_stripe import stripe

stripe.api_key = '<stripe-secret-key>'

payment_intent = await stripe.PaymentIntent.create(amount=1000, currency='usd')

print(payment_intent.id)

Sync usage

Currently, only a limited operations have async usage. For those cases, you'll have to fall back to using sync code (without the await keyword).

Requirements

  • Tornado (used for making async http requests)
  • stripe (official stripe library)

License

BSD-3-Clause

About

Async wrapper around stripe's official python library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%