diff --git a/website/client/src/components/payments/successModal.vue b/website/client/src/components/payments/successModal.vue
index 8398653006..ad9ba387c2 100644
--- a/website/client/src/components/payments/successModal.vue
+++ b/website/client/src/components/payments/successModal.vue
@@ -5,9 +5,6 @@
:hide-footer="isFromBalance"
:modal-class="isFromBalance ? ['modal-hidden-footer'] : []"
>
-
{{ $t(isFromBalance ? 'success' : 'paymentSuccessful') }}
+
{{ $t('giftSubscriptionText4') }}
+
-
-
@@ -62,6 +58,7 @@
+
{{ $t('paymentYouReceived') }}
@@ -73,6 +70,7 @@
{{ paymentData.gemsBlock.gems }}
+
{{ paymentData.gift.gems.amount }}
+
-
+
+
+
+
{{ $t('nowSubscribed') }}
@@ -101,25 +103,37 @@
amount: paymentData.subscription.price, months: paymentData.subscription.months})"
>
+
+ {{ $t('paymentAutoRenew') }}
+
+
+
+
+
+
-
@@ -129,55 +143,17 @@
>{{ $t('groupsPaymentAutoRenew') }}
-
-
+
@@ -294,30 +270,33 @@
font-style: normal;
}
}
- .demographics {
- background-color: $gray-700;
- padding: 16px 0px;
- margin-top: -16px;
- width: 400px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- .btn.btn-primary {
- margin-top: 24px;
- width: 77px;
- align-self: center;
+.demographics {
+ background-color: $gray-700;
- }
- #lockable-label .modal-footer label {
- text-align: center !important;
+ .label-text {
+ margin-bottom: 20px;
+ }
+
+ .group-input {
width: 400px !important;
+ margin-top: -24px !important;
}
+ .btn {
+ margin-top: 0px;
+ width: 77px;
+ margin-bottom: 20px;
+ }
+}
+
+
+
+
diff --git a/website/client/src/mixins/payments.js b/website/client/src/mixins/payments.js
index 17cf1aea88..f22c5ffc5f 100644
--- a/website/client/src/mixins/payments.js
+++ b/website/client/src/mixins/payments.js
@@ -39,12 +39,12 @@ export default {
return moment(this.user.purchased.plan.dateTerminated)
.format(this.user.preferences.dateFormat.toUpperCase());
},
- dateRenewal () {
+ renewalDate () {
+ const renewalDate = moment().add(1, 'months');
if (!this.user.preferences || !this.user.preferences.dateFormat) {
- return this.user.purchased.plan.dateRenewal;
+ return renewalDate;
}
- return moment(this.user.purchased.plan.dateRenewal).add(1, 'months')
- .format(this.user.preferences.dateFormat.toUpperCase());
+ return renewalDate.format(this.user.preferences.dateFormat.toUpperCase());
},
},
methods: {
diff --git a/website/common/locales/en/npc.json b/website/common/locales/en/npc.json
index 76b34fb15b..a9d0e6c007 100644
--- a/website/common/locales/en/npc.json
+++ b/website/common/locales/en/npc.json
@@ -93,7 +93,7 @@
"paymentYouSentGems": "You sent
<%- name %>:",
"paymentYouSentSubscription": "You sent
<%- name %> a <%= months %>-months Habitica subscription.",
"paymentSubBilling": "Your subscription will be billed
$<%= amount %> every
<%= months %> months.",
- "groupsPaymentSubBilling": "Your next billing date is
11/11/1111.",
+ "groupsPaymentSubBilling": "Your next billing date is
<%= renewalDate %>.",
"paymentSubBillingWithMethod": "Your subscription will be billed
$<%= amount %> every
<%= months %> months via
<%= paymentMethod %>.",
"paymentAutoRenew": "This subscription will auto-renew until it is canceled. If you need to cancel this subscription, you can do so from your settings.",
"groupsPaymentAutoRenew": "This subscription will auto-renew until it is canceled. If you need to cancel, you can do so from the Group Billing tab.",