From ff9539a1b859c55d85a00c09abe81a51cd3d7188 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 3 Feb 2023 12:35:36 +1100 Subject: [PATCH] minor fixes for refunding via square --- app/PaymentDrivers/SquarePaymentDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/SquarePaymentDriver.php b/app/PaymentDrivers/SquarePaymentDriver.php index 2a92d18321..eb4a0bfec9 100644 --- a/app/PaymentDrivers/SquarePaymentDriver.php +++ b/app/PaymentDrivers/SquarePaymentDriver.php @@ -99,7 +99,7 @@ class SquarePaymentDriver extends BaseDriver $amount_money = new \Square\Models\Money(); $amount_money->setAmount($this->convertAmount($amount)); - $amount_money->setCurrency($this->square_driver->client->currency()->code); + $amount_money->setCurrency($this->client->currency()->code); $body = new \Square\Models\RefundPaymentRequest(\Illuminate\Support\Str::random(32), $amount_money, $payment->transaction_reference);