Open majun opened 4 years ago
On FIO error is not possible to read message from Contributte\Fio\Http\PaymentResponse->getErrorCodeMessage() and throws exception:
Contributte\Fio\Http\PaymentResponse->getErrorCodeMessage()
TypeError Return value of Contributte\Fio\Http\PaymentResponse::getErrorCodeMessage() must be of the type string, null returned
Usage (Nette):
<?php $response = $paymentService->sendPayments(); if ($response->isOk()) { ... $this->onSuccess(); } else { $this->onError($response->getErrorCodeMessage()); }
Hi. Could you repair it and send PR? Thx.
Ping @majun
On FIO error is not possible to read message from
Contributte\Fio\Http\PaymentResponse->getErrorCodeMessage()
and throws exception:Usage (Nette):