Checkout
This till is not connected. There is no payment processor behind this page, so nothing here can take your money and nothing will be printed. That is deliberate: a storefront that fakes a checkout is worse than one that admits it has not got one.
What has to be wired
- Payment. A Stripe Checkout Session built from the cart, one line item per edition, with the ladder applied server-side rather than trusted from the browser.
- The press. A
checkout.session.completedwebhook that files one print job per parcel with a print-on-demand API, and mails the EPUB links. The working reference in this repository isDINOROOST/site/api/_lib/lulu.js.
What is still unverified
Trade terms in site_content.py are PROPOSALS: the print specification, the price ladder and the shipping table have not been checked against a print quote, and the price of a printed copy now has to carry the ebook and the audiobook that come with it. No title in this catalogue carries an ISBN.
Print-ready interiors and full-bleed wrap covers with spine widths do not exist
yet either — covers/ holds the front jackets, not print files.