Gate payment gateway behind Pro and Business plans.
Deploy Ladill POS / deploy (push) Successful in 1m9s

Free accounts keep cash sales only; connecting a gateway and card/MoMo
checkout require a paid plan, with settings upsell copy for free users.
This commit is contained in:
isaacclad
2026-07-15 21:04:09 +00:00
parent 689c9924df
commit 836aa83f41
6 changed files with 133 additions and 32 deletions
+6
View File
@@ -69,6 +69,12 @@ class SubscriptionService
return $this->hasPaidPlan($user);
}
/** Own payment gateway (Paystack / Flutterwave / Hubtel) requires Pro or Business. */
public function canUsePaymentGateway(User $user): bool
{
return $this->hasPaidPlan($user);
}
public function productCount(string $ownerRef, bool $restaurant): int
{
if ($restaurant) {