public void Execute() { var kind = SManager.FundingDeposit.Fundings.GetKind(); OrderJson json = new OrderJson(); ProcessingJson processing = new ProcessingJson(); OrderTickersJson tickers = new OrderTickersJson(); if (kind == Fundings.Kind.PayPal) { string _return = @"http://*****:*****@"http://localhost:52092/Default.aspx"; Payment payment = Manager.PayPal.RequestPayment( 1, Asmodat.PayPal.Api.ApiProperties.Currency.EUR, "test", _return, _cancel); if (payment == null || !payment.IsCreated()) { return; } string url = payment.GetApprovalUrl(); if (url.IsNullOrWhiteSpace()) { return; } processing.PayPal.PaymentURL = url; tickers.Creation = TickTime.Now; json.Processing = processing; json.Tickers = tickers; json.TrackingNumber = SManager.ExchangeOrder.TrackingNumber; json.FundingsDeposit = SManager.FundingDeposit.Fundings.ToFundingsJson(); json.FundingsWithdraw = SManager.FundingWithdraw.Fundings.ToFundingsJson(); json.AssetBuy = SManager.AssetBuy.ToExchangeJson(); json.AssetSell = SManager.AssetSell.ToExchangeJson(); Manager.Orders.Set(json.TrackingNumber, json); Response.Redirect(url); } }
public void Set(string key, OrderJson value) { Data.Set(key, value, true); }