Doklofinly-web
Dok HubLive DocsLive Reviewsoon
Read-only demoOpening in September

You’re browsing a read-only sample workspace — a Korean fintech settlement app, read by Doklo and reviewed by a person. Nothing here can be changed.

Dok Hub

14 doks · 5 domains

3 Doks are waiting for review.

All 14Needs review 3Active 11Stale 3
결제
PAY-CHECKOUT결제하기PAY-REFUND환불 요청drift
운영자
ADMIN-BANNER배너 관리ADMIN-MEMBER회원 관리
인증
AUTH-BIZVERIFY사업자 인증AUTH-SIGNIN로그인driftAUTH-SIGNUP회원가입
정산
BANK-ACCOUNT정산 계좌 등록SETTLE-DASHBOARD매출 대시보드SETTLE-REPORT정산 리포트SETTLE-SCHEDULE정산 주기 설정TAX-INVOICE세금계산서 발행
비용·알림
NOTIFY-SETTINGS알림 설정driftUPLOAD-RECEIPT영수증 업로드
PAY-REFUNDactivestale — code movedcriticalwebreviewed & approved by a person

환불 요청

고객이 결제한 주문의 전체 또는 일부 금액을 환불 요청하고, 판매자가 승인하면 결제 취소가 실행되는 기능이다. 환불된 금액은 다음 정산 회차에서 차감된다.

v1confidence 0.913 steps · 3 rules · 2 criteria#payment #refund #order
approved 2026-08-05

Drift detectedapp/api/payments/refund/route.ts, lib/payments/refund-policy.ts, lib/settlements/adjustments.ts — This dok may no longer match the code beneath it.

In your own workspace this is one button: Doklo re-reads the files that moved and rewrites the document from them, and the result comes back as a draft for you to approve. See what this drift does to the published page →

User flow

Hub trust

14doks
65source anchors
0hallucinated
91%avg confidence

Agents query this hub

mcp · live
agent › doklo.get_dok("PAY-REFUND")

← 환불 요청
  3 steps · 3 rules · 2 criteria
  is_stale: true
  anchors: 5 files
search_doksget_doklist_doksis_stale

Cursor and Claude Code read a Hub like this one instead of a stale README — answers cite doks, doks cite code.

3 steps
1
환불할 주문과 사유를 선택하고자 한다
→ 환불 가능 금액과 사유 입력란이 표시된다
userdesktop · clickmobile · tap
2
요청된 환불을 검토하고 승인하고자 한다
→ 환불이 승인되고 PG사에 취소가 요청된다
ownerdesktop · clickmobile · taprequires: 환불 요청이 접수된 상태여야 한다
3
취소 결과를 정산 내역에 반영하고자 한다
→ 환불 금액이 다음 정산 회차에서 차감 항목으로 기록된다
systemall · auto

Business rules 3

BR-01환불 요청 금액은 결제 금액에서 이미 환불된 금액을 뺀 잔액을 넘을 수 없다validation
BR-02정산이 이미 완료된 주문은 부분 환불만 허용한다restriction
BR-03환불 사유는 기록에 남으며 승인 후에는 수정할 수 없다policy

Acceptance criteria 2

✓잔액을 넘는 금액으로 환불을 요청하면 금액 오류가 표시되고 요청이 접수되지 않는다AC-PAY-REFUND-01 · traces BR-PAY-REFUND-01
✓판매자가 승인하면 결제가 취소되고 다음 정산 회차에 차감으로 잡힌다AC-PAY-REFUND-02 · traces BR-PAY-REFUND-01, BR-PAY-REFUND-02

Source anchors 5 files

✓app/(shop)/orders/[orderId]/refund/page.tsx
✓app/api/payments/refund/route.tschanged
✓lib/payments/refund-policy.tschanged
✓lib/settlements/adjustments.tschanged
✓server/jobs/refund-reconcile.ts

anchors are injected deterministically from the import graph — the model never invents them