[Solved] IAP Button - Display Problem

I followed the tutorial and created some IAP buttons in a store page.

The issue I am having is that on the device (Android), the first time the store page is opened, the Price does not show.
The user has to close the page and re-open it and then it works.

Alright so codeless IAP class has a bug (not sure how it escaped QA).

Basically the Text is being assigned in OnEnable and most of the time Unity Purchasing has not been initialized yet!

I added a flag in “IAPButtonStoreManager” to know when it is initialized.
Then added a coroutine in OnEnable to wait for the flag before assigning the text.

Hope it helps other people

@jsaade

Thanks for bringing this to our attention. We’re going to take a look and I’ll let you know what we find.

Edit: This issue was resolved in an updated version of the IAP plugin.