Going Live: Real Payment Providers
Switch from the dev mock provider to Stripe, Paddle or PayPal, wire webhooks, and take real money safely.
In development a keyless mock provider drove checkout. To take real payments, pass a real provider โ your routes don't change.
from larz.providers import StripeProvider
money.enable(app, provider=StripeProvider(
api_key="sk_live_...", webhook_secret="whsec_..."),
base_url="https://yourapp.com")Webhooks
Point the provider's webhook at /larz/webhook/<provider>. Larz verifies the signature, grants the entitlement, and records the invoice โ no webhook code.
Go-live checklist
- Real provider keys from env vars; HTTPS everywhere.
- Webhook URL configured; signature verified automatically.
- Test in the provider's test mode before flipping to live.
- Swap providers (Paddle, PayPal, Paystackโฆ) without touching routes.