Unity IAP price deduct but don't get any callback if internet disconnect.

Our team receives this issue from some players.
Players purchase consumable product, but don’t get ProcessPurchase() called.
issue is reproduce able every time.

Description
When user enable the google IAP interface,
1: Click BUY button or 1tap buy
2: Disconnect from internet(Disable wifi). ===> OnPurchaseFailed() called and price also deduct from user.
3: Connect device to internet(No success call back fire…)
Unity Version
2019.4.12(LTS)

Unity IAP version
2.1.1

Platform and Store
Android GooglePlay IAP

I doubt your users are purposely disconnecting the internet in the middle of a purchase? What version of IAP do you see when you go to Window/Unity IAP/IAP Updates in the Unity Editor? One test to confirm is to Cancel the purchase, then restart the game and see if ProcessPurchase is called during IAP initialization (more likely).

Thanks for the quick reply @JeffDUnity3D
It shows version numb: 1.23.0,
also i did the same but ProcessPurchase not work on initialization even in next session.

I would suggest that you try with the latest IAP version (2.1) mentioned in that same dialog, we have made improvements in this area.

@JeffDUnity3D I updated IAP version to 2.1 but process purchase not calling on next game session.
I added logs to check.

Reason is…
when i purchase pack and quickly turn off my internet after 1tap authentication price deduct but unity don’t get ProcessPurchase call back that’s why unity don’t understand if any IAP made so there is no pending purchase in my case so that’s why unity don’t fire ProcessPurchase call back even in next session but whenever i again try to purchase same in-app it shows dialog"You already have this item" when i press ok then it fire the ProcessPurchase callback.

Yes, we understand the issue, please see this https://discussions.unity.com/t/813609/4

Sir i update my in app to v 2.1 I’m using latest sdk but still getting same result

Sorry I missed that. We are checking here, others have reported this too.

Thanks alot sir kindly fix this ASAP

@JeffDUnity3D any update…
are you able to produce the same issue?

It’s on my list. Hopefully we can find the cause and then include it in a future version. I will say that I don’t believe that it’s due to your users having a bad connection. I doubt users would purposely or accidentally disconnect only during a transaction. I do understand that you are able to get the same error by doing so. It’s more likely related to a more common user flow, like cancelling the purchase, and then restarting the app (or similar). We are checking. We are also looking into a possible issue with FetchAdditionalProducts, if you might be using that method.