How to catch the HTTP POST request sent by a Shopify Webhook

前端 未结 5 630
时光取名叫无心
时光取名叫无心 2021-01-31 05:50

I\'m somewhat of a noob, and not afraid to admit that, I\'m working on this project as a learning experience to get better with php and serverside script/ing handling.

I

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 06:37

    It sounds like you’re most familiar with PHP, so I’ll answer based on that.

    You need a PHP script/page that’s accessible as a public URL that can take the data sent in the HTTP POST Shopify sends you and turn it into the form your database wants.

    Here’s an example of what that PHP script could look like: http://wiki.shopify.com/WebHook#PHP_Example_w.2F_SimpleXML_.28PHP_5.2B.29

提交回复
热议问题