Skip to content

Using White Label Storefronts

Managing storefronts

Open Storefronts in the Extensions navigation group.

Admin list of storefronts with the overview above it

The overview above the table shows five figures. It refreshes every 120 seconds.

Figure Meaning
Storefronts Number of storefronts, and how many of them are active
Attributed orders Number of invoices attributed to any storefront
Attributed sales Sum of the amounts of all attributed invoices
Commission pending Sum of all commissions with the status Pending
Commission paid Sum of all commissions with the status Paid

The table lists the storefronts by name:

Column Meaning
Name Storefront name. Searchable and sortable.
Slug The slug. Searchable, and you can copy it with a click.
Active Whether the storefront is active
Commission Disabled, a percentage such as 10.00%, or a fixed amount such as 5.00 fixed
Orders Number of invoices attributed to this storefront
Commissions Sum of all commissions of this storefront, pending and paid
Created Creation date

You can filter by Active. Each row has Edit and Delete.

Warning

Deleting a storefront also deletes its attributions and its commissions, including pending ones. To take a storefront offline and keep its history, switch off Active instead.

The fields of the form are described in Configuration.

A partner can send visitors to either address:

  • https://<your-paymenter-domain>/s/<slug>, the branded page,
  • https://<slug>.<domain base>, if you set up subdomains. This activates the storefront and shows your normal Paymenter page for the requested address.

What the visitor sees

The page at /s/<slug> is rendered inside your Paymenter theme, so your navigation and footer stay in place. It contains:

  • a header with the logo (if set), the storefront name in the primary colour, the tagline and the description,
  • one section per category that has at least one product that is not hidden, in the sort order of your categories,
  • one card per visible product, in the sort order of your products, with the product name, the first 160 characters of the product description without HTML, the price as Paymenter shows it for the visitor's currency, and a View product button.

View product opens the product's normal Paymenter product page. From there on, the visitor uses your regular cart, checkout and client area. These pages are not branded.

If there is no visible product, the page shows No products are available right now.

An unknown slug or an inactive storefront returns a 404.

How attribution works

  1. A visitor opens /s/<slug> or a storefront subdomain. The storefront's slug is stored in the visitor's session. This is the active storefront.
  2. The active storefront stays for the rest of the session. Opening another storefront replaces it, so the storefront visited last counts.
  3. When Paymenter sets an invoice to paid, the extension reads the active storefront from the session of that request.
  4. If there is an active storefront that is still set to Active, and the invoice has not been attributed before, the extension records the storefront, the invoice, the customer and the invoice amount.
  5. If the storefront has Earn a commission switched on, a commission with the status Pending is created at the same moment.

Each invoice is attributed at most once. Attribution is not limited to the first order: every invoice that is paid in a session with an active storefront is attributed, for example a renewal invoice that the customer pays in that session.

Warning

Attribution depends on the session of the request in which the invoice becomes paid. If the invoice is set to paid in a request that does not carry the visitor's session, for example a payment gateway's webhook call, no storefront is found and nothing is recorded. Test an order with each of your payment gateways before you promise commissions to a partner.

Note

The same rule applies to you. If you open a storefront page and later set an invoice to paid in the admin area in the same browser session, that invoice is attributed to the storefront you opened.

Managing commissions

Open Storefront Commissions in the Extensions navigation group.

Admin list of storefront commissions

Column Meaning
Storefront Name of the storefront. Searchable and sortable.
Invoice Invoice number, or the invoice ID if the invoice has no number
Amount Commission amount
Status Pending or Paid
Created Date the commission was created

The newest commissions are listed first. You can filter by Status.

Commissions cannot be created or edited by hand. The only action is Mark paid, which is shown on pending commissions:

  1. Pay the partner outside of Paymenter.
  2. Click Mark paid on the commission and confirm.

The status changes to Paid. There is no action to set a commission back to Pending.

Automatic behaviour

  • On every web request: if Resolve storefronts from subdomains is on, the request's host is checked against the storefront slugs.
  • When an invoice is paid: the extension listens to Paymenter's App\Events\Invoice\Paid event and records the attribution and the commission as described above.
  • When an invoice is deleted: its attribution and commission rows are deleted with it.
  • When a customer is deleted: attributions stay, without the customer reference.

The extension has no scheduled tasks and sends no e-mails.