mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
refactoring
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user