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:
parent
2492a87cb7
commit
ff9539a1b8
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user