package
Verifies windows store receipts.
npm install win-iapGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Verifies windows store (in app) purchase receipts.
Based on Validating Windows Mobile App Store Receipts Using Node.js.
Developed for ProSiebenSat.1 Digital GmbH.
npm install win-iapvar receipt = '<receiptXML/>';
var Verifier = require('win-iap');
var verifier = new Verifier();
verifier
.verify(receipt)
.then(function(response) {
console.log('Valid receipt.');
console.log('id: '+response.id);
console.log('purchased: '+response.startTimeMillis);
console.log('expires: '+response.expiryTimeMillis);
})
.catch(function(err) {
console.
new Verifier(options)Options is an optional object with the following possible fields:
certURL: The url to download certificates from. Defaults to 'https://go.microsoft.com/fwlink/?LinkId=246509&cid=#{ID}'.certCache: An object with a get(id) and set(id, val) method for caching certificates. The methods may return promises for async operation. Defaults to new Verifier.MemoryCache().verifier.verify(receipt)Returns a promise for verifying the given receipt XML string. The promise will resolve if the receipt is valid, or raise an error if it is invalid or can't be verified for other reasons.
Errors will have a verifyErr property which can have the following values:
'badsignature': The signature did not match.'badxml': The receipt XML was invalid.'badfetch': The certificate could not be fetched.MIT License.
maurermax
maxemanuel.maurer@gmail.com
Estimated unpacked size across 42 packages.
11.5 MB
Includes dependencies.
5 direct · 2 outdated
^1.0.1
1.5.1
^2.8.1
2.31.0
^0.1.19
0.6.0
^2.36.0
2.88.2
0.0.22
6.4.0