lib/pay/stripe/billable.rb
def update_stripe_card_on_file(card)
        update!(
          card_type: card.brand.capitalize,
          card_last4: card.last4,
          card_exp_month: card.exp_month,
          card_exp_year: card.exp_year
        )

        self.card_token = nil
      end
# Save the card to the database as the user's current card
Save the card to the database as the user's current card
Save the card to the database as the user ' s current card
def update_stripe_card_on_file(card)
        update!(
          card_type: card.brand.capitalize,
          card_last4: card.last4,
          card_exp_month: card.exp_month,
          card_exp_year: card.exp_year
        )
        self.card_token = nil
      end
def update_stripe_card_on_file ( card ) update! ( card_type : card . brand . capitalize , card_last4 : card . last4 , card_exp_month : card . exp_month , card_exp_year : card . exp_year ) self . card_token = nil end
Save the card to the database as the user's current card
Save the card to the database as the user ' s current card
card