Skip to content
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

receipts.appStoreReceipt() in README.md #34

Closed
imskull opened this issue Mar 27, 2014 · 4 comments
Closed

receipts.appStoreReceipt() in README.md #34

imskull opened this issue Mar 27, 2014 · 4 comments

Comments

@imskull
Copy link

imskull commented Mar 27, 2014

in "Advanced use/Receipts" section:
...
receipts.appStoreReceipt(); // null or base64 encoded receipt (iOS >= 7)
...
receipts.appStoreReceipt is not a function, I think it's should be:
...
receipts.appStoreReceipt; // null or base64 encoded receipt (iOS >= 7)
...
it's kinda a little problem, but fixing it will save people time to debug code like me: I submit my app 2 days ago without testing IAP on iOS7 until I found this problem.

@j3k0
Copy link
Owner

j3k0 commented Mar 27, 2014

Thanks for pointing this out, and sorry for the inconvenient. It's been fixed.

@j3k0 j3k0 closed this as completed Mar 27, 2014
@mohamnag
Copy link

mohamnag commented Jun 3, 2014

it would also be very nice to include a bit of description about these there methods of retrieving receipts.
Is it also possible to use receipts.forProduct() when running on iOS >= 7? what is their functionality and availability difference?
if not, why not to make the plugin intelligent enough to provide all these functionality?

@vladipus
Copy link

vladipus commented Apr 2, 2015

I agree with mohamnag

@j3k0
Copy link
Owner

j3k0 commented Apr 3, 2015

The receiptforProduct method has been deprecated on iOS 7. The SDK now only provides a singe receipt for the whole app (containing the history of purchases). As intelligent as the plugin could be, there's isn't a per-product receipt anymore.

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

4 participants