apple-iap-validator
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

apple-iap-validator

Simple Validator through the apple webinterface

Getting started

Install this library through:

npm i apple-iap-validator # or yarn add apple-iap-validator

Usage

Options:

const options = {
	appShared : "AppShared password"
}

Create the verifier object:

import Verifier from 'apple-iap-validator';
const verify = new Verifier(options);

Validate receipt:

const result = await verify.verifiy(encodedReceipt);
//result encoded like the Apple Doc : https://developer.apple.com/documentation/appstorereceipts/responsebody
//or throws error if no Http 200 status code is returnd

Changelog

0.1.1 : Change input receipt to require base64 encoded string

Readme

Keywords

none

Package Sidebar

Install

npm i apple-iap-validator

Weekly Downloads

5

Version

0.1.3

License

MIT

Unpacked Size

231 kB

Total Files

19

Last publish

Collaborators

  • duell10111