There are some unmanaged IAP in the APP.
But we got error message 'You already own this item. ’ with some of IAP due to some bad case.
Then we try to solve this issue:
Add a button linked with the function below
==========
function MobileStore:restore(product_id_str)
self:InitStore()
if self.store == nil then
print(“store is nil”)
return
end
if self.paymentMode == 1 then --google iap v3
print("trying restore " … product_id_str)
--self.store.consumePurchase( { product_id_str }, transactionCallback)
timer.performWithDelay(10, function() self.store.consumePurchase( { product_id_str }, transactionCallback); end)
end
end
========
We hope the user could click the button to resolve the problem, but the miracle didn’t happen.
Does anyone here has the experience for this?
Could consumePurchase be used independently or must used after the purchase?
Thanks in advance, guys.