Last active
June 17, 2018 14:23
-
-
Save alexFaunt/6a87691a8611caed4d4013b349277984 to your computer and use it in GitHub Desktop.
Example of an Apple cancel event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"notification_type": "CANCEL", | |
"environment": "Sandbox", | |
"password": "APP_STORE_SECRET", | |
/* The date in milliseconds at which the user cancelled */ | |
"cancellation_date_ms": "1528309241000", | |
/* The latest receipt information, now expired, but you should still update it in your DB */ | |
"latest_expired_receipt": "ewoJVEU1nYXhZO...UNhb2LIjsKfQ==", | |
/* The decoded information form the latest receipt - an object not array in notifications */ | |
"latest_expired_receipt_info": { | |
/* duplicate of the top level value */ | |
"cancellation_date_ms": "1528309241000", | |
/* The id we used to store this subscription */ | |
"original_transaction_id": "1229551030584", | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment