이진혁
TPToss payments 개발자 커뮤니티
•Created by 이진혁 on 6/18/2024 in #❓┃연동개발-문의
업체 사정으로 인해 결제를 일시 중지하였습니다.상점으로 문의하시기 바랍니다.
X-Tosspayments-Trace-Id : 7815b1595c2e586ccc4a9a72d48a9a6f
Response Body
{
"code": "PROVIDER_ERROR",
"message": "업체 사정으로 인해 결제를 일시 중지하였습니다.상점으로 문의하시기 바랍니다."
}
Response Header
{
"X-TossPayments-Trace-Id": "7815b1595c2e586ccc4a9a72d48a9a6f"
}
Request Body
{
"paymentKey": "morwo20240618183001HhQt1",
"orderId": "20240618_D6LXL05HHO",
"amount": 100
}
Request Headers
{
"authorization": "Basic bGl2Z***",
"user-agent": "",
"content-type": "application/json",
"accept-language": "ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7"
}
뭐가 문제인가요
16 replies
TPToss payments 개발자 커뮤니티
•Created by 이진혁 on 6/17/2024 in #❓┃연동개발-문의
[긴급][토스페이먼츠] API KEY 유출 가능성 안내
라는 매일이 왔는데
오류는 수정했습니다.
따로 조치할 게 있습니까?
4 replies
TPToss payments 개발자 커뮤니티
•Created by 이진혁 on 6/14/2024 in #❓┃연동개발-문의
토스 v1/payments/confirm 에러
const { TOSS_NAME, amount, orderId, paymentKey, paymentType } = req.body;
const TOSS_SECRET_KEY = process.env.TOSS_SECRET_KEY;
console.log(TOSS_NAME, amount, orderId, paymentKey, paymentType, TOSS_SECRET_KEY)
const BASIC_TOKEN = Buffer.from(
${TOSS_SECRET_KEY}:
, "utf-8").toString('base64'); // Base64 인코딩된 토큰 생성
const TOSS_RESPONSE = await fetch("https://api.tosspayments.com/v1/payments/confirm", { // TOSS Payments API 호출
method: "POST",
headers: {
Authorization: Basic ${BASIC_TOKEN}
,
"Content-Type": "application/json",
},
body: JSON.stringify({ amount, orderId, paymentKey, customerKey: orderId }),
});
const TOSS_DATA = await TOSS_RESPONSE.json();
console.log(TOSS_RESPONSE : ${JSON.stringify(TOSS_DATA)}
);
-----------
const {SUCCESS, TOSS_RESPONSE} = await fetch('/toss_check', {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ TOSS_NAME, amount, orderId, paymentKey, paymentType })
});
console.log("HOME", TOSS_RESPONSE)
출력 : HOME undefined
뭐가 문제인가요?27 replies
TPToss payments 개발자 커뮤니티
•Created by 이진혁 on 6/9/2024 in #❓┃연동개발-문의
js express로 결제승인 코드를 구성했는데 빈값이 넘어옵니다
router.post('/config', async (req, res) => {
const { amount, orderId, paymentKey } = req.body;
const BASIC_TOKEN = Buffer.from(
시크릿키:
, "utf-8").toString('base64')
const test = await fetch("https://api.tosspayments.com/v1/payments/confirm", {
method: "POST",
headers: {
Authorization: Basic ${BASIC_TOKEN}
,
"Content-Type": "application/json",
},
body: JSON.stringify({ amount, orderId, paymentKey, customerKey: orderId }),
});
console.log("\n\n\n" + JSON.stringify(test))
});6 replies
TPToss payments 개발자 커뮤니티
•Created by 이진혁 on 6/2/2024 in #❓┃연동개발-문의
토스 페이먼츠를 라이브 api키로 연동해서 결제를 진행했는데 돈이 출금되지 않습니다.
api키로 결제를 시도했는데 결제 후 이벤트는 진행되는데 계좌에서 돈이 출금되지 않는 오류가 있습니다
6 replies