mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for authorize
This commit is contained in:
parent
0e1b6c9341
commit
dff41d4881
@ -103,10 +103,12 @@ class AuthorizeCreditCard
|
||||
/*Refactor and push to BaseDriver*/
|
||||
if ($data['response'] != null && $data['response']->getMessages()->getResultCode() == 'Ok') {
|
||||
|
||||
$response = $data['response'];
|
||||
|
||||
$payment_record = [];
|
||||
$payment_record['amount'] = $amount;
|
||||
$payment_record['payment_type'] = PaymentType::CREDIT_CARD_OTHER;;
|
||||
$payment_record['transaction_reference'] = $data['response']->getTransactionResponse()->getTransId();
|
||||
$payment_record['transaction_reference'] = $response->getTransactionResponse()->getTransId();
|
||||
|
||||
$this->authorize->createPayment($payment_record);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user