Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Restore purchase in android in unity3d using test account #533

Description

@bhojaniajay

Hi,
Here are my development flow of in app.

  • I am using unity5.4.0f3 unity personnel version.

  • openIAB plugin version is 0.9.8.6.

  • In ios working OK. Getting problem with restore purchase in android.

  • Testing account is added in test account in alpha test in google play developer console.

  • App installing with the same account in android device which is added in google play console.

  • Android manifest file version is OK and also BILLING activity added, checked and tested

  • Purchasing test order say "You will not charge for test account" etc, and successfully purchasing app. Setting preference
    But,

  • When uninstalling app and reinstalling again with same account,

  • Calling
    private void OnBillingSupported()
    {
    Debug.Log("Billing is supported");
    OpenIAB.queryInventory(new string[] {"premium_version_no_ads" });
    }

  • Also getting response
    -private void OnQueryInventorySucceeded(Inventory inventory)
    {
    if (inventory.HasPurchase ("premium_version_no_ads"))
    {
    }
    }

  • But not getting any previous purchase detail using GETPURCHASE AND HASPURCHASE functions,

  • just getting inventory object response null.

  • Please help How to restore purchase in android ?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions