Hi,
I used standard process described here: Unity - Manual: Processing Purchases ( Saving purchases to the cloud). When user makes payment i do PurchaseProcessingResult.Pending and then when my server responds “it’s ok” i make PurchaseProcessingResult.Complete but after i get crash and unfortunately I dont see any crash report in my Crashlytic . if I make PurchaseProcessingResult.Complete always it’s fine. App work correctly.
I develop for android.
Guys have u any idea? How i can handle it?
It’s looks easy peasy and i dont have any idea.
If you return PurchaseProcessingResult.Pending, you do not need to also return PurchaseProcessingResult.Complete after your server responds. You should call ConfirmPendingPurchase() to finish that purchase.
If that does not work, would you be able to provide some example code of what you are doing along with the error you are getting?
I’m not seeing any of the Unity IAP debug statements in the log you sent. I don’t see any information about IAP initializing or processing purchases, etc.
I don’t really see anything wrong in the code you linked to. We didn’t test the server confirmation, or adding ConfirmPurchasePending in a callback the way you did, but we were not able to reproduce the issue where calling ConfirmPendingPurchase crashes an Android app.
If you don’t have any other logs to send to us, would you be able to fill out a support ticket and send us a copy of your project.