diff --git a/endpoints/api/billing.py b/endpoints/api/billing.py index 6880308a0..3e13df6b6 100644 --- a/endpoints/api/billing.py +++ b/endpoints/api/billing.py @@ -36,7 +36,9 @@ def get_card(user): card_info = { 'owner': default_card.name, 'type': default_card.type, - 'last4': default_card.last4 + 'last4': default_card.last4, + 'exp_month': default_card.exp_month, + 'exp_year': default_card.exp_year } return {'card': card_info} diff --git a/static/css/quay.css b/static/css/quay.css index e6cf04f1e..68e317c70 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -478,6 +478,18 @@ i.toggle-icon:hover { color: black; } +.billing-options-element .current-card .expires:before { + content: "Expires:"; + color: #aaa; + font-size: 12px; +} + + +.billing-options-element .current-card .expires { + margin-left: 20px; + font-size: 12px; +} + .billing-options-element .current-card img { margin-right: 10px; vertical-align: middle; diff --git a/static/directives/billing-options.html b/static/directives/billing-options.html index 8ae5115d5..374715a2f 100644 --- a/static/directives/billing-options.html +++ b/static/directives/billing-options.html @@ -7,10 +7,18 @@