From b31d65440b2cadf43da330319e950637476d34ed Mon Sep 17 00:00:00 2001 From: Kendall Arneaud Date: Fri, 14 Jun 2024 16:13:08 +0000 Subject: [PATCH] add appropriate class --- app/PaymentDrivers/RotessaPaymentDriver.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/PaymentDrivers/RotessaPaymentDriver.php b/app/PaymentDrivers/RotessaPaymentDriver.php index de22db09112a..9313918b3b7e 100644 --- a/app/PaymentDrivers/RotessaPaymentDriver.php +++ b/app/PaymentDrivers/RotessaPaymentDriver.php @@ -20,6 +20,9 @@ use App\Models\GatewayType; use Omnipay\Rotessa\Gateway; use App\Utils\Traits\MakesHash; use App\PaymentDrivers\BaseDriver; +use App\PaymentDrivers\Rotessa\Bacs; +use App\PaymentDrivers\Rotessa\Acss; +use App\PaymentDrivers\Rotessa\DirectDebit; use App\PaymentDrivers\Rotessa\BankTransfer; class RotessaPaymentDriver extends BaseDriver @@ -38,9 +41,9 @@ class RotessaPaymentDriver extends BaseDriver public static $methods = [ GatewayType::BANK_TRANSFER => BankTransfer::class, - GatewayType::BACS => BankTransfer::class, - GatewayType::ACSS => BankTransfer::class, - GatewayType::DIRECT_DEBIT => BankTransfer::class + GatewayType::BACS => Bacs::class, + GatewayType::ACSS => Acss::class, + GatewayType::DIRECT_DEBIT => DirectDebit::class ]; public function init(): self