1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

minor fixes for refunding via square

This commit is contained in:
David Bomba 2023-02-03 12:35:36 +11:00
parent 2492a87cb7
commit ff9539a1b8

View File

@ -99,7 +99,7 @@ class SquarePaymentDriver extends BaseDriver
$amount_money = new \Square\Models\Money(); $amount_money = new \Square\Models\Money();
$amount_money->setAmount($this->convertAmount($amount)); $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); $body = new \Square\Models\RefundPaymentRequest(\Illuminate\Support\Str::random(32), $amount_money, $payment->transaction_reference);