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 25, 2022
1 parent 80631cc commit b96e6f0
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 @@ -137,7 +137,7 @@ public function getTransactionStatus(): string
$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 b96e6f0

Please sign in to comment.