Once you have the logs from the device you can use the test form in distribution to get verification on the purchase is and if it's active.
How to get the logs from a device:
- In the app go to Settings > General > Scroll to the bottom
- Click and hold 'Powered by Pugpig' and a prompt will appear which will say 'Email Logs'
- Our Pugpig Engineering email address will already be populated in the email
Please note it's the same steps for both subscription receipts and single issue purchase receipts
Example Receipt:
----- Example -----
2017-11-24 15:23:57 +0000: iTunesAuth UpdateSubscription on https://magazine.example.co.uk/subs/itunes_issue_based/verify_subscription: productid=&uuid=&receipt=MIIVjAYJKoZIhvcNAQcCoIIVfTCCFXkCAQExCzAJBgUrDgMCGgUAMIIFLQYJKoZIhvcNAQcBoIIFHgSCBRoxggUWMAoCARQCAQEEAgwAMAsCARkCAQEEAwIBAzAMAgEKAgEBBAQWAjQrMAwCAQ4CAQEEBAICAIswDQIBCwIBAQQFAgMHeyswDQIBDQIBAQQFAgMBrnkwDgIBAQIBAQQGAgQbIkSIMA4CAQkCAQEEBgIEUDI1MDAOAgEQAgEBBAYCBDEy35owDgIBEwIBAQQGDAQyMDUzMBACAQ8CAQEECAIGR94DCvjQMBQCAQACAQEEDAwKUHJvZHVjdGlvbjAYAgEDAgEBBBAMDjE1MTM4NTk5OTguOTkxMBgCAQQCAQIEEPna4cIu71KSCbR3QDNJwfAwHAIBBQIBAQQUQsIPC2HzhZjQKpgE9M0KuYT8O1swHgIBCAIBAQQWFhQyMDE4LTAxLTA0VDE1OjU2OjMwWjAeAgEMAgEBBBYWFDIwMTgtMDEtMDRUMTU6NTY6MzBaMB4CARICAQEEFhYUMjAxNy0wOS0xMVQxNToyMTozNlowJQIBAgIBAQQdDBtjb20udHJpYWN0aXZlbWVkaWEuc2xpbW1pbmcwPQIBBwIBAQQ1sxNEi7Y0OO3%2F7iYGd%2FSNuzxyggeLgX6N2p5UXZEe20h4g11RQa%2FBbTrX8ENTZWPjgYNXK6gwVgIBBgIBAQRO0vNPuLmEFsV9snD1P2C1D%2FX0H8yFQuyKlRBrB5wpeB7gpjCO8hEsSeL0LlFNNqkN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2F2yg5yPC8V6pyhmune%2BmRgdghz32mI4C4N4n9IEHMIaYbEK%2B6Eq7YW9GIBWleUJgHodWUJ2vGKWoBRmkJquCeZs3mjch1FLNUgIfhRt11ptIYPWImBrQ76cr2pg6nACzlWsUni4EkjeJ%2Fr1gDQIPMVpXui0LCw%2FVoGkQ5dUfXV246YfYo0kEcrJfpTh6JX%2FCQALmFXXuwXKMwjNntopzD0TFRaFN79gpe%2BhA4NNQzMgpxyjZJvoLFE5I4MguZkuBU2yqG6WBE0QFqpeFYdpXghNQpZ3hrN6Wr3cBgxFGw5okcOfMTl5YTgHSPSKgf
--------------------
The receipt is everything after the `productid=&uuid=&receipt=`
Steps to Validate:
1. Find the subscription receipt in the user logs (see example above)
2. This receipt is encoded, you will need to decode it using this website: https://www.url-encode-decode.com/
Note: the decoded receipt can look similar to the encoded receipt
3. Copy and paste the decoded receipt into distribution service, test form
Go to Stores > Apple/Google Store > Scroll to the bottom of the page and you'll see a test form:
You will only need to enter information into the 'receipt' field the others can be left blank
Reading the response
Two calls are made to iTunes:
- Verify subscription: seeing if the receipt holds a active subscription (at the time of validating).
- Edition Credentials: this will show what the user has access to.
With issue-based iTunes authentication it will list those issues within the time frame of the subscription, with access-based store authentication (i.e. users have access to everything for as long as they are a subscriber) it will be all or nothing.
You can check what type of authentication you have in the 'Verify_Subscription' call response e.g.
Comments
0 comments
Please sign in to leave a comment.