public void ChooseItem(Dictionary <string, object> items) { Logger.Log("Choose item request"); TransactionHelper.SavePurchase(items); result = new XsollaResult(new Dictionary <string, object>(items)); currentPurchase.Remove(ActivePurchase.Part.PID); currentPurchase.Remove(ActivePurchase.Part.XPS); FillPurchase(ActivePurchase.Part.ITEM, items); TryPay(); }
public void ChooseItem(Dictionary <string, object> items, bool isVirtualPayment) { Logger.Log("Choose item request"); if (isSimple) { TransactionHelper.SavePurchase(items); } result = new XsollaResult(new Dictionary <string, object>(items)); currentPurchase.Remove(ActivePurchase.Part.PID); currentPurchase.Remove(ActivePurchase.Part.XPS); FillPurchase(ActivePurchase.Part.ITEM, items); if (!isVirtualPayment) { TryPay(); } else { SetLoading(true); Payment.GetVPSummary(currentPurchase.GetMergedMap()); } }