What is webhook: #
Webhook helps you to get live orders from WooCommerce to TranziPOS. Meaning whenever there is a new order in WooCommerce website it gets send instantly to TranziPOS. This is a nice feature present in this module.
Setting up Webhook: #
- Go to WooCommerce -> API settings -> WebHook settings, there you will find Order Created, Order Updated, Order Deleted, Order Restored webhook settings containing Webhook Secret & Webhook Delivery URL
- Copy the Webhook Delivery URL for Order Created and create a new Webhook in WooCommerce. For creating Webhook in WooCommerce refer to this document: https://docs.woocommerce.com/document/webhooks/#section-3
- Name: Give any name which you can recognize.
- Status: Active
- Topic: Order Created
- Delivery URL: Paste the order created delivery URL from TranziPOS.
- Secret: keep it blank.
- API version: WP REST API version 2
-
- Click on “Save Webhook” in WooCommerce.
- Copy the Generated “Secret” from WooCommerce and paste it to Webhook Secret of TranziPOS Order Created.
- Repeat the above process for all other (Order Updated, Order Deleted, Order restored)
After configuring when a new order comes it will also be updated in TranziPOS.
Error: Woocommerce webhook signature mismatch #
If it shows this error in error log then make sure you have provided the correct webhook secret in TranziPOS as described in above step 2.