Fixes for eWay
This commit is contained in:
parent
8c66dbf29e
commit
d2e72e1a5e
1 changed files with 3 additions and 3 deletions
|
|
@ -60,14 +60,14 @@ class Token
|
|||
if(!$response_status['success'])
|
||||
return $this->processUnsuccessfulPayment($response);
|
||||
|
||||
$payment = $this->processSuccessfulPayment($response);
|
||||
$payment = $this->processSuccessfulPayment($response, $cgt);
|
||||
|
||||
return $payment;
|
||||
|
||||
}
|
||||
|
||||
|
||||
private function processSuccessfulPayment($response)
|
||||
private function processSuccessfulPayment($response, $cgt)
|
||||
{
|
||||
$amount = array_sum(array_column($this->eway_driver->payment_hash->invoices(), 'amount')) + $this->eway_driver->payment_hash->fee_total;
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ class Token
|
|||
'error_code' => $error_code,
|
||||
];
|
||||
|
||||
return $this->driver_class->processUnsuccessfulTransaction($data);
|
||||
return $this->eway_driver->processUnsuccessfulTransaction($data);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue