|
@@ -11,7 +11,7 @@ class PaymentMethod extends Model
|
|
|
}
|
|
|
|
|
|
public function displayName(){
|
|
|
- // $parsed = json_decode($this->stripe_detail_json);
|
|
|
- return "Ending: <b>{$this->card_last4}</b>; Expiry: {$this->expiration_month} / {$this->expiration_year}";
|
|
|
+ $parsed = json_decode($this->detail_json);
|
|
|
+ return "<b>{$parsed->card->brand}</b> ending in <b>{$parsed->card->last4}</b>, expiring {$parsed->card->exp_month} / {$parsed->card->exp_year}";
|
|
|
}
|
|
|
}
|