roddi / ValidateStoreReceipt

validate the receipt a well-known computer company's application store sends
355 stars 37 forks source link

Validate in-app purchase receipts? #17

Open ItalyPaleAle opened 13 years ago

ItalyPaleAle commented 13 years ago

On Lion, in-app purchase receipts are stored inside the MASReceipt/receipt file, in a separate section. Is it possible to include support for them in this (excellent) library?

Thank you!

roddi commented 13 years ago

Yes, that would be nice! I'll gladly accept pull requests.

ItalyPaleAle commented 13 years ago

I created a patch for it :) Please review it, and please look at the commit log too, as it contains important information about the patch:

This patch includes support for InApp Purchases data on OSX 10.7 Lion, while not breaking compatibility with 10.6. The patch is limited to extract data from InApp Receipts: it DOES NOT perform any validation on it! We shall discuss a way to validate InApp Purchases (following the steps recommended by Apple) this with original developers too. The patch has been tested, though not intensively. It surely needs more testing, and it needs to be tested with multiple items purchased (currently I tested it only with 1 item purchased) and with big quantities.

I think I did the biggest part of the job, now it's just a matter of deciding how users should pass info to validate extracted data.

ItalyPaleAle commented 13 years ago

I added a new commit, fixing some issues. Please take a look at the commit log:

  • Fixed some bugs.
  • Tested (and fixed) with multiple purchases. You can now purchase multiple items and they will be extracted.
  • Added a function to return the list of purchased items. This can be used by users to validate purchased items.

I think the patch is now much better, and much more stable. In App Purchases support is ready.

roddi commented 13 years ago

Many many thanks for all the patches! Please give me a couple of days to look at them, I'm kind of busy and Christmas is coming fast.

But I will look at this, promise!

ItalyPaleAle commented 13 years ago

Thank you. If you need any help/explanation, feel free to ask me.

ItalyPaleAle commented 12 years ago

Any news on this?

ItalyPaleAle commented 12 years ago

(still waiting :) )

flexxxx commented 5 years ago

@ItalyPaleAle Whats the status on this? Was all your code already merged?

I found a bug that prevents all the in app purchase receipts from being loaded. The code will only load 1 in app purchase receipt right now. I can provide a fix if all your code has been included already.

ItalyPaleAle commented 5 years ago

@flexxxx Sorry, I haven't used this in over 7 years at this point :(