diff --git a/src/Call/PaymentResponse.php b/src/Call/PaymentResponse.php index 1b8dd04..db75b21 100644 --- a/src/Call/PaymentResponse.php +++ b/src/Call/PaymentResponse.php @@ -28,7 +28,7 @@ public function __construct( public static function createFromResponseData(array $data): self { return new self( - $data['payId'], + $data['payId'] ?? '', // for some error response it can be null DateTimeImmutable::createFromFormat('YmdHis', $data['dttm']), ResultCode::from($data['resultCode']), $data['resultMessage'],