You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An unofficial .NET SDK for App Store Server Notifications and API
3
+
An unofficial .NET SDK for App Store Server Notifications v2 and API
4
4
5
-
This library started as helpers to work with the App Store Server Notifications. Using it you can verify and decode notifications, transactions and renewal infos. It implements the required security protocols to verify the payload.
6
-
7
-
It also provides a way to interact with the App Store API and to decode the Store kit 1 receipt data to retrieve the Transaction Id.
8
-
9
-
The library design is copied from the official Apple libraries and it is intended to be used in the same way.
5
+
The overall library and API design is copied from the official Apple libraries and it is intended to be used in the same way.
10
6
More resources:
11
7
12
8
-[Meet the App Store Server Library](https://developer.apple.com/videos/play/wwdc2023/10143/)
@@ -34,20 +30,16 @@ This is a list of the features that are currently implemented in the library, co
34
30
| Extending the renewal date for auto-renewable subscriptions | ✅ ||
35
31
| Request a Test Notification | ✅ ||
36
32
37
-
To summarize, it's missing a full coverage on the API endpoints.
38
-
39
33
## Installation
40
34
41
35
The library is available on NuGet. You can install it using the following command:
42
36
43
37
```bash
44
-
TBD
38
+
dotnet add package Mimo.AppStoreServerLibrary
45
39
```
46
40
47
41
## Usage
48
42
49
-
The library is designed to be used in the same way as the official Apple libraries.
50
-
51
43
### Obtaining Apple Root Certificates
52
44
53
45
Download and store the root certificates found in the Apple Root Certificates section of the Apple PKI site. Provide these certificates as an array to a SignedDataVerifier to allow verifying the signed data comes from Apple.
@@ -57,29 +49,22 @@ Download and store the root certificates found in the Apple Root Certificates se
57
49
Here is an example of how to verify a notification:
58
50
59
51
```csharp
60
-
//This is the endpoint you could use to receive the notifications from Apple
If the verification fails it will raise a `VerificationException` exception with failure details.
81
-
Once you get the decoded transaction, you can use `VerifyAndDecodeTransaction` and `VerifyAndDecodeRenewalInfo` to decode the transaction and renewal info.
82
-
83
68
> [!IMPORTANT]
84
69
> The `SignedDataVerifier` will not verify the payload if the `environment` parameter is `LocalTesting`. This was done to allow testing fake payloads locally without the need to verify them.
85
70
@@ -88,66 +73,41 @@ Once you get the decoded transaction, you can use `VerifyAndDecodeTransaction` a
88
73
Here is an example of how to get all notification history for a specific transaction using the `Pagination token` :
0 commit comments