상속: UnityEngine.MonoBehaviour, IXsollaPayment
예제 #1
0
        void Start()
        {
            XsollaPaymentImpl           Payment = gameObject.AddComponent <XsollaPaymentImpl>() as XsollaPaymentImpl;
            Dictionary <string, object> newDict = TransactionHelper.LoadRequest();

            if (newDict != null)
            {
                Payment.GetStatus(newDict);
            }
            else
            {
                Debug.Log("Have no Unfinished requests");
            }
        }
예제 #2
0
 private void CheckUnfinished()
 {
     Logger.Log("Check unfinished payments");
     if (TransactionHelper.CheckUnfinished())
     {
         Logger.Log("Have unfinished payments");
         Payment.StatusReceived += CheckUnfinishedPaymentStatus;
         var request = TransactionHelper.LoadRequest();
         if (request != null)
         {
             Payment.GetStatus(request);
         }
         else
         {
             TransactionHelper.Clear();
             Payment = null;
         }
     }
 }