Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Tester for Mozilla in-app payments
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
routes
views
www
.gitignore
.gitmodules
LICENSE
README.md
config-dist.js
package.json
server.js
stackato.yml

README.md

In-app Payment Tester

This is an open web app that implements Mozilla's navigator.mozPay() API. It is used for diagnostics / testing in the Marketplace development cycle.

Run The App

You can run the app from http://inapp-pay-test.paas.allizom.org/ to test in-app payments. Here is a shortcut to install the app on device.

Customize It

If you want to customize the settings (like your payment keys) you can run the app yourself almost as easily.

Requirements:

  • NodeJS >= 0.8
  • npm >= 1.1

Clone the source and install:

git clone git://github.com/kumar303/inapp-pay-test.git
cd inapp-pay-test
npm install
cp config-dist.js config.js

Edit config.js and enter your Application Key and Application Secret. Start the development server:

npm start

View the app at http://0.0.0.0:3000/ or install the manifest from http://0.0.0.0:3000/manifest.webapp.

Deployment

You can deploy to Mozilla's Stackato PAAS if you have access. Edit the app name in stackato.yml so that it's unique across the cluster. Create a new app like this:

stackato push

Make updates:

stackato update

You may want to edit config.js to set different settings while running in Stackato.

Something went wrong with that request. Please try again.