From 3c28da2613008e43d219e61b9e149c8d37061b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=8Carodej?= Date: Wed, 18 May 2022 08:51:28 +0200 Subject: [PATCH] refactoring --- public/mix-manifest.json | 4 ++-- .../Subscription/Popups/ChangeSubscriptionPopup.vue | 2 +- .../components/Subscription/Popups/SubscribeAccountPopup.vue | 2 +- .../js/components/Subscription/UserStoredPaymentMethods.vue | 2 +- resources/js/views/Profile.vue | 1 - 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 4881fd13..f4d8d5f1 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -58,11 +58,11 @@ "/chunks/sign-up.js": "/chunks/sign-up.js?id=2af6073efe54c560", "/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=ff8954243e86c1e1", "/chunks/create-new-password.js": "/chunks/create-new-password.js?id=2f0401ee2fc148c4", - "/chunks/settings.js": "/chunks/settings.js?id=22509bd0c45c0159", + "/chunks/settings.js": "/chunks/settings.js?id=ff0f6e88171fd094", "/chunks/profile.js": "/chunks/profile.js?id=3e24bb5e1f52d4bb", "/chunks/settings-password.js": "/chunks/settings-password.js?id=d00bf503d8126dc4", "/chunks/settings-storage.js": "/chunks/settings-storage.js?id=ecfee7f7e98204f8", - "/chunks/billing.js": "/chunks/billing.js?id=dd217d680baafb84", + "/chunks/billing.js": "/chunks/billing.js?id=91502cb0a5806200", "/chunks/platform.js": "/chunks/platform.js?id=90d43ec56b62c721", "/chunks/files.js": "/chunks/files.js?id=5f29f35c280e680b", "/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=6f43aea38e0927bc", diff --git a/resources/js/components/Subscription/Popups/ChangeSubscriptionPopup.vue b/resources/js/components/Subscription/Popups/ChangeSubscriptionPopup.vue index 933da5f1..60346294 100644 --- a/resources/js/components/Subscription/Popups/ChangeSubscriptionPopup.vue +++ b/resources/js/components/Subscription/Popups/ChangeSubscriptionPopup.vue @@ -139,7 +139,7 @@ export default { planCode: this.selectedPlan.data.meta.driver_plan_id.stripe, }) .then((response) => { - window.location = response.data.url + window.location = response.data.data.url }) .catch((error) => { if (error.response.status === 500 && error.response.data.type) { diff --git a/resources/js/components/Subscription/Popups/SubscribeAccountPopup.vue b/resources/js/components/Subscription/Popups/SubscribeAccountPopup.vue index 5164f1b7..a6fe3f5b 100644 --- a/resources/js/components/Subscription/Popups/SubscribeAccountPopup.vue +++ b/resources/js/components/Subscription/Popups/SubscribeAccountPopup.vue @@ -256,7 +256,7 @@ export default { planCode: this.selectedPlan.data.meta.driver_plan_id.stripe, }) .then((response) => { - window.location = response.data.url + window.location = response.data.data.url }) .catch((error) => { this.$closePopup() diff --git a/resources/js/components/Subscription/UserStoredPaymentMethods.vue b/resources/js/components/Subscription/UserStoredPaymentMethods.vue index 7b2cdb3b..18e60aa0 100644 --- a/resources/js/components/Subscription/UserStoredPaymentMethods.vue +++ b/resources/js/components/Subscription/UserStoredPaymentMethods.vue @@ -171,7 +171,7 @@ export default { .then((response) => { // Set up Stripe.js and Elements to use in checkout form, passing the client secret obtained in step 2 elements = stripe.elements({ - clientSecret: response.data.client_secret, + clientSecret: response.data.data.client_secret, appearance: { theme: 'stripe', variables: { diff --git a/resources/js/views/Profile.vue b/resources/js/views/Profile.vue index de09c86b..89f1d74d 100644 --- a/resources/js/views/Profile.vue +++ b/resources/js/views/Profile.vue @@ -11,7 +11,6 @@ -