Updates the payments plan with PayPal and the decisions since #26.
docs/payments.md
PayPal (new section): sold exactly as priced, $1.99 a month or $19.99 a year per room, as one subscription with a room count.
Setup: the product, plans and webhook are made through PayPal's API, and their IDs go in the config. The sandbox ones exist already.
Checkout: a redirect. The subscription carries the account (custom_id = the person's sub) and the VAT override.
Webhook: verified by PayPal's own verify-webhook-signature; the subscription is then fetched again from PayPal, plus a nightly sync. A status table says what each PayPal state grants.
Tax:
EU VAT: non-Union OSS, with VAT included in the price. Each sale records two pieces of country evidence (the buyer's choice and their IP's country); if they disagree, no sale. The service makes the quarterly report itself.
UK: handled once registered with HMRC.
US: state thresholds, with sales reported per state.
Where it sells first: outside the EU and the UK until those registrations take effect.
No website of its own: the app's pages use the API. The browser only passes through /link/patreon, /checkout/paypal and /manage/<source>, which return only to listed addresses.
Checkout elements (later): our own checkout as iframes from payments.t5de.dev, so the processor doesn't show and Patreon can go.
Environments: staging uses PayPal's sandbox and the locked staging hub. Patreon has no test mode, so both of its redirect URIs are listed.
Goals, the processors table, lapses, phases (Patreon, then PayPal, then elements) and "before taking money" updated to match.
docs/music.md: the paid tier lists both ways to pay, plus the later checkout.
Updates the payments plan with PayPal and the decisions since #26.
**docs/payments.md**
- **PayPal (new section):** sold exactly as priced, $1.99 a month or $19.99 a year per room, as one subscription with a room count.
- **Setup:** the product, plans and webhook are made through PayPal's API, and their IDs go in the config. The sandbox ones exist already.
- **Checkout:** a redirect. The subscription carries the account (`custom_id` = the person's `sub`) and the VAT override.
- **Webhook:** verified by PayPal's own `verify-webhook-signature`; the subscription is then fetched again from PayPal, plus a nightly sync. A status table says what each PayPal state grants.
- **Tax:**
- **EU VAT:** non-Union OSS, with VAT included in the price. Each sale records two pieces of country evidence (the buyer's choice and their IP's country); if they disagree, no sale. The service makes the quarterly report itself.
- **UK:** handled once registered with HMRC.
- **US:** state thresholds, with sales reported per state.
- **Where it sells first:** outside the EU and the UK until those registrations take effect.
- **No website of its own:** the app's pages use the API. The browser only passes through `/link/patreon`, `/checkout/paypal` and `/manage/<source>`, which return only to listed addresses.
- **Checkout elements (later):** our own checkout as iframes from `payments.t5de.dev`, so the processor doesn't show and Patreon can go.
- **Environments:** staging uses PayPal's sandbox and the locked staging hub. Patreon has no test mode, so both of its redirect URIs are listed.
- Goals, the processors table, lapses, phases (Patreon, then PayPal, then elements) and "before taking money" updated to match.
**docs/music.md:** the paid tier lists both ways to pay, plus the later checkout.
PayPal subscriptions sell exactly the pricing ($1.99 a month or $19.99 a year
per room, with a quantity). We're the seller there, so the service works out
EU VAT (included in the price, two pieces of country evidence, a quarterly
One Stop Shop report); it sells outside the EU and the UK until those
registrations take effect.
The service has no website of its own: the app's pages use its API, and the
browser goes through it only for redirects (link Patreon, PayPal checkout,
manage). Later, our own checkout elements embedded from payments.t5de.dev,
so people don't see which processor takes the payment. Staging uses PayPal's
sandbox and the locked staging hub.
dhkatz
merged commit a6337f09b6 into main2026-11-20 23:38:00 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Updates the payments plan with PayPal and the decisions since #26.
docs/payments.md
custom_id= the person'ssub) and the VAT override.verify-webhook-signature; the subscription is then fetched again from PayPal, plus a nightly sync. A status table says what each PayPal state grants./link/patreon,/checkout/paypaland/manage/<source>, which return only to listed addresses.payments.t5de.dev, so the processor doesn't show and Patreon can go.docs/music.md: the paid tier lists both ways to pay, plus the later checkout.