Skip to content

Commit 60b5f56

Browse files
authored
Merge pull request #7 from bileto/notification-refunded-is-missing
Added `Refunded` state handling in notifications
2 parents 4caddd5 + 2271f7a commit 60b5f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/Notification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getTransactionStatus()
6868
return self::STATUS_COMPLETED;
6969
} elseif (in_array($status, ['AUTHORIZED', 'PAYMENT_METHOD_CHOSEN', 'CREATED'], true)) {
7070
return self::STATUS_PENDING;
71-
} elseif (in_array($status, ['CANCELED', 'TIMEOUTED'], true)) {
71+
} elseif (in_array($status, ['CANCELED', 'TIMEOUTED', 'REFUNDED'], true)) {
7272
return self::STATUS_FAILED;
7373
}
7474
throw new InvalidRequestException('We have received unknown status "' . $status . '"');

0 commit comments

Comments
 (0)