Skip to content

Commit

Permalink
add Subscription::cardExpirationDate
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Jul 7, 2020
1 parent 28738eb commit 442d4ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,4 +694,14 @@ public function cardLastFour()
{
return (string) $this->paddleInfo()['payment_information']['last_four_digits'];
}

/**
* Get the card expiration date.
*
* @return string
*/
public function cardExpirationDate()
{
return (string) $this->paddleInfo()['payment_information']['expiry_date'];
}
}

0 comments on commit 442d4ca

Please sign in to comment.