title: Stripe: Getting Credit Card's Last 4 Digits
body: <p>I have upgraded the Stripe.net to the latest version which is 20.3.0 and now I don't seem to find the .Last4 for the credit card. I had the following method:</p>
  
  <pre><code>    public void CreateLocalCustomer(Stripe.Customer stipeCustomer)
      {
          var newCustomer = new Data.Models.Customer
          {
              Email = stipeCustomer.Email,
              StripeCustomerId = stipeCustomer.Id,
              CardLast4 = stipeCustomer.Sources.Data[0].Card.Last4
          };
  
          _dbService.Add(newCustomer);
  
          _dbService.Save();
      }
  </code></pre>
  
  <p>But now the <code>stipeCustomer.Sources.Data[0].Card.Last4</code> says <code>'IPaymentSource' does not contain a definition for 'Card'</code>. Does anyone know how I can get the card details now? The flow is that I create the customer by passing the Stripe token to Stripe, then I get the above stripeCustomer. So I expect it to be somewhere in that object. But I can't find it. The release notes can be found <a href="https://github.com/stripe/stripe-dotnet/releases" rel="nofollow noreferrer">here</a>.
  Thank you.</p>