feat(server+web+desktop): Phase 3.2-B Payple 결제 연동 + 대시보드 Premium 상태 표시
Payple PG 연동: - _shared/payple.ts: Payple API 래퍼 (auth/billing/cancel/deleteBillingKey) - payple-checkout Edge Function: 빌링키 결제 + 구독 활성화 - payple-webhook Edge Function: 결제완료/취소 이벤트 - payple-manage Edge Function: 구독 취소 (빌링키 해지) - DB migration: payment_provider + payple_payer_id + payple_pay_oid - 웹 billing 페이지: Payple JS SDK 결제창 + 관리 버튼 (Stripe 대체) - Electron LicenseModal: shell.openExternal → 웹 결제 페이지 대시보드 Premium 상태: - CrtDisplay services에 PREMIUM LLM LED 추가 - 백엔드 인디케이터 카드 (Local/Premium) + 티어 카드 - 사용량 섹션: 전 티어 표시 + 모델별 Premium 쿼터 - 12개 locale × 14개 i18n 키
This commit is contained in:
parent
b8cb665264
commit
c9baf031c9
27 changed files with 1318 additions and 98 deletions
|
|
@ -476,6 +476,8 @@ const electronAPI = {
|
|||
invoke<UsageQuota[]>(IPC_CHANNELS.LICENSE.GET_ALL_USAGE),
|
||||
getTierComparison: () =>
|
||||
invoke<TierComparison[]>(IPC_CHANNELS.LICENSE.GET_TIER_COMPARISON),
|
||||
openBilling: (params: { tier: 'pro' | 'pro_plus' }) =>
|
||||
invoke<void>(IPC_CHANNELS.LICENSE.OPEN_BILLING, params),
|
||||
onUpgradePrompt: (cb: (e: UpgradePromptEvent) => void): Unsubscribe =>
|
||||
on(IPC_CHANNELS.LICENSE.UPGRADE_PROMPT, cb),
|
||||
onTierChanged: (cb: (e: LicenseInfo) => void): Unsubscribe =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue