I am implementing server-side IAP verification and having an issue when it comes time to call ConfirmPendingPurchase, which returns the following error in the logs...
`Unable to confirm purchase; Product has missing or empty transactionID`
Here is a step-by-step sequence of events:
1. Initiate purchase
2. (user completes purchase with store UI, payment, etc)
3. `ProcessPurchase(PurchaseEventArgs e)` is called, details of transaction are sent to server I return `PurchaseProcessingResult.Pending`
4. Server verification is successful
5. Call `ConfirmPendingPurchase(product)` after looking up product by id
6. Error and purchase it ultimately cancelled due to not being acknowledged
Logging reveals to transactionID is present and valid in all steps except #5 onward. Something is clearing the transactionID between the time Pending is returned and message is sent to server and when product is looked up for confirmation.
Any ideas welcome and appreciated!
Unity 2020.2.1f1
Unity IAP 2.2.1
↧