Open sauloperez opened 3 years ago
This is the one I had to set up in production for the shipment integration to work
I'd like to provision it by simply executing a script ala Config as Code.
Only approach I've found is creating a script using woocommerce api: https://woocommerce.github.io/woocommerce-rest-api-docs/#webhooks
Exactly. That was the idea. I would implement it as a custom management command as explained on https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/.
This aims to guarantee that the Woocommerce site we are listening to has the necessary webhooks properly configured for this integration to work. This should also be idempotent so we don't end up with duplicate incoming requests.