1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +01:00

Add card expiration information to Phortune cart screen

Summary:
See PHI689. It can be difficult to distinguish between cards with the same number but different expiration dates (common when the bank sends you a new card).

For now, show the expiration date on the cart checkout screen.

Test Plan: Viewed a cart checkout screen with multiple cards, saw expiration dates.

Reviewers: amckinley

Differential Revision: https://secure.phabricator.com/D19462
This commit is contained in:
epriestley 2018-06-02 07:29:08 -07:00
parent a894c99935
commit 5bcca675e1

View file

@ -83,7 +83,11 @@ final class PhortunePaymentMethod extends PhortuneDAO
public function getDescription() {
$provider = $this->buildPaymentProvider();
return $provider->getPaymentMethodProviderDescription();
$expires = $this->getDisplayExpires();
$description = $provider->getPaymentMethodProviderDescription();
return pht("Expires %s \xC2\xB7 %s", $expires, $description);
}
public function getMetadataValue($key, $default = null) {