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"); } }
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; } } }