Пример #1
0
 private void CompleteCheckout()
 {
     try
     {
         // lookup for payment form
         IPaymentMethod methodObj = (IPaymentMethod)FindControl(CTL_PAYMENT_FORM);
         //
         CheckoutDetails details = methodObj.GetCheckoutDetails();
         //
         CheckoutResult result = StorefrontHelper.CompleteCheckout(ecPanelRequest.ContractId,
                                                                   ecPanelRequest.InvoiceId, ecPanelRequest.PaymentMethod, details);
         //
         if (!result.Succeed)
         {
             ShowErrorMessage(result.StatusCode);
             return;
         }
         //
         ecUtils.Navigate("ecOrderComplete", true);
     }
     catch (Exception ex)
     {
         ShowErrorMessage("COMPLETE_CHECKOUT", ex);
     }
 }