XML data with a company name with an " ' " results in an incomplete XML.

tommie_colorspacetommie_colorspace Member Posts: 2
edited September 30 in Development

Hello!


We work with WebHooks a lot to process orders.

When an order is paid we receive a WebHook with the order's XML data.

But it seems when the XML data contains a company name with an " ' " in it the XML data is damaged and can't be read.

Has someone else had problems with this before?


Kind regards,


Tommie

Dekaartendrukkerij.nl


*EDIT: posted in the wrong catagory, sorry.

Post edited by Leah on

2 comments

  • LeahLeah Moderator, Lightspeed Staff Posts: 194 moderator

    Hi Tommie,

    Can you post an example of what it looks like when this issue arises? Can you also PM me the shop ID so I can test if I am unable to reproduce it in my test shop?

    Thanks.

    API Support
    Lightspeed HQ
  • tommie_colorspacetommie_colorspace Member Posts: 2

    Unfortunately no, the WebHook that Lightspeed sends are going through one of my API's as well to pass it to Filemaker. To review the data that is being passed I email the payload that my API receives to myself. However when the an order contains a company name with an " ' " it does not get passed through my PHP script and cannot get the PHP input. When the company name does not contain an " ' " it works just fine and I receive an email with the payload. I will PM you the shop ID.


    Thanks for you help!

Sign In or Register to comment.