From 6f3a1a2d06dc3686ce5c9e24ea9299bde22fb634 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 16 Sep 2021 08:33:08 +1000 Subject: [PATCH] Fixes for auth.net --- app/PaymentDrivers/Authorize/AuthorizeCreditCard.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php index dccc3276ef..a7f006e252 100644 --- a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php +++ b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php @@ -102,10 +102,10 @@ class AuthorizeCreditCard $data = (new ChargePaymentProfile($this->authorize))->chargeCustomerProfile($cgt->gateway_customer_reference, $cgt->token, $amount); - /*Refactor and push to BaseDriver*/ - if ($data['response'] != null && $data['response']->getMessages()->getResultCode() == 'Ok') { + $response = $data['response']; - $response = $data['response']; + // if ($response != null && $response->getMessages()->getResultCode() == 'Ok') { + if ($response != null && $response->getMessages() != null) { $this->storePayment($payment_hash, $data);