Hi there,
I have implemented IAP in our project for a single non-consumable purchase.
We have followed the instructions and it works perfectly in the editor.
When we run our app on an iPhone we go through the Sandbox purchase, it recognises we have purchased before and prompts to get it again. Next, we get the ‘you’re all set’ message.
Clicking ok does not then call any of our IAP functions, specifically our OnPurchaseComplete.
Unity Version 2019.2.15f1
These are the logs from XCODE
2019-12-19 20:25:10.975026+0000 Swiperly[2020:748483] UnityIAP UnityEarlyTransactionObserver: Created
2019-12-19 20:25:10.976145+0000 Swiperly[2020:748483] UnityIAP UnityEarlyTransactionObserver: Registered for lifecycle events
2019-12-19 20:25:11.271527+0000 Swiperly[2020:748483] UnityIAP UnityEarlyTransactionObserver: Added to the payment queue
UnityIAP Version: 1.23.1
2019-12-19 20:26:54.891979+0000 Swiperly[2020:748483] UnityIAP: Requesting 1 products
2019-12-19 20:26:54.892781+0000 Swiperly[2020:748483] UnityIAP: Requesting product data…
2019-12-19 20:26:55.834922+0000 Swiperly[2020:749161] UnityIAP: Received 1 products
2019-12-19 20:26:56.110041+0000 Swiperly[2020:748483] UnityIAP: Transaction 1000000606943210 not pending, nothing to finish here
UnityIAP Promo: Clearing promo product metadata
2019-12-19 20:26:56.110745+0000 Swiperly[2020:748483] UnityIAP: Add transaction observer
2019-12-19 20:26:56.110819+0000 Swiperly[2020:748483] UnityIAP: UpdatedTransactions
2019-12-19 20:26:56.112257+0000 Swiperly[2020:748483] UnityIAP UnityEarlyTransactionObserver: Request to initiate queued payments
2019-12-19 20:26:56.116600+0000 Swiperly[2020:748483] UnityIAP: Finishing transaction 1000000607284798
UnityIAP Promo: Clearing promo product metadata
2019-12-19 20:27:40.428896+0000 Swiperly[2020:748483] UnityIAP: PurchaseProduct: [correct code is here]
2019-12-19 20:27:40.433988+0000 Swiperly[2020:748483] UnityIAP: UpdatedTransactions
2019-12-19 20:28:04.140794+0000 Swiperly[2020:748483] UnityIAP: UpdatedTransactions
2019-12-19 20:28:09.693418+0000 Swiperly[2020:748483] UnityIAP: Finishing transaction 1000000607287688
UnityIAP Promo: Clearing promo product metadata
We have followed the code, which we can breakpoint in XCode, until it goes into the depth of the Unity interface warp system.
Also none of the buttons update.
Finally - pressing the restore button - we get the following logs - but again no callbacks.
2019-12-19 20:49:16.757951+0000 Swiperly[2020:748483] UnityIAP: Restore transactions
2019-12-19 20:49:23.128785+0000 Swiperly[2020:748483] UnityIAP: RestorePurchase
2019-12-19 20:49:24.103200+0000 Swiperly[2020:748483] UnityIAP: UpdatedTransactions
2019-12-19 20:49:24.104717+0000 Swiperly[2020:748483] UnityIAP: PaymentQueueRestoreCompletedTransactionsFinished
2019-12-19 20:49:24.112193+0000 Swiperly[2020:748483] UnityIAP: Finishing transaction 1000000607292620
UnityIAP Promo: Clearing promo product metadata
Regards
jon