I want to automatically capture the order details right when a new order is placed on my Wix website

Product:
Wix Website Editor | Wix Velo

What are you trying to achieve:
I want to automatically capture the order details right when a new order is placed on my Wix website. The goal is to process this order using a custom Velo function so that I can later send it to my supplier for fulfillment. This should ideally happen in real-time, or as close to the order placement as possible.

What have you already tried:
I’ve created a backend function in Velo intended to trigger when an order is submitted. I consulted the official Wix Velo documentation, tried using the wixEcom_onOrderCreated() event handler, and verified my permissions and function exports. However, the function doesn’t seem to trigger when a new order is placed through the store. I’ve also looked at forum posts and examples but still can’t get it to work.

Additional information:

  • My function is located in the backend/events/wixEcom.js file.
  • I’ve published all changes and ensured the site is live.
  • I’m using the Wix Stores app to manage orders.
  • There’s no error in the console, but the handler is simply not firing.
  • Eventually, I intend to send the order data to an external API for supplier fulfillment.