mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 18:22:41 +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:
parent
a894c99935
commit
5bcca675e1
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ final class PhortunePaymentMethod extends PhortuneDAO
|
||||||
|
|
||||||
public function getDescription() {
|
public function getDescription() {
|
||||||
$provider = $this->buildPaymentProvider();
|
$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) {
|
public function getMetadataValue($key, $default = null) {
|
||||||
|
|
Loading…
Reference in a new issue