Hi there,
we are having an issue with some payments successfully completing while Unity IAP returns a null receipts with PurchaseFailureReason.Unknown.
We are able to reproduce it (while not often, it’s very hard) with the following procedure:
- Start purchase
- Go though google play checkout
- Disconnect the phone just before google processes the payment, it yields a success
- Unity generates the aforementioned error
Even if we restart the phone the purchase is gone and is not recoverable, is there a way to force a restore?
When this happens we get the following error:
2020-03-17 10:22:01.072 30305-30305/? I/UnityIAP: onActivityResult
2020-03-17 10:22:01.072 30305-30305/? I/UnityIAP: Purchase data: null
2020-03-17 10:22:01.072 30305-30305/? I/UnityIAP: Data signature: null
2020-03-17 10:22:01.072 30305-30305/? I/UnityIAP: Purchase canceled - Response: 2:Unknown
2020-03-17 10:22:01.073 30305-30305/? I/UnityIAP: onIabPurchaseFinished: false
2020-03-17 10:22:01.073 30305-30305/? I/UnityIAP: 2:Unknown (response: 2:Unknown)
2020-03-17 10:22:01.073 30305-30305/? I/UnityIAP: Purchase response code:2
2020-03-17 10:22:01.119 1318-9294/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.mola.playspace.android.bingo/com.playspace.common.PSUnityActivity/662
2020-03-17 10:22:01.120 1318-9294/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.mola.playspace.android.bingo/com.playspace.common.PSUnityActivity/662
2020-03-17 10:22:01.231 30305-30374/? I/Unity: onPurchaseFailedEvent({0}): com.playspace.bingo.coins_pack_a_1_2
UnityEngine.Purchasing.PurchasingManager:OnPurchaseFailed(PurchaseFailureDescription)
UnityEngine.Purchasing.JSONStore:OnPurchaseFailed(PurchaseFailureDescription, String)
System.Action:Invoke()
UnityEngine.Purchasing.Extension.UnityUtil:Update() (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)
Thanks in advanced.
Kind regards