Build a digital-goods storefront for one creator: files and licence keys, no physical inventory. Catalogue: products with a name, description, price, currency, and one or more attached files stored in S3-compatible object storage. Support a pay-what-you-want minimum and time-limited discount codes. Checkout: Stripe Checkout in hosted mode, so no card data touches the application. Create the session server-side with the product and price, and set an idempotency key. Handle fulfilment exclusively in the webhook handler, never on the success redirect — verify the signature, check the event has not already been processed, and only then grant access. Delivery: on a confirmed payment, create an order with the buyer's email, generate a signed download URL valid for 24 hours and a limited number of uses, and email it. The buyer can request a fresh link from a page that verifies their email by one-time code, so a lost email is not a support ticket. Files are never served from a public URL. Licence keys: for products marked as licensed, generate a key per order and expose a verification endpoint that a desktop app could call, returning valid, revoked or unknown. Store issuance and every verification attempt. Refunds and chargebacks: the charge.refunded and charge.dispute.created webhooks must revoke the entitlement, invalidate outstanding download links, and mark the licence key revoked. This is the part most storefront builds skip and it is why the entitlement table exists. Operator views: orders with search by email, resend delivery, manual revoke, an immutable event log, and a CSV export of orders. Tax: do not calculate, collect or remit VAT. Put a prominent note in the README and in the admin interface stating that the operator is the merchant of record and is responsible for their own tax obligations, including EU and UK VAT on digital goods, and that this is the specific reason platforms like Payhip exist. Out of scope: physical products, shipping, affiliate tracking, a course player, and any marketplace or discovery surface.