feat(payments): implement subscription creation with initial payment
- Create SubscriptionManager class with create_subscription method - Validate tier and payment method before creating subscription - Calculate amount based on billing cycle (monthly/yearly) - Check for existing active subscription - Calculate period dates with immediate start - Charge payment via fiat (card/PayPal) or crypto - Create subscription record and update user tier - Add comprehensive test coverage
Showing
Please
register
or
sign in
to comment