๐Ÿš€ Software ยท LARZ-201 · Session 2 of 8

Going Live: Real Payment Providers

Switch from the dev mock provider to Stripe, Paddle or PayPal, wire webhooks, and take real money safely.

⏱ 11 min read📅 Updated 2026-07-25📊 Code examples throughout

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.

More in this course

Course home → · Browse all courses →