mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
swap stripe subscription
This commit is contained in:
2
public/js/chunks/settings.js
vendored
2
public/js/chunks/settings.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/main.js
vendored
2
public/js/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -130,11 +130,9 @@ export default {
|
||||
},
|
||||
payByStripe() {
|
||||
axios
|
||||
.post('/api/stripe/checkout', {
|
||||
planCode: this.selectedPlan.data.meta.driver_plan_id.stripe,
|
||||
})
|
||||
.post(`/api/subscriptions/swap/${this.selectedPlan.data.id}`)
|
||||
.then((response) => {
|
||||
window.location = response.data.url
|
||||
console.log(response);
|
||||
})
|
||||
},
|
||||
payByPaystack() {
|
||||
|
||||
@@ -26,6 +26,7 @@ class SubscriptionEventSubscriber
|
||||
|
||||
public function handleSubscriptionWasExpired($event)
|
||||
{
|
||||
// TODO: set default team members
|
||||
$event->subscription->user->limitations()->update([
|
||||
'max_storage_amount' => get_settings('default_max_storage_amount') ?? 5,
|
||||
'max_team_members' => 5,
|
||||
|
||||
Reference in New Issue
Block a user