by WAC Application Services Ltd.
Using this plugin requires Android PhoneGap and the WAC PhoneGap Plugin Library. The WAC Library can be downloaded here.
-
Create your Android PhoneGap project. Details at http://phonegap.com/start/#android
-
From WAC_PhoneGap_Plugin_Library, (a) move wacphonegap-1.0.1.jar and wac-1.0.2.jar into your project's libs directory and (b) add them to your build path.
-
Copy the files in WACNapiPaymentPlugin/assets/www/ into your assets/www/ folder.
-
Using WACNapiPaymentPlugin/AndroidManifest.xml as a reference, update your AndroidManifest.xml file with (a) a superset of the permissions and (b) net.wacapps.napi.android.WacNapiPayment.
-
Make sure the file name for phonegap.{version}.js in your index.html matches the file name in your www directory.
-
Create your WAC API keys as explained in WAC_PhoneGap_Plugin_Library/Managing WAC Payment API Keys.pdf.
-
Configure the WAC API keys you created in the onDeviceReady() function of the demo.js file. (Currently this file points to the WAC TEST environment. Update this configuration to use your own unique API keys.)
-
Deploy and test your app.
- Initial release
- For API docs, see the assets/www/wac.js. For sample code, see assets/www/demo.js and assets/www/index.html.
- New checkBillingAvailability() API has been added to check if Wac billing is available.
- Bug fixes related to callback functions
Patches are welcome, send a pull request. Since this is not a part of PhoneGap Core (which requires a CLA), this should be easier.
Post issues in the PhoneGap Google Groups, include in the subject heading - "WACNapiPlugin" or on Github (preferred)