/fake-store

Fake web store — a Payment Request API demo

Primary LanguageJavaScript

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.