refactoring

This commit is contained in:
Čarodej
2022-05-18 08:51:28 +02:00
parent e87e2ec4e3
commit 3c28da2613
5 changed files with 5 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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()

View File

@@ -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: {