frontend & backend update

This commit is contained in:
carodej
2020-06-22 16:46:02 +02:00
parent a2cab6198e
commit a2dfc627a7
35 changed files with 595 additions and 1080 deletions
@@ -383,8 +383,12 @@
},
},
mounted: function () {
card = elements.create('card');
card.mount(this.$refs.stripeCard);
if (!this.requestedPlan) {
this.$router.push({name: 'UpgradePlan'})
} else {
card = elements.create('card');
card.mount(this.$refs.stripeCard);
}
},
created() {
@@ -395,10 +399,6 @@
axios.get('/api/user/payments')
.then(response => {
if (!this.requestedPlan) {
this.$router.push({name: 'UpgradePlan'})
}
this.defaultPaymentCard = response.data.default
this.paymentCards = response.data.others