I’m trying to test the in app purchase in my app.
When i restore the in app purchase with a test user who bought the in app purchase it all works fine.
But when i try to restore an in app purchase with a user who didn’t make the in app purchase before i expected the framework to call the following method:
-paymentQueue:restoreCompletedTransactionsFailedWithError:
but instead the framework calls:
-paymentQueueRestoreCompletedTransactionsFinished:
like my test user already bought the in app purchase….
Is this the normal behavior? And if so, how do i test a user trying to restore without ever purchasing the in app purchase?
See the answer here:
iOS in-app-purchase restore returns many transactions
You’ll have to handle it in transaction observer.
In short, you start restore process with:
Then following transaction observer is called: