Exemplo n.º 1
0
 // 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);
     };
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     Zarinpal.Initialize();
 }