안녕하세요

const paymentSuccessController = async (req, res) => {
try {
const userId = req.userId;
const { orderId, amount, paymentKey } = req.query; // usePoint added
const { usePoint, letterId } = req.body;
const response = await axios.post(
"https://api.tosspayments.com/v1/payments/confirm",
{
orderId,
amount,
paymentKey,
},
{
headers: {
Authorization:
"Basic " + Buffer.from(secretKey + ":").toString("base64"),
"Content-Type": "application/json",
},
responseType: "json",
}
);

code: 'NOT_FOUND_PAYMENT_SESSION',
message: '.'
요 db후 failUrl...
Was this page helpful?