h4kuna / fio

Read and send payment order for FIO bank, PSR-17 ready
54 stars 25 forks source link

Import payments breaks on 400 Bad Request #59

Open Tetragramat opened 4 months ago

Tetragramat commented 4 months ago

If request POST "https://fioapi.fio.cz/v1/rest/import/" ends with 400 Bad Request with content-type: text/html;charset=utf-8, then this library throws several SimpleXMLElement parse errors like Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : StartTag: invalid element name.

It should throw exception for invalid input.