Files
sb-front/src/api/billingApi.js
T
ByungCheol 823bdcafcf
CI / build (push) Failing after 15m11s
feat: 업그레이드 화면 인앱 결제 — Android 구매, PC는 앱 유도
- billingApi(products/verifyGoogle), native/billing(테스트 구매 토큰 생성)
- Android 앱: 상품(월간/연간) 구매 버튼 → 검증 → 프로필 갱신
- PC(웹/데스크톱): 구매 대신 앱 다운로드 안내
- 프리미엄 이용 중이면 만료일 표시

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 15:12:59 +09:00

14 lines
335 B
JavaScript

import http from './http'
// 백엔드 /api/billing 엔드포인트와 매핑
export const billingApi = {
// 구독 상품 목록
products() {
return http.get('/billing/products')
},
// Google Play 구매 검증 → 멤버십 부여
verifyGoogle(payload) {
return http.post('/billing/google/verify', payload)
},
}