I need clean, self-contained PHP that links my WordPress + WooCommerce store (Woodmart theme) with Tidio through their OpenAPI and webhooks. No full-blown plugin is necessary—just well-documented code that can sit safely in a child theme or mu-plugin folder. Scope of work • Authorise against the Tidio OpenAPI with my Client ID and Secret exactly as outlined in the docs, storing credentials server-side only (follow the method Tidio recommends—environment variables if available). • Build an endpoint in WordPress that Tidio can call; verify HMAC, parse the payload and return the expected 2xx response so Tidio treats the webhook as delivered. • Push WooCommerce data to Tidio whenever an order or customer is created or updated. • Accept incoming Tidio webhook events and mirror any changes back into WooCommerce. Data to keep in sync • Customer name & email • Order status and items • Billing and shipping address Technical notes • Use wp_remote_request() or Guzzle (if you prefer) for outgoing API calls. • Basic logging only: record each API request/response pair to the WordPress debug log or a dedicated log file so I can trace issues. • Please avoid front-end exposure of secrets, keep everything namespaced, and add inline comments so I can maintain it later. Deliverable: a single .php file (or small set, if cleaner) I can drop into production, plus brief setup instructions and a quick test plan to confirm data flows in both directions.