Website Backend APIs
POST /api/checkout
Creates a checkout order using customer email and active product configuration.
POST /api/paypal/capture
Captures a PayPal order and creates delivery records (including tokenized download links).
POST /api/orders
Queries order history by email.
GET /api/download?token=...
Resolves a secure token and streams source package download from R2.
Runtime Requirements
- D1 binding:
d1_jb - R2 binding:
r2_jb - Required env vars:
PAYPAL_CLIENT_ID,PAYPAL_CLIENT_SECRET
Notes
This page intentionally summarizes API contracts used by this project’s Pages Functions implementation.