AppStore notifications v2 Validator
Project description
AppStore Notifications V2 Validator
Read and validate App Store Server Notifications V2.
Usage
import appstore_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 Rick Wierenga
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for app-store-notifications-v2-validator-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f29321ac85232c5b184571a3f8115d843fc068b13dd336819b7229ed0d7b434 |
|
MD5 | f76e73028bb7b67b503980f0803e75c5 |
|
BLAKE2b-256 | 361b4aed4103c60dd544503a5676403cadbca30a542a020971d2ff44778db187 |
Close
Hashes for app_store_notifications_v2_validator-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 488d251544a804cef2fdf7a87e92688fe3bffec1810bc741197f6e2bd8d8f448 |
|
MD5 | e3f1162a4c29478dfa87affe70d859e6 |
|
BLAKE2b-256 | 1d52ca8d7c010bb95e3a6a80e5ec9fb522e660aa3dd9aed5cc70ce7860b4a919 |