Esempio n. 1
0
 public ActionResult Cards()
 {
     ViewData["Last4"]   = "XXXX";
     ViewData["Expiry"]  = "00/00";
     ViewData["Brand"]   = "XYZ";
     ViewBag.IsCardAdded = false;
     ViewBag._TrailEnd   = SessionData.TrialEndOn;
     if (!string.IsNullOrWhiteSpace(SessionData.StripeCardId))
     {
         var card = StripeHelper.GetCardDetails(SessionData.StripeCustId, SessionData.StripeCardId);
         if (card != null)
         {
             ViewData["Last4"]   = card.Last4;
             ViewData["Expiry"]  = card.ExpirationMonth + "/" + card.ExpirationYear;
             ViewData["Brand"]   = card.Brand;
             ViewBag.IsCardAdded = true;
         }
     }
     return(View());
 }