title: Retrieve Customer's default and active card from Stripe
body: <p>I am trying to retrieve the default and active card of a Customer. (Also keep in mind that with the coding I have, the customer can always have one card which means if there is a way around it it can help).</p>
  
  <p>Some months ago I used this code segment which was working fine. It seems Stripe made some updates and I can't get it to work now.</p>
  
  <pre><code>current_user.stripe_card_id = customer.active_card.id
  </code></pre>
  
  <p>The error I get is</p>
  
  <blockquote>
    <p>undefined method `active_card' for #Stripe::Customer</p>
  </blockquote>
  
  <p>If you need any more information please let me know.</p>
  
  <p>edit: <code>customer.default_card.id</code> does not work either.</p>