Configure PayPal integration and cart checkout error display

This commit is contained in:
Zach committed 2026-12-01 04:20:38 +00:00
1 parent 62065828e1
commit cf07fc5d9b
98 files changed
+1430 -281

No files matched your search

+30
View File
@@ -54,3 +54,33 @@ Open `http://127.0.0.1:8000/admin/`. Local mode uses SQLite. Run `python manage.
## Updating Studio v1.0
Keep the same project directory, `.env`, `secrets/`, `data/`, and Docker volumes. After making a database backup, unpack the updated project files into that directory and run `docker compose up -d --build`. Startup applies the migration. It locks the displayed title to SLUMP X LAND and keeps existing chapters, editorial content, and site settings.
### Pages, chapter samples and Fan Club checkout
- **Pages → Manage pages**: edit a page title, slug, navigation label/placement,
local destination, or plain-text body. Clear the destination to publish an
original content page. Select a published row and use **Use the selected
published page as homepage** to switch. **Restore the Sol’Terra map as homepage**
restores the map; the map is always available at `/map/`.
- **Chapters**: set **Chapter price (USD)** to $0.50 or more to enable a Stripe
one-time purchase. A paid order unlocks that chapter in the reader for the
signed-in purchaser. A physical book does not automatically unlock the reader.
- **Shop products**: select a **Sample chapter** on a listing. The storefront
links to that published chapter. The newest three published chapters are free in full; older chapters require access.
A physical product with that association appears in the reader's purchase options.
- The migration creates two inactive monthly Fan Club product records: **Early
Access** and **Studio Vault**. Replace the placeholder price with your real
monthly price and optionally set the matching same-mode Stripe recurring
Price ID before making each product active. If using a Price ID, match the
displayed Studio price to the amount charged by Stripe. Both tiers unlock the
published chapter library; member posts still follow tier requirements.
- In Stripe create an endpoint at
`https://slumpxland-official.com/shop/webhooks/stripe/` for
`checkout.session.completed`, `checkout.session.async_payment_succeeded`,
`customer.subscription.updated`, `customer.subscription.deleted`,
`invoice.paid`, `invoice.payment_failed`, and `charge.refunded`.
Set the new endpoint's signing secret in the live `.env` as
`SLX_COMMERCE_STRIPE_WEBHOOK_SECRET`. The existing Stripe API key and
`SLX_STRIPE_ORIGIN` can be reused. A separate endpoint signing secret keeps
the existing legacy checkout endpoint independent. Test in Stripe test mode
before accepting live payments, and don't put payment keys into this ZIP.