AppStore Notifications V2 Validator
Library to read and validate App Store Server Notifications V2 in Python.
pip install app-store-notifications-v2-validator
Download "Apple Root CA - G3 Root" from https://www.apple.com/certificateauthority/. Store the file path in an environment variable named APPLE_ROOT_CA or pass file path as apple_root_cert_path param in asn2.parse or put it in the directory where the code is run.
Usage
import app_store_notifications_v2_validator as asn2
request_body = b'{"signedPayload":"eyJh .... "}'
try:
data = asn2.parse(request_body)
except InvalidTokenError:
pass
data is a dictionary:
{
"notificationType": "SUBSCRIBED",
"subtype": "RESUBSCRIBE",
"notificationUUID": "00000000-0000-0000-0000-000000000000",
"data": {
"bundleId": "com.example.App",
"bundleVersion": "1",
"environment": "Sandbox",
"signedTransactionInfo": {
"transactionId": "0000000000000000",
"originalTransactionId": "0000000000000000",
"webOrderLineItemId": "0000000000000000",
"bundleId": "com.example.App",
"productId": "com.example.App.pro",
"subscriptionGroupIdentifier": "00000000",
"purchaseDate": 0000000000000,
"originalPurchaseDate": 0000000000000,
"expiresDate": 0000000000000,
"quantity": 1,
"type": "Auto-Renewable Subscription",
"inAppOwnershipType": "PURCHASED",
"signedDate": 000000000000
},
"signedRenewalInfo": {
"originalTransactionId": "0000000000000000",
"autoRenewProductId": "com.example.App.pro",
"productId": "com.example.App.pro",
"autoRenewStatus": 1,
"signedDate": 0000000000000
}
},
"version": "2.0"
}
© 2022-2023 Rick Wierenga
Metadata
Release files for app-store-notifications-v2-validator 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| app-store-notifications-v2-validator-0.0.9.tar.gz | 3.8 kB | Without provenance | Details for app-store-notifications-v2-validator-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| app_store_notifications_v2_validator-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for app_store_notifications_v2_validator-0.0.9-py3-none-any.whl |
Total release size: 8.2 kB
Release files / app-store-notifications-v2-validator-0.0.9.tar.gz
| Download URL | app-store-notifications-v2-validator-0.0.9.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8f2c87e20eee80804c850270c95c10eba92f28d7a7e2c538e3578fcea47227f
|
|
BLAKE2b-256 checksum How to use checksums |
1cb52e3a47a6c25527e18715f0158d7bb33b7bae7d9e08f426d4e1a19ce53f9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / app_store_notifications_v2_validator-0.0.9-py3-none-any.whl
| Download URL | app_store_notifications_v2_validator-0.0.9-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30b9a4ceb2c9e7bec6aa7343b72833ecc192ed2e4e3477e012f90f53889a8a35
|
|
BLAKE2b-256 checksum How to use checksums |
f0e73970d230f6859d46d22653d14ea273e6196bfe56432d344792b9054d0bc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for app-store-notifications-v2-validator 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.