itemshop provides a Flask (>=0.8) blueprint that you can mount in your app to get a simple purchase flow for a single item.
Payments are handled using stripe. The credit card information is processed in the browser using stripe.js, so you don’t need to handle sensitive info server-side. The server-side code takes the stripe_token obtained from stripe.js, then uses the stripe python API to actually make the charge.
There is a demo site running here:
The demo is running in stripe’s test mode, which means only this test credit card info will work:
If you clone the repository you will see a demos directory with example uses of ItemBP. Each demo is meant to be a standalone application, they do not depend on each other or any other libraries, except for some shared static files (JS and CSS). Here are the current demos: