Skip to content

ExternKit/extern-js-in-app-purchase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages