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