private PaymentMOD ConfigurationFromPayment(PaymentViewModel paymentModel)
        {
            CardMOD cardMOD = new CardMOD
            {
                Code = paymentModel.CardSecurityCode,
                Expiration = string.Format("{0}/{1}", paymentModel.CardExpirationMonth, paymentModel.CardExpirationYear),
                Flag = paymentModel.CardFlag,
                Name = paymentModel.NameOnCard,
                Number = paymentModel.CardNumber
            };

            return new PaymentMOD(cardMOD, TypeMOD.CREDIT_CARD, UtilityMOD.API_BRASPAG_PROVIDER_TYPE, InstallmentsMOD.ONE, paymentModel.Amount);
        }
        public async Task<ActionResult> Pay(PaymentViewModel paymentModel)
        {
            if (paymentModel != null)
            {
                if (ModelState.IsValid)
                {
                    ResponseMOD response = await this._paymentBLL.PayWithBraspagAsync(ConfigurationFromPayment(paymentModel));

                    if (response.Status.Code == HttpStatusCode.OK)
                    {
                        return PartialView("_Success", "Thank you! Your payment has been successfully made.");
                    }
                }
            }

            return RedirectToAction("Home", paymentModel);
        }