Online Payments & TipJar Integration
The default full build (payments Cargo feature) includes pure-Rust cryptographic payment gateways for WeChat Pay v3, Alipay, and Stripe — with no external billing microservice required.
End-to-End Fulfillment Guarantees
- Idempotent Order State Machine: Orders transition strictly forward (
Pending -> Paid -> Fulfilled); - Asymmetric Webhook Verification: Every
/api/pay/*/notifycallback verifies provider signatures and exact order amounts on the server; - Transactional Entitlement Granting: Verified callbacks mark the order paid and insert the user's course or Pro membership entitlement inside a single PostgreSQL transaction;
- Reader TipJar (
TipJar): Blog posts and podcast episodes display a lightweight support card when compiled withpayments, and strip all payment routes and UI cleanly inbasic,accounts, andcoursebuilds.

