From eb3d029157b7727e2b9b6abc7bd9dc9d99753ea2 Mon Sep 17 00:00:00 2001 From: Kendall Arneaud Date: Sun, 28 Jul 2024 19:17:16 -0400 Subject: [PATCH] Update PaymentMethod.php use default internal description method. Signed-off-by: Kendall Arneaud --- app/PaymentDrivers/Rotessa/PaymentMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Rotessa/PaymentMethod.php b/app/PaymentDrivers/Rotessa/PaymentMethod.php index ccb5432b0d62..6f0b327371c5 100755 --- a/app/PaymentDrivers/Rotessa/PaymentMethod.php +++ b/app/PaymentDrivers/Rotessa/PaymentMethod.php @@ -154,7 +154,7 @@ class PaymentMethod implements MethodInterface ->first(); if(!$customer) throw new \Exception('Client gateway token not found!', 605); - $transaction = new Transaction($request->only('frequency' ,'installments','amount','process_date','comment')); + $transaction = new Transaction($request->only('frequency' ,'installments','amount','process_date') + ['comment' => $this->rotessa->getDescription(false) ]); $transaction->additional(['customer_id' => $customer->gateway_customer_reference]); $transaction = array_filter( $transaction->resolve()); $response = $this->rotessa->gateway->capture($transaction)->send();