From f4db21d9e735aaed86069963dc634bbbd39cefec Mon Sep 17 00:00:00 2001 From: Kendall Arneaud Date: Wed, 31 Jul 2024 18:32:31 -0400 Subject: [PATCH] Update PaymentMethod.php Updated to use ACSS for CAN clients only. Signed-off-by: Kendall Arneaud --- app/PaymentDrivers/Rotessa/PaymentMethod.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Rotessa/PaymentMethod.php b/app/PaymentDrivers/Rotessa/PaymentMethod.php index 73abcc4b41bb..09717a0da75c 100755 --- a/app/PaymentDrivers/Rotessa/PaymentMethod.php +++ b/app/PaymentDrivers/Rotessa/PaymentMethod.php @@ -60,7 +60,10 @@ class PaymentMethod implements MethodInterface 'id' => null ] )->all(); $data['gateway'] = $this->rotessa; - $data['gateway_type_id'] = $data['client']->country->iso_3166_2 == 'US' ? GatewayType::BANK_TRANSFER : ( $data['client']->country->iso_3166_2 == 'CA' ? GatewayType::ACSS : (int) request('method')); + // Set gateway type according to client country + // $data['gateway_type_id'] = $data['client']->country->iso_3166_2 == 'US' ? GatewayType::BANK_TRANSFER : ( $data['client']->country->iso_3166_2 == 'CA' ? GatewayType::ACSS : (int) request('method')); + // TODO: detect GatewayType based on client country USA vs CAN + $data['gateway_type_id'] = GatewayType::ACSS ; $data['account'] = [ 'routing_number' => $data['client']->routing_id, 'country' => $data['client']->country->iso_3166_2