OuyaEncryptionHelper issue

Hey!

Have been following the documented example for IAP purchases for the Ouya but have stumbled upon a really odd problem.  There seems to be methods missing from the OuyaEncryptionHelper.

In the example there is the method:
decryptPurchaseResponse(...);

However when I create an OuyaEncryptionHelper object I do not have this method only the
decryptReceiptResponse(...) appears.  Trying to force the method name gives me a missing method compilation error.

Any ideas?  Seems really strange to me.

Best Answer

Answers

  • AcnePlayAcnePlay Posts: 12Member
    Hmm followed this link instead:
    http://www.ouya-info.net/pages/tools/ouya-odk/in-app-purchasing.php

    Seems to be more aligned to my current ODK (the latest).  Not sure if the example API code for IAP is outdated or whatever, most likely it is.  Will just have to test this now.
  • AcnePlayAcnePlay Posts: 12Member
    edited May 2013


    GaslightGames said:
    I both have that method and have it working fine with ODK 1.0.3.
    Are you definitely linking to the latest ODK?
    Can you give us an example of the source you're using?

    While it's for a native extension, you can see some working code here:

    It's in the onSuccess() method where I use decryptPurchaseResponse(), and I can confirm this works fine :-)
    Hey man!

    I actually had the old ODK used even though I had the file replaced with the new 1.0.3 but reimporting the lib fixed the issue so thanks a bunch!
    Post edited by AcnePlay on
  • GaslightGamesGaslightGames Posts: 156Member
    Awesome!  Glad to have at least lead you in the right direction :-)

    Yeah, I've noticed that with imports/libraries when using Eclipse (or Eclipse derived applications like Flex/Flash Builder) it's "safer" to remove and re-add them, rather than refresh.  Sometimes it works perfectly, other times, not so much :-/
  • AcnePlayAcnePlay Posts: 12Member
    Eclipse the bane of developing :) I think we have all had plenty of issues/strange problems with Eclipse, you just need to know the work-arounds :P
Sign In or Register to comment.