-
Your Name authored
- Add upgrade_subscription() method to SubscriptionManager - Calculate prorated charge based on unused time in billing period - Formula: new_price - (old_price × unused_fraction) - Update subscription tier immediately while keeping same period end date - Charge prorated amount via existing payment method - Add comprehensive tests for proration calculations - Test edge cases: no subscription, invalid tier, accurate proration math
00c73c80
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| __init__.py | ||
| test_migrations.py | ||
| test_monitor.py | ||
| test_paypal.py | ||
| test_pricing.py | ||
| test_stripe.py | ||
| test_subscription.py | ||
| test_wallet.py |