/// <summary> /// Отмена платежа /// </summary> public static void DoPaymentCancel(PaymentKeyInfo paymentKeyInfo) { SettingService setServ = new SettingService(); var authService = new AuthenticationService(setServ); var paymentsService = new PaymentService(authService.CurrentUser, setServ); paymentsService.CancelPayment(paymentKeyInfo.PaymentId); }
/// <summary> /// Отмена платежа /// </summary> public void PaymentCancel(PaymentKeyInfo paymentKeyInfo) { try { //ApplicationConfiguration.Instance.ConnectionString = Host.GetConnectionString(); if (AutorizationHelper.CheckAutorizaton()) { PaymentsHelper.DoPaymentCancel(paymentKeyInfo); } } catch (Exception ex) { LogManager.CurrentLogger.Error("PaymentCancel", ex); MessageBox.Show(String.Format("Произошла непредвиденная ошибка, свяжитесь с службой поддержки \"Электронный платеж\"")); throw ex; } }