This package has been deprecated

Author message:

This package is deprecated, please use cordova-plugin-inapppurchase-simulator

cordova-plugin-inapppurchase-sandbox
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

In-App Purchase Sandbox plugin for Cordova

This is a simple Cordova plugin that overrides and approximates the following methods of cordova-plugin-inapppurchase to enable developers to test their in-app purchase workflow in a local sandbox with the minimum of effort on Android and iOS devices:

inAppPurchase.buy(productId);
inAppPurchase.subscribe(productId); // Not currently implemented
inAppPurchase.consume(type, receipt, signature);
inAppPurchase.restorePurchases();
inAppPurchase.getReceipt(); // Not currently implemented

Installation

cordova plugin add cordova-plugin-inapppurchase-sandbox

Use

To enable the local sandbox, add the following command in your "deviceready" event handler:

inAppPurchaseSanbox.enable();

To clear any test purchases you've made, add:

inAppPurchaseSanbox.reset();

That's it!

Make a donation

If you find this project useful, why not buy us a coffee (or as many as you think it's worth)?

Make a donation

Package Sidebar

Install

npm i cordova-plugin-inapppurchase-sandbox

Weekly Downloads

2

Version

0.1.0

License

BSD

Unpacked Size

7.1 kB

Total Files

6

Last publish

Collaborators

  • mesmotronic