iap-apple 2.0.2 โ 2.0.4
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 +4 -0
- package/README.md +13 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [2.0.3](https://github.com/ssbarbee/iap-apple/compare/v2.0.2...v2.0.3) (2023-01-14)
|
|
2
|
+
|
|
3
|
+
## [2.0.2](https://github.com/ssbarbee/iap-apple/compare/v2.0.1...v2.0.2) (2022-12-23)
|
|
4
|
+
|
|
1
5
|
## [2.0.1](https://github.com/ssbarbee/iap-apple/compare/v2.0.0...v2.0.1) (2022-12-23)
|
|
2
6
|
|
|
3
7
|
# [2.0.0](https://github.com/ssbarbee/iap-apple/compare/v1.3.12...v2.0.0) (2022-12-23)
|
package/README.md
CHANGED
|
@@ -3,16 +3,21 @@
|
|
|
3
3
|
|  |  |  |  |
|
|
4
4
|
|
|
5
5
|
# iap-apple
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+
|
|
6
11
|
๐ฆ๐ Integration of Apples ๏ฃฟ **validation service** for App Store Receipts, written in Typescript, available for NodeJS environments.
|
|
7
12
|
|
|
8
13
|
A NodeJS module for in-app purchase (in-app billing) and subscription for Apple.
|
|
9
14
|
|
|
10
|
-
## Overview
|
|
15
|
+
## Overview ๐ง
|
|
11
16
|
|
|
12
17
|
Create a Typescript package for validation of [App Store Receipts](https://developer.apple.com/documentation/appstorereceipts).
|
|
13
18
|
This package is meant to be used server side to validate receipts from the App Store by talking to Apples servers.
|
|
14
19
|
|
|
15
|
-
## Installation
|
|
20
|
+
## Installation ๐ฆ
|
|
16
21
|
|
|
17
22
|
### npm
|
|
18
23
|
|
|
@@ -22,9 +27,9 @@ This package is meant to be used server side to validate receipts from the App S
|
|
|
22
27
|
|
|
23
28
|
```yarn add iap-apple```
|
|
24
29
|
|
|
25
|
-
## API documentation
|
|
30
|
+
## API documentation ๐
|
|
26
31
|
|
|
27
|
-
### verify
|
|
32
|
+
### verify ๐งช
|
|
28
33
|
|
|
29
34
|
API used to verify receipt data received during an App Store purchase.
|
|
30
35
|
Requires **appSharedSecret** to be passed as part of the configuration.
|
|
@@ -70,7 +75,7 @@ async function verifyAppleReceipt(receipt: string) {
|
|
|
70
75
|
}
|
|
71
76
|
```
|
|
72
77
|
|
|
73
|
-
### isVerifiedReceipt
|
|
78
|
+
### isVerifiedReceipt ๐งช
|
|
74
79
|
|
|
75
80
|
API used to verify if response returned by `verify` is verified.
|
|
76
81
|
Requires the output of `verify` to be passed.
|
|
@@ -94,7 +99,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
|
|
|
94
99
|
}
|
|
95
100
|
```
|
|
96
101
|
|
|
97
|
-
### getPurchasedItems
|
|
102
|
+
### getPurchasedItems ๐งช
|
|
98
103
|
|
|
99
104
|
API used to get an array of PurchasedItem objects from the Apple App Store response,
|
|
100
105
|
sort by their purchase date descending.
|
|
@@ -121,7 +126,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
|
|
|
121
126
|
}
|
|
122
127
|
```
|
|
123
128
|
|
|
124
|
-
### isPurchasedItemCanceled
|
|
129
|
+
### isPurchasedItemCanceled ๐งช
|
|
125
130
|
|
|
126
131
|
API used to check if a purchased item is canceled.
|
|
127
132
|
Requires the output of `getPurchasedItems` to be passed.
|
|
@@ -148,7 +153,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
|
|
|
148
153
|
```
|
|
149
154
|
|
|
150
155
|
|
|
151
|
-
### isPurchasedItemExpired
|
|
156
|
+
### isPurchasedItemExpired ๐งช
|
|
152
157
|
|
|
153
158
|
API used to check if a purchased item is expired.
|
|
154
159
|
Requires the output of `getPurchasedItems` to be passed.
|