Fixes for auth.net

This commit is contained in:
= 2021-09-16 08:33:08 +10:00
parent 882cf1d734
commit 6f3a1a2d06

View File

@ -102,11 +102,11 @@ 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'];
// if ($response != null && $response->getMessages()->getResultCode() == 'Ok') {
if ($response != null && $response->getMessages() != null) {
$this->storePayment($payment_hash, $data);
$vars = [