mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
Merge pull request #6655 from turbo124/v5-develop
Fixes for auth.net token billing
This commit is contained in:
commit
7db598ccec
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user