Update PaymentMethod.php

use default internal description method.

Signed-off-by: Kendall Arneaud <kendall.arneaud@gmail.com>
This commit is contained in:
Kendall Arneaud 2024-07-28 19:17:16 -04:00 committed by GitHub
parent 3babc85a8b
commit eb3d029157
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();