Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duell10111/apple-iap-validator
https://github.com/duell10111/apple-iap-validator
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/duell10111/apple-iap-validator
- Owner: Duell10111
- License: mit
- Created: 2021-07-23T12:28:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:38:06.000Z (about 1 year ago)
- Last Synced: 2024-06-11T19:09:10.709Z (7 months ago)
- Language: TypeScript
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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