The server-side portion of a polyfill for the Web Payments Browser API.
A live version and demo of this site can be found at web-payments.io.
This software enables a person to register payment applications that can be used to perform payments at websites that use the Web Payments Browser API.
This software enables a person to:
- Register a payment application for later use.
- Choose a compatible, previously registered payment application following a payment request.
- Proxy payment requests and payment acknowledgements between payee websites and payment applications.
The following section explains how to setup and develop the web-payments.io software on a local development machine.
- node.js
- npm
The options in the ./configs/web-payments.dev.js
file can be tuned to your
environment as needed.
- Install the dependencies (see below)
- Map the
web-payments.dev
hostname to your localhost.
To install dependencies, do the following:
npm install
Add a host alias (for example, edit /etc/hosts
) to map web-payments.dev
to
localhost
.
Run the following to start up a development server from the source directory:
node web-payments.dev.js
To add more verbose debugging, use the --log-level
option:
node web-payments.dev.js --log-level debug
Access the server at the following URL: