Simple experiment for integrating PayPal’s Braintree API with Payment Request API.
-
Clone the repository and
cdinto its main directory. -
Install Node which comes with
npmif you haven’t already. -
Install dependencies:
npm install
-
A PayPal sandbox account is also needed. Retrieve the credentials from the sandbox account, edit
index.js, and fill inmerchantId,publicKeyandprivateKey. -
Run the test server:
node index.js
-
Start a browser on an Android phone, browse to the test server, and click on “Download Opera” to download and install
opera_android_braintree.apkon the phone. -
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.