Skip to content

About

NodeJS in-app-purchase library extern

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

extern-js-in-app-purchase

  • Target : Javascript (NodeJS)
  • Library : in-app-purchase
  • Last tested version : 1.1.1
  • Available on : Github - NPM

Usage

import js.inapppurchase.*;

class Main
{
  static function main()
  {
    InAppPurchase.setup(function(error) {
      if (null != error) {
        trace(error);
        return; 
      }

      InAppPurchase.validate(InAppPurchase.APPLE, receipt, function(error, response) {
        if (null != error) {
            trace(error);
            return; 
        }
        
        if (InAppPurchase.isValidated(response)) {
          var purchaseDataList = InAppPurchase.getPurchaseData(response);
          /*
            [
              {
                productId: xxx,
                purchasedDate: yyy,
                quantity: zzz
              }
            ]
          */
        }
      });
    });
  }
}

About

NodeJS in-app-purchase library extern

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages