Skip to content

Validate in-app purchase receipts? #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ItalyPaleAle opened this issue Nov 23, 2011 · 9 comments
Open

Validate in-app purchase receipts? #17

ItalyPaleAle opened this issue Nov 23, 2011 · 9 comments

Comments

@ItalyPaleAle
Copy link

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
Copy link
Owner

roddi commented Nov 24, 2011

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

@ItalyPaleAle
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

roddi commented Dec 5, 2011

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
Copy link
Author

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

@ItalyPaleAle
Copy link
Author

Any news on this?

@ItalyPaleAle
Copy link
Author

(still waiting :) )

@flexxxx
Copy link

flexxxx commented Apr 3, 2019

@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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants