https://github.com/digitalbazaar/web-payments.io
Website-side of the payments polyfill
https://github.com/digitalbazaar/web-payments.io
Last synced: 11 months ago
JSON representation
Website-side of the payments polyfill
- Host: GitHub
- URL: https://github.com/digitalbazaar/web-payments.io
- Owner: digitalbazaar
- Created: 2016-01-24T02:12:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T09:00:17.000Z (about 6 years ago)
- Last Synced: 2025-05-05T19:03:17.345Z (about 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 5
- Watchers: 16
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web-payments.io
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][].
# Core Functionality
This software enables a person to:
1. Register a payment application for later use.
2. Choose a compatible, previously registered payment application following
a payment request.
3. Proxy payment requests and payment acknowledgements between
payee websites and payment applications.
# Development
The following section explains how to setup and develop the web-payments.io
software on a local development machine.
### Requirements
* node.js
* npm
### Configuration
The options in the `./configs/web-payments.dev.js` file can be tuned to your
environment as needed.
## Setup
* Install the dependencies (see below)
* Map the `web-payments.dev` hostname to your localhost.
To install dependencies, do the following:
npm install
### Running
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
### Usage
Access the server at the following URL:
* https://web-payments.dev:53443/
[web-payments.io]: https://web-payments.io
[Web Payments Browser API]: http://wicg.github.io/web-payments-browser-api/