Skip to content

Commit

Permalink
Update RefundRequest.php
Browse files Browse the repository at this point in the history
Wrong refunded amount.

Steps to replicate:

- refund an amount of $99.00

Expected result:

- amount sent should be 9900 not 99.00, as fatzebra will think that you were trying to transact an amount with $0.99
  • Loading branch information
reillo authored Jan 4, 2023
1 parent e78ac21 commit 1fe87b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/RefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getData()
// Australian dollars.
$this->validate('amount', 'transactionReference');
$data = array(
'amount' => $this->getAmount(),
'amount' => $this->getAmountInteger(),
'transaction_id' => $this->getTransactionReference(),
'reference' => $this->getTransactionReference() . '-REFUND',
);
Expand Down

0 comments on commit 1fe87b3

Please sign in to comment.