mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update PaymentMethod.php
use default internal description method. Signed-off-by: Kendall Arneaud <kendall.arneaud@gmail.com>
This commit is contained in:
parent
3babc85a8b
commit
eb3d029157
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user