Skip to content

Using Order Approval Rules

What happens to a new order

  1. A customer completes the checkout. Paymenter creates the order, its services (status pending) and the invoice.
  2. Right after that, the extension checks the order against all enabled rules.
  3. If no rule matches, nothing else happens. The order is processed by Paymenter as usual.
  4. If at least one rule matches, the extension creates a review with the status pending and stores the names of the matching rules.
  5. When the invoice is paid while the review is pending, Paymenter still marks the invoice as paid, but the order's services are left out of the processing. They stay pending, and no server is created.

Other items on the same invoice, such as upgrades or credit top-ups, are processed normally.

The extension sends no e-mails and no notifications. You find flagged orders by opening Pending Reviews. Paymenter's own order and invoice e-mails are not changed.

The review list

Open Pending Reviews in the Extensions navigation group. The list contains every review, newest first, including those you have already approved or rejected.

Column Content
Order The order number, for example #42
Customer Name and e-mail address of the customer
Total The order total in the order's currency
Product The names of the products in the order
Triggered rule(s) The names of the rules that matched, in priority order
Created When the review was created
Status pending, approved or rejected

Rows with the status pending have two actions, Approve and Reject. Both ask for confirmation. A decision cannot be changed in the list afterwards. The extension stores which administrator decided and when.

Reviews cannot be created or edited by hand.

Approve

Approve sets the review to approved and releases the hold. What happens next depends on the payment:

  • Invoice already paid. Every service of the order that is still pending and has a paid invoice is handed to Paymenter's normal renewal step: the service becomes active, its due date is set, and if the product has a server, the server creation job is dispatched.
  • Invoice not paid yet. Nothing is provisioned now. When the customer pays, Paymenter provisions the services the usual way, because the order is no longer on hold.

Reject

Reject sets the review to rejected. It does nothing else: no service is cancelled, no invoice is cancelled or refunded, no server is terminated, and the customer is not informed.

After rejecting, the order is no longer on hold. What you have to do by hand depends on the payment:

  • Invoice already paid. The services stay pending and are not provisioned. Refund the payment and cancel the services yourself.
  • Invoice not paid yet. The invoice stays open and payable.

Warning

Rejecting an unpaid order does not stop it. If the customer pays the open invoice afterwards, Paymenter provisions the services normally, because only reviews with the status pending hold an order back. Cancel the invoice and the services yourself when you reject an unpaid order.

What the customer sees

While the review is pending, the customer's service page shows this notice below the regular page content:

This order is awaiting manual review. Provisioning starts as soon as it has been approved.

The service itself is shown with the status pending, as for any service that has not been provisioned yet. The notice disappears as soon as the review is approved or rejected. There is no notice in the checkout, on the invoice or by e-mail, and a rejection is not shown to the customer.

What the hold does not cover

The hold only acts when Paymenter processes a paid invoice. It does not cover:

  • Free services. Paymenter activates a cart item with a price of zero during checkout, before the rules are checked. Such an order can still get a review, but its services are already active.
  • Manual changes. Changing a service in the admin area is not blocked by a pending review.
  • Existing services. Renewals, upgrades and suspensions of services from earlier orders are not touched.

Automatic behaviour

  • The extension has no scheduled task and no console command.
  • Reviews never expire. A pending review holds its order until you approve or reject it.
  • It listens to one Paymenter event, the order being finalised after creation, and replaces Paymenter's paid-invoice processing with a version that skips services on hold. No Paymenter core file is modified.