webpayments-polyfill
Experimental web payments polyfill
WARNING: The Web Payments spec is still under heavy development. This implementation (and its API) will change often and without notice.
Example
navigator
Installation
Quickstart
The fastest way to include the polyfill is with a script tag:
Webpack/Browserify
If you are using a tool like webpack or browserify, you can also just install this library from NPM:
npm install -S webpayments
Async embed code
The basic script tag method will be blocking. A non-blocking alternative is the following embed code:
You can then register a callback to be called when the polyfill has been loaded:
Usage
TODO: Add API documentation
For now, please see the spec: http://discourse.wicg.io/t/rfc-proposal-for-new-web-payments-api/1100