Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

결제 환불 타입이 문서와 다릅니다 #9

Open
guhyeon opened this issue Jun 4, 2022 · 0 comments
Open

결제 환불 타입이 문서와 다릅니다 #9

guhyeon opened this issue Jun 4, 2022 · 0 comments

Comments

@guhyeon
Copy link

guhyeon commented Jun 4, 2022

imp_uid 또는 merchant_uid가 있으면되는데, 옵션값까지 전부 필수로 넣어야하네요. 타입 수정 필요합니다.

// STEP3아임포트 서버에 환불 요청하기
const iamPaymentResponse = await Payments.cancel({
//환불 unique key(imp_uid 또는 merchant_id)
merchant_uid: merchantUid,
imp_uid: '',
//환불 금액(amount)
amount: 0,
//환불 가능 금액(checksum)
checksum: 0,
reason: '',
refund_account: '',
refund_bank: '',
refund_holder: '',
tax_free: 0,
}).request(iamport);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant