Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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)