Skip to content

Commit

Permalink
Interpret WAITING_FOR_CONFIRMATION as PENDING in OmniPay
Browse files Browse the repository at this point in the history
  • Loading branch information
jspetrak committed Oct 11, 2022
1 parent 4d11856 commit 064d0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Messages/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function getTransactionStatus()
$status = $this->getData()->order->status;
if (in_array($status, ['COMPLETED'], true)) {
return self::STATUS_COMPLETED;
} elseif (in_array($status, ['PENDING'])) {
} elseif (in_array($status, ['PENDING', 'WAITING_FOR_CONFIRMATION'])) {
return self::STATUS_PENDING;
} elseif (in_array($status, ['CANCELED','CANCELLED', 'REJECTED'])) {
return self::STATUS_FAILED;
Expand Down

0 comments on commit 064d0d7

Please # to comment.