ebook#
“Cape Town for First Timers 2026” eBook sales via Stripe checkout with R2-based file distribution.
Models#
Model |
Description |
|---|---|
|
Stripe checkout session tracking with product code and payment status |
URL Routes#
Path |
View |
Description |
|---|---|---|
|
|
Product landing page with Stripe pricing |
|
|
POST: create Stripe checkout session |
|
|
Post-purchase success page |
|
|
Cancellation page |
|
|
Download via session_id or tier subscription |
Download Flow#
Key Design Decisions#
Dual access path: Users can buy the eBook directly or access it via a premium-tier subscription (
includes_ebooks = True).R2 presigned URLs provide time-limited download links without proxying the file through Django.