Skip to content

Purchase Requirements

Purchase Requirements is a Paymenter extension for hosting providers who do not want every product to be available to every customer. You attach requirements to a product. A requirement either demands that the customer already has an active service of another product, or caps how many services of the product one customer may hold. A customer who does not meet a requirement gets a message and cannot add the product to the cart or place the order.

Typical cases are an add-on that only makes sense with a server, a free trial limited to one per customer, or a product a customer may hold at most three times.

Form for creating a purchase requirement

What it does

  • Required product. The customer must own a service of a product you choose, and that service must have the status active. Pending, suspended and cancelled services do not fulfil the requirement.
  • Maximum quantity per customer. Limits how many services of a product one customer may hold. Pending, active and suspended services count, cancelled services do not.
  • Cart quantities count. At checkout the quantities of all cart lines of the same product are added up and added to the services the customer already holds.
  • Two checks. Requirements are checked when a signed-in customer adds a product to the cart and again when the order is created. Both checks run on the server.
  • Customer message. A blocked customer sees a Paymenter error notification with the reason. You can replace the default text with your own for each requirement.
  • Enable or disable each requirement. A disabled requirement never blocks a purchase and keeps its configuration.
  • Admin page. Requirements are managed under Purchase Requirements in the Extensions navigation group. The list shows what each requirement does in one line.

Products without a requirement are not affected.

Requirements

  • Paymenter 1.5.x. The extension was developed and tested against Paymenter 1.5.8.
  • PHP 8.3 or 8.4.

No server or gateway extension is needed.

Pages

  • Installation: upload, enable, update and uninstall.
  • Configuration: the fields of a requirement and how services are counted.
  • Usage: setting up requirements, what the customer sees and when the checks run.
  • FAQ: common questions and troubleshooting.
  • Changelog