mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Backend: - Add ProviderStatus* constants (pending/paid/success/failed/refunded) - Add DefaultLoadBalanceStrategy, ConfigKeyPublishableKey constants - GetBasePaymentType: use Type* constants instead of raw strings - Webhook handler: use payment.Type* for provider keys, extract webhookLogTruncateLen constant - All 4 providers: replace status string literals with ProviderStatus* Frontend: - All catch blocks: add `: unknown` type annotation - stores/payment.ts: replace `any` with proper type for plan parsing - PaymentProviderDialog: replace `as any` with `as SelectOption[]`