Search Unity

RestoreTransaction error : RESULT_DEVELOPER_ERROR

Discussion in 'Android' started by BazLevelUp, Oct 9, 2012.

  1. BazLevelUp

    BazLevelUp

    Joined:
    Jun 27, 2012
    Posts:
    36
    Hi!

    I'm trying to enable the restoring of previous transactions in my game, but I keep getting the RESULT_DEVELOPER_ERROR error :(

    I'm using the prime31 plugin to helps me handling inAppBilling.
    I call restoreTransactions() and it always fire the event transactionRestoreFailedEvent with error = "RESULT_DEVELOPER_ERROR". This is clearly a Google Android error and not a prime31 one.

    I have made various researches on the subject :

    - I have <uses-permission android:name=\"com.android.vending.BILLING\" /> in my Android_Manifest
    - I have correctly signed with a non-debug keystore the app in Unity
    - The GooglePlay account trying to restore its previous buy is not the same that create the in-app product
    - Our app and the in-app object are live
    - BillingSupported from prime31 plugin is returning true

    There is not reason it fails, even prime31 himself recons that "I can't really say for sure what that could be. I haven't ever seen the DEVELOPER_ERROR occur when doing a restore transactions calls."

    Can you please help me? I'm stuck :'(
     
  2. BazLevelUp

    BazLevelUp

    Joined:
    Jun 27, 2012
    Posts:
    36
    I found it!

    So you HAVE to check one last thing : in Unity, PlayerSettings -> Other Settings -> Bundle Version Code

    For testing, this HAS to be the same as the one in the version that is currently live, the one you last upload.
    When testing is done, increment this number, and upload a new version.