Skip to main content

An asgi server for stripe payments

Project description

ASGI Server for servers-side Stripe PaymentIntents API

In order to run this server, you need to set the environnement variable STRIPE_KEY set with your private stripe token:

export STRIPE_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Running the server:

gunicorn server:app -w 4 -k uvicorn.workers.UvicornWorker

Alternatively, while you're still in development you can simply run:

python server/server.py

Which will enable auto-reload of your application every time a local change is detected.

What is this server for?

When working with Stripe you need to perform some actions secretly (using your secret API token), in order to keep these secret some requests to the Stripe API will be done on the server-side of your application. This is where this service comes in.

The stripe-asgi-server is a minimal working server that will perform all secret actions using the async-stripe module, for all the outgoing requests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stripe-asgi-server-0.0.2.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file stripe-asgi-server-0.0.2.tar.gz.

File metadata

  • Download URL: stripe-asgi-server-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for stripe-asgi-server-0.0.2.tar.gz
Algorithm Hash digest
SHA256 52c5d20818f48e611396677223a67e756283dbc693191c10b2e12eca83fe1ba9
MD5 32c2f2d0f08ba3f9b14af6bff85b109e
BLAKE2b-256 056c6d3606d1259d7dc6349dd68cee99e6be6e2dd0dc20757374179df4f6183e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page