Fixes for authorize.net

This commit is contained in:
David Bomba 2020-09-03 21:22:49 +10:00
parent 7315b70983
commit 4bb02f4f61

View File

@ -189,7 +189,7 @@ class AuthorizeCreditCard
$payment = $this->storePayment($payment_hash, $data); $payment = $this->storePayment($payment_hash, $data);
$vars = [ $vars = [
'invoices' => $payment_hash->invoice(), 'invoices' => $payment_hash->invoices(),
'amount' => array_sum(array_column($payment_hash->invoices(), 'amount')) + $payment_hash->fee_total 'amount' => array_sum(array_column($payment_hash->invoices(), 'amount')) + $payment_hash->fee_total
]; ];