From 5d642900c590b8a8b8df0bb1a23c084744286e61 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 24 Jul 2026 14:15:43 +0000 Subject: [PATCH] Require Ladill Pay only for Give donations. Remove custom/owner payment gateway option and always collect donations through Ladill Pay with platform fees. --- .../Billing/PlanEntitlementService.php | 4 ++- resources/views/give/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/give/settings.blade.php b/resources/views/give/settings.blade.php index ff6912a..e61f0b2 100644 --- a/resources/views/give/settings.blade.php +++ b/resources/views/give/settings.blade.php @@ -59,27 +59,9 @@

Donor payment engine

-

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

+

All donations 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 donations and settle to your Ladill wallet.