sveawebpay / php-integration

SDK for Sveas payment methods (standalone and Svea Checkout)
Other
15 stars 19 forks source link

There is an error in XML document (2, 210). #70

Closed timint closed 7 years ago

timint commented 7 years ago

Warning: Server was unable to read request. ---> There is an error in XML document (2, 210). ---> Input string was not in a correct format.

The error was returned from the GetAddress component for a danish visitor.

Preferably return an error instead like "The given country code is not supported for this operation".

nlii commented 7 years ago

Yes, this indicates that something is wrong with the request so the system can not read it. If you call prepareRequest() instead of doRequest() in the php-integration library, it will return the request object before calling the SoapClient. If you contact our customer service they can use that to help you find what is wrong.