ORDERS_PAID webhook is fired before ORDERS_CREATE

ORDERS_PAID webhook is fired before ORDERS_CREATE

rohankamble
Shopify Partner
2 1 1

Below are the logs from my custom app which is Laravel PHP

 

ORDERS_PAID handler at 2024-10-02 10:51:00
ORDERS_CREATE handler at 2024-10-02 10:51:07

 

as you can see, the ORDERS_PAID topic webhook was fired before the ORDERS_CREATE topic webhook, due to this my app is not able to handle things accurately.

what would be the best way to handle such situations?

I am handling the webhook requests in the app by delegating the handlers task to the Larave Queue jobs

that I have created OrderCreatedOnShopify & OrderPaidOnShopify

I have a few Business logic that I need to handle ONLY IN ORDERS_PAID and some Business logic that ONLY NEEDS to be executed on ORDERS_CREATE

I would really appreciate any insights on how I can handle this.

Thank you.

Replies 0 (0)