MultiSafepay / php-sdk

The default PHP library for connecting to the MultiSafepay REST API
https://docs.multisafepay.com/api
Open Software License 3.0
11 stars 8 forks source link

MultiSafepay PHP SDK throws 412 Unknown Data when API is out #10

Open LeonidasJP opened 3 weeks ago

LeonidasJP commented 3 weeks ago

The MultiSafepay PHP SDK throws an "412 Unknown Data" ApiException, telling it can't parse the 503 Service Unavailable page. Is it possible to change this to - for example - an ApiUnavailableException (extending ApiException for backward compatibility), so we can handle outages of the MultiSafepay API easier than parsing the response body to see what's up?

danielcivit commented 3 weeks ago

Hi @LeonidasJP.

Thanks for contacting us and for your feedback.

I just created a backlog item for this purpose.

I will get back to you via this ticket as soon as we release a new version, including these changes.

LeonidasJP commented 3 weeks ago

Hi @danielcivit, Thanks for the fast response! And my compliments to the crew out there for quickly mitigating this morning's downtime :-D