• Stefy Lanza (nextime / spora )'s avatar
    Implement Task 5: Subscription renewal wallet integration · 8491b0be
    Stefy Lanza (nextime / spora ) authored
    - Update _renew_subscription() to check wallet first before payment method
    - Add wallet debit for renewal amount with transaction logging
    - Implement auto top up trigger when balance insufficient
    - Add renewal retry after successful auto top up
    - Maintain grace period and existing error handling
    - Add trigger_auto_topup function to scheduler.py
    - Add test cases for wallet renewal flow
    8491b0be
test_wallet_renewal.py 7.51 KB