IAP problems code 3005

jtn0514jtn0514 Loganville,DCPosts: 142Member
Anyone else getting this? We've just managed to update to the new ODK and re-compiled and battled through a few things and are now getting this error

( 1447): Request Receipts error (code 3005: Server encountered an error)



Comments

  • jtn0514jtn0514 Loganville,DCPosts: 142Member
    Anyone?

    Is there a listing of the error codes and what these mean specifically any place? Id love to see this added to the dev docs... might help developers troubleshoot issues with their software.

  • alsuttonalsutton Posts: 69Member, Team OUYA
    That means a problem occurred on the server. As you're using IAP the first thing you should check is you're using your app encryption key correctly. Check the IAP Sample App to see how it should be used.
    Al Sutton
    Android Specialist
    OUYA
  • jtn0514jtn0514 Loganville,DCPosts: 142Member
    edited March 2013
    Odd.. seems im getting random payment errors each day without changing a THING in my code....

    in test mode now for payments and its saying i dont have a CC on file...

    Are you guys actively updating the server payment stuff?!?!?
    Post edited by jtn0514 on

  • stolkstolk Posts: 119Member
    jtn0514 said:

    in test mode now for payments and its saying i dont have a CC on file...

    Something I noticed:
    From the iap sample and the iap docs, I learnt that there are two places where you control test mode.

    It is not clear to me how these two relate, but I've set them both to ON for testing, and both to OFF for production.

    Here are the places where you toggle it:

    ouyaFacade = OuyaFacade.getInstance();
    ouyaFacade.init(this, DEVELOPER_ID);
    ouyaFacade.setTestMode();

    And also when requesting purchase in:

    JSONObject purchaseRequest = new JSONObject();
    purchaseRequest.put("uuid", uniqueId);
    purchaseRequest.put("identifier", product.getIdentifier());
    purchaseRequest.put("testing", "true");

    I recommend setting them both when testing, and unsetting them both when live.

      Bram

  • liuyangliuyang Posts: 3Member
    Make sure the package name is the one you register the Games.
    in ODK 0.0.6, OUYA seems doesn't bind the key to the package name.
    but int ODK 1.0, the key has bind to the package name,
    if the package name doesn't equal to the one you registered in the Games, there will be error.
  • Headup_GamesHeadup_Games Posts: 15Member
    Hey guys.

    I am getting this one, too. The Purchasing-Pop-Up is shown correctly and it also download the description and prices. But after clicking "OK" on the purchase-PopUp, the same error number is drawn in the logcat and no test-purchase is logged in the "Products"-section.

    However if I disconnect the OUYA from the PC, the purchases seem to work as they are instantly shown in the "Products"-section of our account now. So our last step now is to succesfully check if the purchase was succesful..

    Thanks for the Testmode-hint, haven't know that one before.
  • Headup_GamesHeadup_Games Posts: 15Member
    ... using the latest SDK btw (1.0.0.1).
  • jtn0514jtn0514 Loganville,DCPosts: 142Member
    Ive finally been able to get past all these errors and im stuck at receiving receipts at the moment after a purchase. Seems i get them back but when i decrypt, there is nothing there..

  • orangepascalorangepascal Posts: 29Member
    same problem here, and it actually worked little over a week ago.  

    Nothing changed on my end, but suddenly it keeps saying there are no receipts (even after testmode purchases happened and the product shows up the backend).




  • jtn0514jtn0514 Loganville,DCPosts: 142Member
    Yep. Not sure what the issue is.... My only guess is that the decrypt function isnt complete and is supposed to return nothing at the moment.

  • EpicPixelEpicPixel Posts: 1Member
    Ran into a similar issue here and I think I've figured out the problem.  

    If you initiate a product purchase without the debug line, "purchaseRequest.put("testing", "true");", it'll error out with message, "No credit card on file".  Confusingly, on the backend, you'll see a record for a successful purchased product.  And products purchased this way will return no receipts regardless of what is shown on the backend.

    Currently from my experience, only products purchased with a test requests returns an expected receipts.

    Hopefully they'll have this all cleared up... I've submitted my game to be part of the press demo but would like to throughly test out the in app purchasing.
Sign In or Register to comment.