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

Question about 0.5 and offline verification #76

Closed
georgbachmann opened this issue May 21, 2014 · 6 comments
Closed

Question about 0.5 and offline verification #76

georgbachmann opened this issue May 21, 2014 · 6 comments
Labels

Comments

@georgbachmann
Copy link

Hello,

I used the RMStoreAppReceiptVerificator's method verifyAppReceipt:to verify my receipt offline and then the RMAppReceipt's containsInAppPurchaseOfProductIdentifier: method to find out if a user has bought a specific product.
That worked very well!

Today I just updated to 0.5 and found out that some things have changed.... So I am wondering if I need to adopt my code?

In the Wiki (https://github.com/robotmedia/RMStore/wiki/Receipt-verification) it says that I need to add the 'Apple Inc. Root Certificate' to my project?!? Is this new since 0.5?
Do I really have to add it?

And is there anything else I need to be aware?

Thanks,
Georg

@hpique
Copy link
Member

hpique commented May 21, 2014

Hi @georgbachmann. Glad you found RMStore useful.

Is this new since 0.5?

No.

Do I really have to add it?

It will make your app less vulnerable. It's up to you. Without it RMStore will log a warning, I believe.

And is there anything else I need to be aware?

Everything should be outlined in the wiki or the code documentation.

@georgbachmann
Copy link
Author

Thanks for your super quick reply!!!

Nope... haven't seen a warning yet....
But i'll add the certificate!

What I meant with the "anything else I need to be aware" i just meant if there were changes that would require me to adopt my code? Couldn't find anything in the wiki :)
If not, you can close the topic!

Thanks a lot!

@hpique
Copy link
Member

hpique commented May 21, 2014

No. The changes in 0.5 are all about new functionality (content downloads). Check the Readme for more info.

@hpique hpique closed this as completed May 21, 2014
@georgbachmann
Copy link
Author

Great, thank you!

Just one more stupid question.....

On App Start I check if the app has a valid in app purchase (PRO Version)
(my App is iOS7 only)

i do that like that:

RMStoreAppReceiptVerificator *verificator = [[RMStoreAppReceiptVerificator alloc] init];
BOOL isValidReceipt = [verificator verifyAppReceipt];
if (isValidReceipt)
{
    BOOL isProVersion = [[RMAppReceipt bundleReceipt] containsInAppPurchaseOfProductIdentifier:xxx];
    ...
}

I still have version 1.0 in the App Store... But now i'd like to make an update soon... This will still work, right? The App will still have the receipt in there and verification should still pass, right?

Sorry for bothering you... it's just that in app purchases are so bad to test (especially updating and stuff) and if something fails users would be pissed....

@hpique
Copy link
Member

hpique commented May 21, 2014

That code is not 100% right. Would you mind posting the question in StackOverflow with the RMStore tag? If possible, I would prefer questions to be there as they're better indexed by Google, and thus have more potential to help others.

@georgbachmann
Copy link
Author

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

No branches or pull requests

2 participants