Members-only check before payment
Retail Extensions · Rule · checked 2026-11-06
Watch the film: Members-only check before payment | App library spotlight
Members-only check before payment stops a sale of a members-only item to a customer who is not a member. It runs when the cashier presses Pay, before any money is taken. It can also ask the cashier to check ID on a large sale. This page covers what the app adds, how to write your rule, what the install switched on, and how to remove it.
What it does
When the cashier presses Pay, your iVendNext sends the priced sale to the app's service. The service reads your rule and answers before the payment screen opens.
| The cashier sees | When |
|---|---|
| The payment screen, as always | The sale has no members-only item, or the customer is a member, and the sale is below your ID limit. |
| "This sale can't be paid", with the item and "is for members only. Add the member's customer to the sale first." | The sale has a members-only item, and the customer is not in a member customer group. Nothing is paid. |
| A Yes or No question: "This sale is ⟨amount⟩ or more. Has the customer shown ID?" | The sale total is at or above your ID limit. No goes back to the sale. |
| "This sale can't be paid", with "Member rule guard is not set up yet…" | No key from your iVendNext has reached the service yet. Your administrator checks that the app's user has its key, and presses Connect again if the site could not reach the app, or a key was lost or changed. |
| "This sale can't be paid", with "Member rule guard cannot read your rules: your shop refused its key. Ask your administrator to press Connect again." | Your iVendNext refused the app's key, for example after a new key was made on the app's user. |
| "Member rule guard did not answer. This sale can't be paid until it does. Try again, or get a manager." | The service cannot be reached, or your iVendNext did not answer its read in time. |
A return is checked only for the items it sells, as in an exchange. What a return takes back is never checked, and the cashier is not asked about ID on a return. The app reads your rule and writes nothing to your iVendNext.
What you set up first
- Install the app from the App library (see About Retail Extensions). The install adds the app's own user,
ivendnext_rgd@integration.invalid, with one role, IVENDNEXT RGD Integration. That user works through the API only and can never sign in to Desk. The check comes in switched on for every POS Profile, with your consent recorded. It refuses a sale whenever the service cannot answer, so install while your stores are closed, or do step 6, limiting the check to your stores, before anything else. - Write your rule (below).
- If a rule names a member customer group, stop cashiers moving a customer into it. The till lets a cashier change a customer's group, so a cashier could move any customer into a member group, and a members-only item would sell. Search Desk for Customize Form, open Customer, set Customer Group's Perm Level to 1 and save. Then in Role Permissions Manager, give level 1 Write on Customer only to the roles that may move customers, such as your managers. A cashier's change to the group then does not save, though the till still says Saved: the customer's profile shows the group unchanged. A cashier also can no longer give a new customer a group: a customer created at the till takes your default customer group (Selling Settings), or none if you have not set one, and a manager sets the right one. Check the level 1 rows already there: Sales Master Manager has one by default, and none of your cashiers' roles may have level 1 Write.
- Search Desk for Registered Application and open IVENDNEXT RGD Rule feed. The install named the app's user on it. Nobody can give it a password or another role. The role needs no other rights. Give the app's user no User Permissions, or a rule that names a record outside them is not read.
- In the App library, find the app under Your apps and press Details. Your site connects the app by itself after the install, and Hosted app says that it sent the service the key of the app's user. Press Connect again only if the site could not reach the app, or a key was lost or changed.
- Limit the check to your stores (below).
Rules
Search Desk for Members-only and ID rule and press Add. Make one record for each rule. Only a System Manager can add or change these records, unless you give another role rights on them in Role Permissions Manager.
| "Rule" | Then choose | What it means |
|---|---|---|
| Members-only item | "Item" | Only a member may buy this item. |
| Members-only item group | "Item group" | Only a member may buy an item of this group. |
| Member customer group | "Customer group" | A customer in this group is a member. |
| Ask for ID at or above | "Amount" | The cashier is asked about ID on a sale at or above this total, in the sale's currency. |
- A line counts by its own item group, and a customer by their own customer group. A group above them does not count.
- With no member customer group, nobody is a member, so a members-only item cannot be sold.
- With several ID limits, the lowest one applies. With none, the cashier is never asked. An amount of 0 asks on every sale. The amount is one number, used in whatever currency the sale is in.
- Untick "Switched on" to stop using a rule.
- The service reads your rules again within a minute of a change.
What the install switched on
The install switched the check on for every POS Profile and recorded your consent. Until you limit it, it answers every store, and every till refuses a sale while the service cannot answer. So limit it straight after the install.
- Search Desk for Retail Extension Subscription and open Member rule guard. To read what it is sent, read the record.
- In Only for these POS Profiles, choose the stores it answers. The field's own help says "Empty: every POS Profile."
- Save.
What leaves your iVendNext
The app's service runs at rule-guard.ivendnext.app, hosted by CitiXsys. After the install or an update, and when you press Connect again after a lost or changed key, or when the site could not reach the app, your site sends the service its key from the App library, its address, the check's signing key, and the API key of the app's user.
At each Pay your iVendNext sends the priced sale: each line's item code, item group, quantity and amounts, the totals, the customer and their customer group, the coupons, the sale details the cashier captured and the payment methods offered. No card details are sent. With the app's user, the service also reads your Members-only and ID rule records. It writes nothing to your iVendNext.
Limits
- A rule change can take up to a minute to apply.
- A parent item group or customer group does not count. Add each group you mean.
- Offline, the till cannot ask the service. It does what the check does when the service is down: the sale is refused.
- A rule on an item with variants does not cover the variants. Add each variant, or use an item group.
- After you install the app again, the install makes the app's user again, switches the check on for every POS Profile, and your site connects it by itself.
How to remove it
- In the App library, find the app under Your apps and press Details.
- On the app's record, press Export and uninstall and confirm. iVendNext first exports your rule records to a file, and tells the service that the app was removed.
- iVendNext removes the check, the rule records, the feed registration and the role.
- iVendNext also removes the app's user and its key, so the key the service had stops working.