3

I've read a lot of discussions about iOS receipt validation, but I couldn't find a way to validate and read receipt content in PHP without calling Apple servers (that are very slow and cause my app to wait 4/5 seconds before opening).

Unfortunately my knowledge about certificates, SSL and encryption in general is poor so I need something like this but in PHP and not in Objective-C/Swift. Can someone help me?

Community
  • 1
  • 1
Luciano
  • 1,208
  • 2
  • 17
  • 36
  • What are you going to achieve after reading the receipt ? – Raptor Jul 25 '16 at 08:39
  • I want to check if it's a valid receipt and then analyze its content to see if there's an ongoing purchase (subscription). At the moment I do this by calling Apple servers and reading their response. – Luciano Jul 25 '16 at 08:42
  • Why do you want to achieve this without calling Apple servers? Sounds hacking... – Raptor Jul 25 '16 at 08:45
  • Because it takes seconds for their response and it's annoying. Apple provides a way to validate locally inside the app, I want to do the same but on my server, I don't think it's hacking... – Luciano Jul 25 '16 at 08:52
  • 2
    I am the author of https://github.com/mbaasy/itunes_receipt_decoder. It's a ruby gem but it should help you to understand how to decode the two different types of receipts Apple offer. Feel free to contact me if you would like to collaborate in writing a PHP library. – Marc Greenstock Jul 26 '16 at 14:55

0 Answers0