Apple Pay for the Web Example

by andrewnelder


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:


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.


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


NOTE: This is over HTTPS!