Quilzomanual

Sell through the provider's own checkout

A Buy button beside every product that can be bought, charging exactly the price the page shows, with the card and the order kept by the provider and not here.

In the adminPayments

A payment link is a checkout at the provider for one product at one price. Quilzo makes one for each price the published catalogue offers, and shows a Buy button only where a live link charges exactly what the page says.

The demonstration shop: product cards with their price, whether they are in stock, and a Buy button that says what it charges, such as Buy for £24.00
Each button says what it charges, read from the link itself.

Turn payments on

  1. Name the catalogue listing, if the site does not already serve one: quilzo config set site.catalogue catalogue. A product needs a slug or an id, a name, a whole-number price in minor units (pence, cents) and a currency.

  2. Keep a Stripe key sealed in the store. A restricted key is enough, and it is safer than a secret key, which can also refund, pay out and read every customer. Allow it to write Prices, Products and Payment Links, and to read Checkout Sessions:

    quilzo secret set stripe < key.txt

    Or set QUILZO_SECRET_STRIPE in the admin's environment. A test key (rk_test_…) takes test payments; the screen says which you have.

  3. Ask for payments to be turned on. A second administrator approves it, in Approvals or with quilzo pending approve ID, because from then on a price on a page is a price somebody pays. A store with only one administrator approves it alone, and the record says so.

    quilzo pay enable stripe --ship-to GB,IE --done "Thank you. We post within two working days."

    --ship-to lists the countries the checkout asks for a delivery address in; leave it out for downloads, services and collection.

In the admin, Payments, under Release, says what is still missing, asks for the second administrator, and shows test or live mode once payments are on.

The Payments screen: on, through Stripe, in test mode, eleven products for sale and eleven payment links selling them, with buttons to bring the links up to date and to show the latest orders
Payments, under Release.
  • After every publish, rollback and scheduled publish, the links are brought into line with the live catalogue. A new price gets a new link first; then the old one is retired, so a product is never without a way to buy it at the price the page shows.
  • A product that is sold out, out of stock or discontinued, or has no price, gets no link and no button.
  • While Stripe cannot be reached, a changed price shows no Buy button, never one charging the old price. The screen and quilzo pay say what stopped, and quilzo pay sync or Bring the links up to date tries again.
  • The button names the price it charges. A page may show a price written by hand beside the number it sells at, and the button is what is paid.

Sell a subscription

A catalogue row with "interval" set to week, month or year is sold as a subscription. Its price at Stripe is a recurring one, its payment link starts a subscription, and its Buy button says how often, such as Buy for £12.00 a month. Monthly and yearly at the same price are two offers, each with a link of its own. A row whose interval is anything else is not offered at all, and shows no button. The subscription is kept at Stripe, as orders are.

What Quilzo keeps, and what it never does

ThingWhere it lives
Card numbers, names, email and delivery addressesAt Stripe, collected by its checkout under its privacy notice. Never here.
OrdersAt Stripe. quilzo pay orders and Show the latest orders read the latest from Stripe when somebody asks; nothing is written down, and the audit log records that somebody looked, not who bought.
The Stripe keySealed in the store, read by the admin only, over a connection declared as the payments purpose so an isolated deployment can see and refuse it (see Isolated deployments).
The payment linksIn the store, read by the site. The confined site proves at start that it cannot write them, because a site that could would be able to send every Buy button to somebody else's checkout.

Say on the site's privacy page that Stripe takes the payments. A site built with Build a whole site has a privacy page to add it to.

Turn payments off

quilzo pay disable

One administrator can do it. The Buy buttons go at once, and every payment link is retired at Stripe, so a link somebody copied stops selling too. Orders stay at Stripe. Pages carrying listings change their ETag with the links, so a browser holding the page is not told it still has the current one.

Next