⬅️결제정보 사전 검증하기
// 사용자에게 결제 화면을 보여주기 전에 서버 코드에서
await axios({
url: "https://api.iamport.kr/payments/prepare",
method: "post",
headers: { "Content-Type": "application/json" },
data: {
merchant_uid: "...", // 가맹점 주문번호
amount: 420000, // 결제 예정금액
}
});Last updated
Was this helpful?
