Fix subscription route
This commit is contained in:
parent
437ec1c811
commit
2babb5c637
|
@ -78,7 +78,7 @@ export default {
|
||||||
},
|
},
|
||||||
saveDetails () {
|
saveDetails () {
|
||||||
if (this.form.busy) return
|
if (this.form.busy) return
|
||||||
this.form.put('api/subscription/update-customer-details').then(() => {
|
this.form.put('subscription/update-customer-details').then(() => {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
opnFetch('/subscription/new/' + this.plan + '/' + (!this.yearly ? 'monthly' : 'yearly') + '/checkout/with-trial').then((data) => {
|
opnFetch('/subscription/new/' + this.plan + '/' + (!this.yearly ? 'monthly' : 'yearly') + '/checkout/with-trial').then((data) => {
|
||||||
window.location = data.checkout_url
|
window.location = data.checkout_url
|
||||||
|
|
Loading…
Reference in New Issue