From 1f757cf9e3772f37998f40085699d280db448342 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 28 Jun 2023 09:45:24 +1000 Subject: [PATCH] Fixes for token billing with PayTrace --- app/PaymentDrivers/PayTrace/CreditCard.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/PaymentDrivers/PayTrace/CreditCard.php b/app/PaymentDrivers/PayTrace/CreditCard.php index a07f17e5ea4e..79de7603c75d 100644 --- a/app/PaymentDrivers/PayTrace/CreditCard.php +++ b/app/PaymentDrivers/PayTrace/CreditCard.php @@ -177,6 +177,7 @@ class CreditCard 'customer_id' => $token, 'integrator_id' => $this->paytrace->company_gateway->getConfigField('integratorId'), 'amount' => $request->input('amount_with_fee'), + 'invoice_id' => $this->harvestInvoiceId(), ]; $response = $this->paytrace->gatewayRequest('/v1/transactions/sale/by_customer', $data);