IAP restoring doesn't work properly

Hi, recently I’d realized that in my mobile game that uses unity codeless IAP the game doesn’t restore the non-consumables automatically. My button to buy the non-consumable is in an inactive canvas so I tried adding an invisible button to the main canvas that’s always visible in the first frames at least so there would be a listener and buton active when google play runs the restoration process because I thought that might fix it but apparently it doesn’t, and so whenever anyone reinstalls the app their non-consumables are unobtainable.
Please, I’m running out of time and I have to fix it this week, thanks in regard.

It turns out I had a deprecated button active at the same time as the new one and for some reason it interfered with the new button