tdb
TPToss payments 개발자 커뮤니티
•Created by tdb on 10/11/2024 in #❓┃연동개발-문의
가상계좌 취소 오류: { code: 'INVALID_BANK', message: '유효하지 않은 은행입니다.' } 질문드립니다.
서버측에서 난 오류입니다.
toss_pay_cancel error [Error: Request failed with status code 400
0|tdb-api | at createError (/home/ubuntu/workspace/TDB-BACKEND/node_modules/axios/lib/core/createError.js:16:15)
0|tdb-api | at settle (/home/ubuntu/workspace/TDB-BACKEND/node_modules/axios/lib/core/settle.js:17:12)
0|tdb-api | at IncomingMessage.handleStreamEnd (/home/ubuntu/workspace/TDB-BACKEND/node_modules/axios/lib/adapters/http.js:269:11)
0|tdb-api | at IncomingMessage.emit (node:events:531:35)
0|tdb-api | at IncomingMessage.emit (node:domain:488:12)
0|tdb-api | at endReadableNT (node:internal/streams/readable:1696:12)
0|tdb-api | at processTicksAndRejections (node:internal/process/task_queues:82:21)
0|tdb-api | ] {
0|tdb-api | config: {
0|tdb-api | url: 'https://api.tosspayments.com/v1/payments/*******/cancel',
0|tdb-api | method: 'post',
0|tdb-api | data: '{"cancelReason":"","cancelAmount":1000,"refundReceiveAccount":{"bankCode":"23","accountNumber":"52720015182","holderName":"문준호"}}',
0|tdb-api | headers: {
0|tdb-api | Accept: 'application/json, text/plain, /',
0|tdb-api | 'Content-Type': 'application/json',
0|tdb-api | Authorization: 'Basic *=',
0|tdb-api | 'User-Agent': 'axios/0.21.4',
0|tdb-api | 'Content-Length': 135
0|tdb-api | },
토스 페이먼츠 api 로그를 보면
{
"currency": null,
"cancelAmount": 1000,
"cancelReason": "",
"taxFreeAmount": null,
"taxExemptionAmount": 0,
"cancelRequestId": null,
"taxAmount": null,
"refundableAmount": null,
"refundReceiveAccount": {
"bank": "",
"accountNumber": "527**5182",
"holderName": "문준호"
},
"isDividedPayment": false,
"refundMid": null
}
"bank": "" 은행이 계속 나오질 않네요. 왜 이런걸까요?
18 replies
TPToss payments 개발자 커뮤니티
•Created by tdb on 9/30/2024 in #❓┃연동개발-문의
브랜드 페이 카드 등록 클릭 시, 404 에러
75 replies