Skip to content

Commit

Permalink
Fix logic bug in refund sequence number check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Boettcher committed Feb 5, 2020
1 parent f3cbb14 commit 347ae2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payone/Request/Refund/RefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getRequestParameters(
throw new InvalidOrderException($order->getId());
}

if (empty($customFields[CustomFieldInstaller::SEQUENCE_NUMBER])) {
if (!isset($customFields[CustomFieldInstaller::SEQUENCE_NUMBER])) {
throw new InvalidOrderException($order->getId());
}

Expand Down

0 comments on commit 347ae2d

Please sign in to comment.