1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fix for auth.net autobill

This commit is contained in:
David Bomba 2021-01-26 20:38:11 +11:00
parent c664428a81
commit 7b08355c75
2 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,7 @@ class AuthorizeCreditCard
/*Refactor and push to BaseDriver*/
if ($data['response'] != null && $data['response']->getMessages()->getResultCode() == 'Ok') {
$this->storePayment($payment_hash, $data);
$vars = [

View File

@ -104,6 +104,8 @@ class AuthorizePaymentDriver extends BaseDriver
public function tokenBilling(ClientGatewayToken $cgt, PaymentHash $payment_hash)
{
$this->setPaymentHash($payment_hash);
$this->setPaymentMethod($cgt->gateway_type_id);
return $this->payment_method->tokenBilling($cgt, $payment_hash);