Skip to content

Fake web store — a Payment Request API demo

Notifications You must be signed in to change notification settings

AppRepo/fake-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fake web store — a Payment Request API demo

Simple experiment for integrating PayPal’s Braintree API with Payment Request API.

Set up

  1. Clone the repository and cd into its main directory.

  2. Install Node which comes with npm if you haven’t already.

  3. Install dependencies:

    npm install
  4. A PayPal sandbox account is also needed. Retrieve the credentials from the sandbox account, edit index.js, and fill in merchantId, publicKey and privateKey.

  5. Run the test server:

    node index.js
  6. Start a browser on an Android phone, browse to the test server, and click on “Download Opera” to download and install opera_android_braintree.apk on the phone.

  7. Run the demo using the Opera Beta. Note that you don't have to fill in any real PayPal or credit card credentials. Click on the PayPal icon to use a fake PayPal account instead of a credit card.

An Opera version with payment request support can be found at /MerchantPublic/opera_android_braintree.apk, and can also be downloaded from the test server.

About

Fake web store — a Payment Request API demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.2%
  • HTML 41.9%
  • CSS 10.9%