// Start is called before the first frame update void Start() { Zarinpal.StoreInitialized += () => { if (DebugText != null) { DebugText.text = ("Initialize Succeed"); } }; Zarinpal.StoreInitializeFailed += (s) => { if (DebugText != null) { DebugText.text = (s); } }; Zarinpal.Initialize(); Zarinpal.PurchaseSucceed += (productID, authority) => { if (DebugText != null) { DebugText.text = ($"Product with ID {productID} purchase succeed with authority : {authority} "); } OnPurchaseDone?.Invoke(productID); }; }
public void Initialize() { Zarinpal.Initialize(); }