vap - Verify Apple Postback
$ pip install vap
$ vap verify '{"version": "4.0", "ad-network-id": "com.example", "source-identifier": "39", "app-id": 525463029, "transaction-id": "6aafb7a5-0170-41b5-bbe4-fe71dedf1e31", "redownload": false, "source-domain": "example.com", "fidelity-type": 1, "did-win": true, "coarse-conversion-value": "high", "postback-sequence-index": 0, "attribution-signature": "MEUCIQD4rX6eh38qEhuUKHdap345UbmlzA7KEZ1bhWZuYM8MJwIgMnyiiZe6heabDkGwOaKBYrUXQhKtF3P/ERHqkR/XpuA="}'
# 1
from vap.verifier import verify_postback
postback = {
'version': '4.0',
'ad-network-id': 'com.example',
'source-identifier': '5239',
'app-id': 525463029,
'transaction-id': '6aafb7a5-0170-41b5-bbe4-fe71dedf1e30',
'redownload': False,
'source-domain': 'example.com',
'fidelity-type': 1,
'did-win': True,
'conversion-value': 63,
'postback-sequence-index': 0,
'attribution-signature': 'MEUCIGRmSMrqedNu6uaHyhVcifs118R5z/AB6cvRaKrRRHWRAiEAv96ne3dKQ5kJpbsfk4eYiePmr'
'ZUU6sQmo+7zfP/1Bxo=',
}
print(verify_postback(postback)) # True