Deeman
032fe8d86c
feat(billing): B2 — Stripe payment provider implementation
billing/stripe.py exports the same interface as paddle.py:
- build_checkout_payload() → Stripe Checkout Session with automatic_tax
- build_multi_item_checkout_payload() → multi-line-item sessions
- cancel_subscription() → cancel_at_period_end=True
- get_management_url() → Stripe Billing Portal session
- verify_webhook() → Stripe-Signature header verification
- parse_webhook() → maps Stripe events to shared format:
checkout.session.completed → subscription.activated / transaction.completed
customer.subscription.updated → subscription.updated
customer.subscription.deleted → subscription.canceled
invoice.payment_failed → subscription.past_due
All API calls have 10s timeout and max 2 retries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 15:48:08 +01:00
..
2026-02-28 18:50:51 +01:00
2026-03-03 15:48:08 +01:00
2026-03-02 09:40:52 +01:00
2026-03-03 15:37:29 +01:00