private void GetPaymentOptions(CheckoutDataBaseJsonResult result)
        {
            var response       = this.PaymentManager.GetPaymentOptions(this.CurrentStorefront, this.CurrentVisitorContext);
            var paymentOptions = new List <PaymentOption>();

            if (response.ServiceProviderResult.Success && response.Result != null)
            {
                paymentOptions = response.Result.ToList();
                paymentOptions.ForEach(x => x.Name = StorefrontManager.GetPaymentName(x.Name));
            }

            result.PaymentOptions = paymentOptions;
            result.SetErrors(response.ServiceProviderResult);
        }
        /// <summary>
        /// Gets the payment methods.
        /// </summary>
        /// <param name="result">The result.</param>
        private void GetPaymentMethods(CheckoutDataBaseJsonResult result)
        {
            List <PaymentMethod> paymentMethodList = new List <PaymentMethod>();

            var response = this.PaymentManager.GetPaymentMethods(this.CurrentStorefront, this.CurrentVisitorContext, new PaymentOption {
                PaymentOptionType = PaymentOptionType.PayCard
            });

            if (response.ServiceProviderResult.Success)
            {
                paymentMethodList.AddRange(response.Result);
                paymentMethodList.ForEach(x => x.Description = StorefrontManager.GetPaymentName(x.Description));
            }

            result.SetErrors(response.ServiceProviderResult);

            result.PaymentMethods = paymentMethodList;
        }