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

Restore purchase in android in unity3d using test account #533

Open
bhojaniajay opened this issue Jan 27, 2017 · 1 comment
Open

Restore purchase in android in unity3d using test account #533

bhojaniajay opened this issue Jan 27, 2017 · 1 comment

Comments

@bhojaniajay
Copy link

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.

@asadmehmoodlogicon
Copy link

there is not restore purchases for android
for android you query for inventory to check if items are already bought
if yes then you allow them to users
restore purchase option is only for IOS

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

No branches or pull requests

2 participants