Hello,
I’m trying to make a purchase, and got message 'Payment Successful". Hovewer, ‘onSuccess’ method of my listener is not called.
As I undertand, the process of purchasing stucks on consuming. Log ends at:
01-28 13:36:27.755: D/SDKBox IAPGooglePlay(1272): Success!
01-28 13:36:27.755: D/IabHelper(1272): Starting async operation: consume
01-28 13:36:27.755: D/IabHelper(1272): Purchase signature successfully verified.
01-28 13:36:27.760: D/IabHelper(1272): Consuming sku: com.spilgames.deepsheep.buy_crystalls_2, token: …
When I’m trying to make this purchase again, I gen error that it has already beed bought but hasn’t been consumed.
Non-consumable purchase work fine.
I analyzed logs and found several errors after plugin initialization:
GooglePlay Request result : 1 msg : Google Play IAB hasn’t been initilized. data :
01-28 13:36:16.975: E/Parcel(4235): Class not found when unmarshalling: com.google.android.finsky.billing.lightpurchase.PurchaseParams
01-28 13:36:16.975: E/Parcel(4235): java.lang.ClassNotFoundException: com.google.android.finsky.billing.lightpurchase.PurchaseParams
But I assume that’s not important, because information about purchases is loading fine and non-consumable purchases work as expected. It looks like everything works fine except consuming.
Cocos2DxActivity: http://pastebin.com/gzryDUeM
AppActivity: http://pastebin.com/d652XyMk
Config: http://pastebin.com/t3kE9YdE
Could you please assume why my purchases are not consuming?
I checked this topic - [SOLVED] [IAP - Android] onSuccess not being triggered - but it didn’t help.
Best regards,
Andriy