diff --git a/public/js/services/paymentServices.js b/public/js/services/paymentServices.js index 4fc1b24e84..0fd7682512 100644 --- a/public/js/services/paymentServices.js +++ b/public/js/services/paymentServices.js @@ -50,9 +50,9 @@ function($rootScope, User, $http, Content) { StripeCheckout.open({ key: window.env.STRIPE_PUB_KEY, address: false, - name: 'Update', - description: 'Update the card to be charged for your subscription', - panelLabel: 'Update Card', + name: window.env.t('subUpdateTitle'), + description: window.env.t('subUpdateDescription'), + panelLabel: window.env.t('subUpdateCard'), token: function(data) { var url = '/stripe/subscribe/edit'; $http.post(url, data).success(function() { diff --git a/views/options/settings.jade b/views/options/settings.jade index ef2727b4f6..57708bf362 100644 --- a/views/options/settings.jade +++ b/views/options/settings.jade @@ -261,5 +261,5 @@ script(id='partials/options.settings.subscription.html',type='text/ng-template') a.btn.btn-primary(ng-click='Payments.showStripe({subscription:_subscription.months})', ng-disabled='!_subscription.months') Card a.btn.btn-warning(href='/paypal/subscribe?_id={{user._id}}&apiToken={{user.apiToken}}&sub={{_subscription.months}}', ng-disabled='!_subscription.months') PayPal div(ng-if='user.purchased.plan.customerId') - .btn.btn-primary(ng-if='!user.purchased.plan.dateTerminated && user.purchased.plan.paymentMethod=="Stripe"', ng-click='Payments.showStripeEdit()') Update Card + .btn.btn-primary(ng-if='!user.purchased.plan.dateTerminated && user.purchased.plan.paymentMethod=="Stripe"', ng-click='Payments.showStripeEdit()')=env.t('subUpdateCard') .btn.btn-sm.btn-danger(ng-if='!user.purchased.plan.dateTerminated', ng-click='Payments.cancelSubscription()')=env.t('cancelSub') \ No newline at end of file