Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/duell10111/apple-iap-validator


https://github.com/duell10111/apple-iap-validator

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# apple-iap-validator

Simple Validator through the apple webinterface

## Getting started

Install this library through:

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

## Usage

Options:

```typescript
const options = {
appShared : "AppShared password"
}
```
Create the verifier object:

```typescript
import Verifier from 'apple-iap-validator';
const verify = new Verifier(options);
```
Validate receipt:
```typescript
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