Skip to content

Order Approval Rules

Order Approval Rules is a Paymenter extension for hosting providers who do not want every paid order to be provisioned unattended. You describe which orders need a second look. A matching order gets a review entry, and while that review is pending Paymenter does not provision the order's services when the invoice is paid. An administrator then approves or rejects the order in a review list.

Admin list of approval rules

What it does

  • Four rule types. Order value (order total above an amount), New account (customer account younger than a number of hours), Active service count (customer has a number of services or more) and Product specific (order contains a chosen product).
  • One outcome. A rule either matches or it does not. A match sends the order into manual review. No rule rejects, cancels or refunds an order.
  • All matches recorded. Every enabled rule is checked for every order. The names of all rules that matched are stored with the review.
  • Provisioning hold. While a review is pending, the order's services are left out when Paymenter processes a paid invoice. They stay pending and no server is created.
  • Review list. Pending Reviews shows the order number, customer, total, products, triggered rules, creation time and status, with Approve and Reject actions.
  • Approve. Releases the hold. Services that are already paid for are activated and provisioned at once. Unpaid services are provisioned by Paymenter when the payment arrives.
  • Reject. Records the decision. Nothing is cancelled, refunded or terminated. See Usage for what you have to do by hand afterwards.
  • Customer notice. While the review is pending, the service page shows a notice that the order is awaiting manual review.
  • No effect on other orders. An order that matches no rule gets no review and is processed by Paymenter as usual.

Requirements

  • Paymenter 1.5.x. The extension was developed and tested against Paymenter 1.5.8.
  • PHP 8.3 or 8.4.
  • The customer notice is built on the active theme's services/show.blade.php view and uses the styling of Paymenter's default theme. The review workflow itself does not depend on the theme.

Pages

  • Installation: upload, enable, update and uninstall.
  • Configuration: the rule form, the four rule types and how each one is evaluated.
  • Usage: the review list, approving and rejecting, what the customer sees.
  • FAQ: common questions and troubleshooting.
  • Changelog