protected function fillCardDetails($card)
    {
        if ($card instanceof StripeCard) {
            $this->card_brand = $card->brand;
            $this->card_last_four = $card->last4;
        } elseif ($card instanceof StripeBankAccount) {
            $this->card_brand = 'Bank Account';
            $this->card_last_four = $card->last4;
        }

        return $this;
    }
protected function fillCardDetails($card)
    {
        if ($card instanceof StripeCard) {
            $this->card_brand = $card->brand;
            $this->card_last_four = $card->last4;
        } elseif ($card instanceof StripeBankAccount) {
            $this->card_brand = 'Bank Account';
            $this->card_last_four = $card->last4;
        }

        return $this;
    }
protected function fillCardDetails ( $ card ) { if ( $ card instanceof StripeCard ) { $ this -> card_brand = $ card -> brand ; $ this -> card_last_four = $ card -> last4 ; } elseif ( $ card instanceof StripeBankAccount ) { $ this -> card_brand = 'Bank Account' ; $ this -> card_last_four = $ card -> last4 ; } return $ this ; }
Fills the model's properties with the source from Stripe.

@param  \Stripe\Card|\Stripe\BankAccount|null  $card
@return $this
Fills the model s properties with the source from Stripe .