feat(payment): Integrate Stripe API and refactor payment flow

- Add new stripe_api.py module with StripePaymentAPI class and payment retry logic
- Import Stripe payment module in auto_gpt_team.py with graceful fallback handling
- Refactor run_payment_flow() to extract form filling logic into _fill_payment_form()
- Simplify error handling by returning structured tuples (success, error_type, error_msg)
- Remove redundant comments and streamline selector logic for payment form elements
- Improve code maintainability by separating concerns between form filling and flow orchestration
- Add STRIPE_API_AVAILABLE flag to track payment module availability at runtime
This commit is contained in:
2026-01-30 09:57:55 +08:00
parent ad03fab8e9
commit 11395bf1ba
3 changed files with 992 additions and 477 deletions

File diff suppressed because it is too large Load Diff