1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

use system log code

This commit is contained in:
karneaud 2024-07-29 22:13:08 -04:00
parent 59e09f8df8
commit a06cc005fe

View File

@ -152,7 +152,7 @@ class PaymentMethod implements MethodInterface
->where('client_id', $this->rotessa->client->id)
->where('token', $request->input('source'))
->first();
if(!$customer) throw new \Exception('Client gateway token not found!', 605);
if(!$customer) throw new \Exception('Client gateway token not found!', SystemLog::TYPE_ROTESSA);
$transaction = new Transaction($request->only('frequency' ,'installments','amount','process_date') + ['comment' => $this->rotessa->getDescription(false) ]);
$transaction->additional(['customer_id' => $customer->gateway_customer_reference]);