Socket
Book a DemoInstallSign in
Socket

amazon_iap

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amazon_iap

Validates Amazon app store purchases (iap) using the amazon receipt verification service (rvs) to find out about current subscription details.

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

amazon_iap

NodeJs helper service to validate in-app purchase using the amazon receipt verification service (RVS).

Install

$ npm install amazon_iap

alt tag Usage

You can look at Amazon documention about the process here.

After you configure and run the service, you can browse it:

var that = this;
var options = {
    email: 'your developer email',
    key: 'your developer key'
};
var verifier = new AmzIAPVerifier(options);
var receipt = {
    packageName: 'package name',
    productId: 'the name of your product',
    purchaseToken: 'The response token from the in-app purchase process',
    userId: 'The reponse user id from the in-app purchase process'
};
verifier.validateConsumable(receipt, function(err, response) {
    if (err) {
        console.log('error occur');
    } else if(response.itemType == "CONSUMABLE") {
        console.log('everything is ok');
    } else {
        console.log('other error occur');
    }
});

Version

1.1.0

License

MIT

Author

Meir Shamay @meir_shamay

Free Software, Hell Yeah!

Keywords

amazon

FAQs

Package last updated on 08 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts