An example how to run stripe out of the box with wsgi from a single file.
At first, please install the python stripe API, i.e. with pip:
pip install --user stripe
Create payment.py which creates a WSGI webserver at port 8000 out of the box
html = """
<html>
<body>
...