node-iap-utils - In-App Purchase Receipts validation on App Store
This package provides a simple function to validate IAP Receipts on App Store
installation
npm i --save node-iap-utils
usage
import iapReceiptValidator from 'node-iap-utils';
const password = 'b212549818ff42ecb65aa45c';
const production = false;
const validateReceipt = iapReceiptValidator(password, production);
async validate(receiptData) {
try {
const validationData = await validateReceipt(receiptData);
} catch(err) {
console.log(err.valid, err.error, err.message)
}
}
Drop-in Replacement for iap-receipt-validator that works as a NodeJS app.