protected override void CheckUnfinishedPaymentStatus(XsollaStatus status, XsollaForm form) { Logger.Log("Check Unfinished Payment Status"); if (status.GetGroup() == XsollaStatus.Group.DONE) { var purchase = TransactionHelper.LoadPurchase(); XsollaResult result = new XsollaResult(purchase); result.invoice = status.GetStatusData().GetInvoice(); result.status = status.GetStatusData().GetStatus(); Logger.Log("Ivoice ID " + result.invoice); Logger.Log("Bought", purchase); if (TransactionHelper.LogPurchase(result.invoice)) { if (OkHandler != null) { OkHandler(result); } } else { Logger.Log("Alredy added"); } TransactionHelper.Clear(); } }
protected override void CheckUnfinishedPaymentStatus(XsollaStatus status, XsollaForm form) { Logger.Log ("Check Unfinished Payment Status"); if (status.GetGroup () == XsollaStatus.Group.DONE) { var purchase = TransactionHelper.LoadPurchase(); XsollaResult result = new XsollaResult(purchase); result.invoice = status.GetStatusData().GetInvoice (); result.status = status.GetStatusData().GetStatus (); Logger.Log("Ivoice ID " + result.invoice); Logger.Log("Bought", purchase); if(TransactionHelper.LogPurchase(result.invoice)) { if (OkHandler != null) OkHandler (result); } else { Logger.Log("Alredy added"); } TransactionHelper.Clear(); } }