question

taibd avatar image
taibd asked

Unity restore in app purchases

Hi, I read here in other threads that you need to call initiatePurchaseUpdates() to restore the IAPs. However, I cannot locate this in Unity plugin files. Which function should we call to actively trigger restoring of the IAPs? Thanks, T
iap
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
In Unity, the initiatePurchaseUpdatesRequest function is automatically called by the AmazonIAPPlugin.class's implementation of onSDKAvailable. You do not need to take further action to ensure that this method is called aside from implementing the Unity IAP plugin and calling a itemDataRequest in order to register the receiver.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.