Coder Social home page Coder Social logo

payment-handler-demo's Introduction

payment-handler-demo

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":

https://stackoverflow.com/questions/38584273/local-storage-cross-domain-safari-disables-it-by-default/38793832

A live version of this demo can be run by following these steps:

  1. Go to https://payment-handler.demo.digitalbazaar.com/ and install a payment handler and add some credit cards.
  2. 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

Running the Merchant Demo Site

If you would like to run the merchant demo site yourself, follow these instructions:

  1. Clone this repository:
git clone https://github.com/digitalbazaar/payment-handler-demo
  1. Enter the merchant site directory:
cd angular-payment-merchant
  1. Install npm packages.
npm install
  1. Ensure an entry for the local site is in your /etc/hosts file. To do this, edit /etc/hosts (as root) and map example.merchant.localhost to 127.0.0.1.

  2. Run the merchant site in dev mode:

node dev.js
  1. Visit https://example.merchant.localhost:10443 in a browser.
  2. Accept invalid demo SSL certificate.
  3. The merchant demo page should show.

To run the live demo against your local merchant demo site:

  1. Visit https://payment-handler.demo.digitalbazaar.com/ and install the payment handler and add some credit cards.
  2. Visit https://example.merchant.localhost:10443 and click "Buy".

payment-handler-demo's People

Contributors

dlongley avatar mattcollier avatar

Stargazers

56 avatar Nguyen Van Vuong (Vic) avatar

Watchers

Manu Sporny avatar David I. Lehn avatar  avatar James Cloos avatar  avatar  avatar

payment-handler-demo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.