Ejemplo n.º 1
0
        public void Init()
        {
            Debug.Log("UnityIAPProvider.Init");

            _psdkBilling = PSDKMgr.Instance.GetBilling();

            PsdkEventSystem.Instance.onBillingPurchaseRestored += OnTransactionsRestored;
            PsdkEventSystem.Instance.onBillingPurchased        += OnBillingPurchased;
        }
Ejemplo n.º 2
0
 public bool SetupBilling()
 {
     registerInternalService(_billing = GetBilling());
     if (_billing != null)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 3
0
        public IPsdkBilling GetBilling()
        {
            if (!isPsdkValid())
            {
                return(null);
            }
            if (_billing != null)
            {
                return(_billing);
            }
            _billing = GettingServiceByReflection <IPsdkBilling> ("PsdkBillingService");
            if (_billing != null)
            {
                return(_billing);
            }
            if (!_silent)
            {
                Debug.Log("Could not initiate PsdkBilling !");
            }

            return(null);
        }