Skip to content

Commit

Permalink
Merge pull request #7 from Invertus/order-refund-fix
Browse files Browse the repository at this point in the history
fixed issue with order refund and multiple transactions
  • Loading branch information
margud authored Feb 18, 2022
2 parents 295079a + 0a9b4d8 commit 9c6929a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
![Mollie](https://www.mollie.nl/files/Mollie-Logo-Style-Small.png)

# Changelog #
## Changes in release 4.5.0 ##
+ Fixed order API check for refunded payments that check if transaction is still used.

## Changes in release 4.5.0 ##
+ Added restriction to only allow this module to be used in ps1.6.1.0 - 1.6.1.24
+ Fixed missing transaction id on order payments.
Expand Down
2 changes: 1 addition & 1 deletion src/Service/TransactionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function processTransaction($transaction)
}
$apiPayment->update();
} elseif ($apiPayment->amountRefunded) {
if (strpos($apiPayment->description, OrderNumberUtility::ORDER_NUMBER_PREFIX) === 0) {
if (strpos($apiPayment->orderNumber, OrderNumberUtility::ORDER_NUMBER_PREFIX) === 0) {
return $transactionNotUsedMessage;
}
if (isset($apiPayment->amount->value, $apiPayment->amountRefunded->value)
Expand Down

0 comments on commit 9c6929a

Please sign in to comment.