iVendNextDevelopers My apps

9. The extension points, and how to ask for a new one

For: a builder whose need fits no rung of the ladder, or who needs to know which extension points exist.

Next: Part 1, The extension pointsNext: 10. Integrations

In five parts

  1. 1The extension points

  2. 2More extension points

  3. 3Asking for a new extension point, or for more from one

  4. 4When your service is down, and when the till is offline

  5. 5Technical notes

Reference implementation: Request an extension point (the form) · for each extension point, the chapter and sample named in the table under The extension points. The extension-point library — one page and one contract for each extension point — is kept with the product. That table says where each is covered in the kit; the contracts are in contracts/.

What an extension point is

Most of what a customer asks for needs no new door: set it up in iVendNext (chapter 4), run your own service beside it (the event feed recipe), give the cashier a key (till keys) or ship your own records (chapter 7). An extension point is the door we build when none of those can do the job. It is a published place in iVendNext where your service, your page or your declared data takes part, with three things fixed in advance:

Because all three are written down before you build, the cashier is never left waiting on something we did not plan for. An extension point is never a place to change money after the cashier has seen it, and your service's code never runs inside the retailer's site: where an extension point asks your service during a save, our code asks and applies your answer from a closed list (chapter 3, the four rules). The one code of yours that runs inside the retailer's iVendNext is a sandboxed module we have certified, at the two extension points that take one (the Wasm kit).

When to use it

Go down the ladder first (chapter 3). Come here only when the rung above cannot do the job:

  1. Is the extension point you need in the table under The extension points? Use it and the chapter it names.
  2. Is it not listed? Combine the doors you have first (chapter 3, rung 6): an outside app with a document check, a Desk button that asks for inputs, a partner page opened from a button, a capture at the scan, save rules and configuration meet most needs, and a composition with its limit stated is a complete answer. Ask for a new extension point (below) only when no composition meets the customer's outcome, and say in the request which compositions you tried and why each falls short. Composing keeps the four rules: it is never code inside the retailer's iVendNext, a script in Desk, or a price changed after the cashier has seen it.

This page in the kit