Kazeem Payment & Order Controls for WooCommerce

Description

Kazeem Payment & Order Controls for WooCommerce gives you control over your store operations: order restrictions, payment gateway rules, shipping event webhooks and currency switching, all from one dashboard.

Order Control

  • Enable or disable ordering globally
  • Daily time restrictions and exact date/time ranges
  • Restrict all products, specific categories or individual products
  • Automatically hides Add to Cart buttons when ordering is closed
  • Custom customer message and checkout redirect URL

Payment Gateway Control

  • Rules that decide which payment gateways appear for specific currencies
  • Table view to add, edit, enable, disable and delete rules
  • Multiple currencies and multiple gateways per rule

Currency Control

  • Custom manual exchange rates and currency symbols
  • Frontend currency switcher via the [kpoc_currency_switcher] shortcode or ?currency=EUR links
  • Optional fixed price per currency on each product

Shipping Event Webhooks

  • REST API endpoint that receives events from shipping platforms
  • Requests are logged with body, headers and response
  • Updates WooCommerce order meta and adds order notes
  • Protected by a secret header

Dashboard

  • Overview statistics, recent webhook activity and status indicators

Installation

Requires WordPress 6.2+, PHP 7.2+ and WooCommerce active. Without WooCommerce the plugin shows an admin notice and stays inactive.

  1. Install and activate WooCommerce.
  2. Upload the plugin to /wp-content/plugins/kazeem-payment-order-controls-for-woocommerce/, or install it from Plugins > Add New.
  3. Activate it through the Plugins menu. A database table for webhook logs is created automatically.
  4. Open Kazeem Payment & Order Controls in the admin sidebar.

Defaults on a fresh install: orders are allowed, no restrictions are active, no payment gateway rules exist, the currency switcher is off, and the webhook is locked until you set a secret.

Shipping webhook usage

  1. Go to Kazeem Payment & Order Controls > Event Logs.
  2. Set a Webhook Secret (until one is saved every request is rejected with HTTP 403).
  3. Send a POST request with the header X-KPOC-Secret: <your secret> and a JSON body to https://yoursite.com/wp-json/shipping/v1/shipping-webhook.

Supported fields: order_id, tracking_number, status, event_type. Developers can hook the kazeem_payment_order_controls_shipping_event_received action.

FAQ

Can I restrict orders for specific products only?

Yes. Use the Restriction Type setting in Order Control to select specific products or categories.

Do payment gateway rules work on the cart page?

Yes, the rules apply to both cart and checkout pages.

What happens when orders are disabled?

Add to Cart buttons are hidden, a custom message is shown on product pages, checkout redirects to your chosen URL, and an error is shown if a customer tries to place an order.

Is the webhook endpoint secure?

Requests are rejected unless they send the X-KPOC-Secret header matching the secret you set. Always use HTTPS.

The webhook returns 403

No Webhook Secret has been saved yet. Set one under Event Logs.

How do customers switch currency?

Add the [kpoc_currency_switcher] shortcode to a page or widget. If you use a page-caching plugin, exclude pages that show prices from caching.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Kazeem Payment & Order Controls for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.2.7

  • Added [kpoc_currency_switcher] shortcode for the frontend currency switcher
  • Added setup, usage and testing instructions
  • Added a notice explaining that the webhook secret is required
  • Renamed plugin to “Kazeem Payment & Order Controls for WooCommerce”
  • Updated text domain to kazeem-payment-order-controls-for-woocommerce
  • Added advanced currency switching features
  • Fixed “Trying to access array offset on null” warning on fresh installations
  • Added strict dependency check for WooCommerce to prevent fatal errors

1.2.0

  • Added advanced order control features, date/time ranges, product/category restrictions and redirect URL

1.1.0

  • Added dashboard and payment gateway rule table

1.0.0

  • Initial release