Setup wizard update

This commit is contained in:
carodej
2020-07-01 11:01:54 +02:00
parent aedc98cc8b
commit a98625876d
46 changed files with 2487 additions and 263 deletions
@@ -327,8 +327,6 @@
// If user don't have credit card, register new
if (!this.defaultPaymentMethod || this.payByNewCard) {
console.log('Payment by new card');
const {setupIntent, error} = await stripe.confirmCardSetup(this.clientSecret, {
payment_method: {
card: card,
@@ -367,8 +365,6 @@
// if user has credit card
if (this.defaultPaymentMethod && !this.payByNewCard) {
console.log('Payment by default card');
axios
.post('/api/subscription/upgrade', {
billing: this.billing,