I am trying to learn how to properly set up webhooks and a listener on my server in order to process the webhooks.
My end game is to make a mysql database entry every time i have some purchase an item with their name and a couple of the item details.
I am hoping to set this up in PHP. I have a generic rest api set up but I am trying to learn how to configure it to read one of these square webhooks.
Does any one have example php of a listener which reads the square webhooks? Or familiarity with what I am trying to accomplish?