From 0a3e142f473e71e0b14f4beade93aa807345213b Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 24 Jul 2026 14:15:39 +0000 Subject: [PATCH] Require Ladill Pay only for Merchant checkouts. Remove custom/owner payment gateway option and always route customer payments through Ladill Pay with platform fees. --- .../Billing/PlanEntitlementService.php | 4 ++- resources/views/merchant/settings.blade.php | 22 ++------------- tests/Feature/PaymentGatewayPolicyTest.php | 28 ++++--------------- 3 files changed, 10 insertions(+), 44 deletions(-) diff --git a/app/Services/Billing/PlanEntitlementService.php b/app/Services/Billing/PlanEntitlementService.php index d318d40..a1c4b1a 100644 --- a/app/Services/Billing/PlanEntitlementService.php +++ b/app/Services/Billing/PlanEntitlementService.php @@ -22,6 +22,8 @@ class PlanEntitlementService public function canUseCustomPaymentGateway(User $owner): bool { - return $this->has($owner, self::CUSTOM_PAYMENT_GATEWAY); + // Custom / owner payment gateways are retired. All checkouts use Ladill Pay + // with platform fees (see config/pay.php fee_tiers on the platform). + return false; } } diff --git a/resources/views/merchant/settings.blade.php b/resources/views/merchant/settings.blade.php index 3d199ab..4d0b0d8 100644 --- a/resources/views/merchant/settings.blade.php +++ b/resources/views/merchant/settings.blade.php @@ -59,27 +59,9 @@

Customer payment engine

-

Ladill Pay is recommended, zero-config, and selected by default.

+

All customer checkouts use Ladill Pay — zero-config, no owner API keys.

-

Ladill Pay remains the safe fallback and requires no owner keys.

- @if ($canUsePaymentGateway ?? false) - -
- - -
- -

Optional. Invalid or incomplete keys automatically fall back to Ladill Pay.

- @else -

Free uses Ladill Pay only. Pro and higher plans may optionally connect owner Paystack.

- @endif +

Ladill Pay is the only payment option. Standard platform fees apply on paid orders and settle to your Ladill wallet.