Welcome status never get's called
wouterdorgelo opened this issue · 1 comments
wouterdorgelo commented
return back()->with('status', 'Welcome to the ' . $plan . ' plan');
never gets called because it's within this statement:
if(!$user->subscribed($name, $plan)) {
//
}
Once a payment is done, the user has an active subscription, thus.. He will get status You are already on the ' . $plan . ' plan'
sandervanhooft commented
It can get called actually.
A user can:
- be already subscribed to the plan
- subscribe without an existing mandate, going through Mollie's checkout
- subscribe with an existing mandate, without going through Mollie's checkout. This is when the statement you're referring to gets called.