| 12345678910111213141516171819202122232425 |
- // 토스페이먼츠 V2 충전 응답 타입
- export type TossCreateOrderResponse = {
- orderID: string;
- orderName: string;
- /** VAT 포함 최종 결제 금액 (정수) */
- amount: number;
- /** 충전되는 캐시 (VAT 제외) */
- pointAmount: number;
- /** 부가세 (10%) */
- vatAmount: number;
- clientKey: string;
- /** 회원별 UUID — widgets({ customerKey }) 초기화에 사용 */
- customerKey: string;
- };
- export type TossConfirmResponse = {
- success: boolean;
- /** PaymentOrder.Status 문자열 (Paid / WaitingDeposit / Failed / NeedsReconciliation ...) */
- status: string;
- /** 충전된 캐시 (가상계좌 입금 대기 시 0) */
- pointAmount: number;
- message: string|null;
- paidAt: string|null;
- };
|