- Home /
Question by
y0u553ef · Oct 08, 2020 at 08:48 AM ·
c#codepageinapp purchase
How to add function CallBack with IAP button event by code ?
hello, I am trying to add a function call back event to IAP button (from the codeless IAP plugin) by code so on OnPurchaseCompletedEvent I want to call a certain function (it's possible from the editor but for some reason I can't do it in code) cos OnPurchaseCompletedEvent takes Product as an argeement I think. I am not sure how I can define the product since there is no constructor for the Product Class. anyone dd function CallBack with IAP button event by code ?
Comment