iap-apple 2.0.2 โ 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
A NodeJS module for in-app purchase (in-app billing) and subscription for Apple.
|
|
9
9
|
|
|
10
|
-
## Overview
|
|
10
|
+
## Overview ๐ง
|
|
11
11
|
|
|
12
12
|
Create a Typescript package for validation of [App Store Receipts](https://developer.apple.com/documentation/appstorereceipts).
|
|
13
13
|
This package is meant to be used server side to validate receipts from the App Store by talking to Apples servers.
|
|
14
14
|
|
|
15
|
-
## Installation
|
|
15
|
+
## Installation ๐ฆ
|
|
16
16
|
|
|
17
17
|
### npm
|
|
18
18
|
|
|
@@ -22,9 +22,9 @@ This package is meant to be used server side to validate receipts from the App S
|
|
|
22
22
|
|
|
23
23
|
```yarn add iap-apple```
|
|
24
24
|
|
|
25
|
-
## API documentation
|
|
25
|
+
## API documentation ๐
|
|
26
26
|
|
|
27
|
-
### verify
|
|
27
|
+
### verify ๐งช
|
|
28
28
|
|
|
29
29
|
API used to verify receipt data received during an App Store purchase.
|
|
30
30
|
Requires **appSharedSecret** to be passed as part of the configuration.
|
|
@@ -70,7 +70,7 @@ async function verifyAppleReceipt(receipt: string) {
|
|
|
70
70
|
}
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
### isVerifiedReceipt
|
|
73
|
+
### isVerifiedReceipt ๐งช
|
|
74
74
|
|
|
75
75
|
API used to verify if response returned by `verify` is verified.
|
|
76
76
|
Requires the output of `verify` to be passed.
|
|
@@ -94,7 +94,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
|
|
|
94
94
|
}
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
### getPurchasedItems
|
|
97
|
+
### getPurchasedItems ๐งช
|
|
98
98
|
|
|
99
99
|
API used to get an array of PurchasedItem objects from the Apple App Store response,
|
|
100
100
|
sort by their purchase date descending.
|
|
@@ -121,7 +121,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
|
|
|
121
121
|
}
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
### isPurchasedItemCanceled
|
|
124
|
+
### isPurchasedItemCanceled ๐งช
|
|
125
125
|
|
|
126
126
|
API used to check if a purchased item is canceled.
|
|
127
127
|
Requires the output of `getPurchasedItems` to be passed.
|
|
@@ -148,7 +148,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
|
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
### isPurchasedItemExpired
|
|
151
|
+
### isPurchasedItemExpired ๐งช
|
|
152
152
|
|
|
153
153
|
API used to check if a purchased item is expired.
|
|
154
154
|
Requires the output of `getPurchasedItems` to be passed.
|