From 4cd4cc56e7d331ef9833f74e2ad46e3d316f9bd4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 27 Aug 2023 09:22:46 +1000 Subject: [PATCH] Fixes for Square --- app/PaymentDrivers/Square/SquareWebhook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Square/SquareWebhook.php b/app/PaymentDrivers/Square/SquareWebhook.php index ebe46b0af4ee..c83b73fd4765 100644 --- a/app/PaymentDrivers/Square/SquareWebhook.php +++ b/app/PaymentDrivers/Square/SquareWebhook.php @@ -146,7 +146,7 @@ class SquareWebhook implements ShouldQueue $data = [ 'payment_type' => $this->source_type[$square_payment->source_type], - 'amount' => $payment_hash->amount_with_fee, + 'amount' => $payment_hash->amount_with_fee(), 'transaction_reference' => $square_payment->id, 'gateway_type_id' => GatewayType::BANK_TRANSFER, ];