v2 api 결재요청시 에러 재현하는 방법



.
v2서 TossPayments-Test-Code

curl --request POST \
--url https://api.tosspayments.com/v1/payments/key-in \
--header 'Authorization: Basic \
--header 'Content-Type: application/json' \
--header 'TossPayments-Test-Code: INVALID_CARD_EXPIRATION' \


.

await payment.requestPayment({
method: "CARD", //
amount,
orderId: generateRandomString(),
orderName: "외 2",
successUrl: window.location.origin + "/public/payment/success.html",
failUrl: window.location.origin + "/public/fail.html",
customerEmail: "customer123@gmail.com",
customerName: "",
customerMobilePhone: "01012341234",
card: {
useEscrow: false,
flowMode: "DEFAULT",
useCardPoint: false,
useAppCardOnly: false,
},
});


.
.
Was this page helpful?