Skip to content

andrewnelder/apple-pay-web-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run the demo

This demo requires that ngrok be installed or that you have some means of accessing the local web service from an iOS 10+ device. This is a demonstration only and absolutely should NOT be used in a production environment (as Flask is set to run in debug-mode for auto-reload).

To deploy directly to Heroku, click this button:

Deploy

Step #0: Install the Requirements via PIP

pip install -r requirements.txt

Step #1: Turn on your Python web server (listening on localhost:5000)

Replace the keys below and run the following command in your terminal.

STRIPE_SECRET_KEY=sk_test_XXX STRIPE_PUBLISHABLE_KEY=pk_test_XXX python run.py

Step #2: Route ngrok to host port 5000

Start an ngrok route to your machine.

ngrok http 5000

Step #3: Access the demo from the browser on your iOS 10+ device

https://<YOURNGROKADDRESS>.ngrok.io/

NOTE: This is over HTTPS!

About

Apple Pay for the Web Demo on Stripe (Python/Flask)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published