Payment Handler API polyfill demo
The demo works in Chrome, Firefox, and Edge. To make it work in Safari, you will have to allow third party cookies "Always":
A live version of this demo can be run by following these steps:
- Go to https://payment-handler.demo.digitalbazaar.com/ and install a payment handler and add some credit cards.
- Go to https://payment-merchant.demo.digitalbazaar.com/ and make a (fake) payment!
A video of the demo can be found here:
https://www.youtube.com/watch?v=Yb-gWT1t1Rg
If you would like to run the merchant demo site yourself, follow these instructions:
- Clone this repository:
git clone https://github.com/digitalbazaar/payment-handler-demo
- Enter the merchant site directory:
cd angular-payment-merchant
- Install npm packages.
npm install
-
Ensure an entry for the local site is in your
/etc/hosts
file. To do this, edit/etc/hosts
(as root) and mapexample.merchant.localhost
to127.0.0.1
. -
Run the merchant site in dev mode:
node dev.js
- Visit https://example.merchant.localhost:10443 in a browser.
- Accept invalid demo SSL certificate.
- The merchant demo page should show.
To run the live demo against your local merchant demo site:
- Visit https://payment-handler.demo.digitalbazaar.com/ and install the payment handler and add some credit cards.
- Visit https://example.merchant.localhost:10443 and click "Buy".