Skip to content

Commit

Permalink
Fix refund amount setting
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Jun 3, 2021
1 parent a8b393a commit 94afe5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Payments/Providers/PayPal.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function refund($token, $amount, $description)
$transaction->merchant = 'N/A';
$transaction->provider = 'PayPal';
$transaction->driver = 'paypal';
$transaction->amount = $captureRefund->amount->total;
$transaction->amount = -abs($captureRefund->amount->total * 100);
$transaction->notes = null;
$transaction->status = $captureRefund->state;
$transaction->card_type = '-';
Expand Down

0 comments on commit 94afe5f

Please sign in to comment.