public async Task<IActionResult> Finished(string id)
        {
            try
            {
                var payment = await _paymentRepo.GetPaymentById(id);
                if (payment == null) return View("Error");

                var address = APIUtil.CreateAddressSummary(payment.BillingAddress, payment.State, payment.City, payment.Country, payment.ZipCode);
                var model = new CoursePurchasedViewModel
                {
                    AddressSummary = address,
                    CardType = payment.CardType,
                    CourseId = payment.CourseCatalogId,
                    LastFourDigits = payment.Last4Digits,
                    TotalChargeAmount = payment.TotalChargedAmount
                };
                return View(model);
            }
            catch (Exception e)
            {
                _logger.LogError($"MongoDB: { e.ToString() }");
                ViewBag.ErrorMessage = _errorMsgs.CanNotConnectToTheDatabase;
                return View("Error");
            }
        }
 public IActionResult Finished(string id)
 {
     // HACK: Get tracking information
     var model = new CoursePurchasedViewModel
     {
         AddressSummary = "Pimankhondopark Building 2 room number 989/148 Khonkean Naimung USA 40000",
         CardType = "VISA",
         CourseId = "CourseId01",
         LastFourDigits = "1234",
         TotalChargeAmount = 53.567
     };
     return View();
 }