diff options
| author | Ben Sima <ben@bsima.me> | 2025-11-12 20:16:36 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bsima.me> | 2025-11-12 20:16:36 -0500 |
| commit | 9394a859af58c1ffc10190d43b19832c9b8d026b (patch) | |
| tree | 9b9d4b0a98487890a2c899a9698a35bbc748a165 /Biz/Dragons.hs | |
| parent | 3c3eec2b58231bb3e0af58821401a69a994721ac (diff) | |
Fix subscription webhook to handle Stripe API version differences
- Use billing_cycle_anchor or start_date as fallback for period start -
Calculate period end by adding 1 month if not provided - Handles newer
Stripe API versions that don't include current_period_* fields - Fixes
issue where subscription.created webhook couldn't update user plan -
Works with Stripe API Version 2025-10-29.clover and newer
Diffstat (limited to 'Biz/Dragons.hs')
0 files changed, 0 insertions, 0 deletions
