Error when generating a payment request
We've tried to develop with a individual credential (Client Key: test_ck_kYG57Eba3GPdBK9WPKxEVpWDOxmA) before we
have a contract.
We got below error when trying to generate a payment request (perform checkout)
Please help to check details in screenshot attachment
error
:
{code: "COMMON_ERROR", message: "처리 중 오류가 발생했습니다", data: {,…}}
code
:
"COMMON_ERROR"
data
:
{,…}
failUrl
:
"http://localhost:4000/fail.html?code=COMMON_ERROR&message=%EC%B2%98%EB%A6%AC%20%EC%A4%91%20%EC%98%A4%EB%A5%98%EA%B0%80%20%EB%B0%9C%EC%83%9D%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4&orderId=MC4zNzgzMzk4NDU2MjI1"
message
:
"처리 중 오류가 발생했습니다"
result
:
"ERROR"

22 Replies
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) :
- 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요.
* 주말/공휴일에는 답변이 늦을 수 있어요.
The test environment disclosed in our documentation does not support foreign cards. There should be no issues if it's an actual contracted store.
Thank you for quickly support. Is there any payment method (which payment method) and test information we can use in development period?
Generally, you can use local card payment . Do you have any korean colleagues?
Yes, our partner in Korea is preparing the contract but take time. We need to start the development to integrate with Toss payment first. How can we test in development?
v2에서도 1주일내로 지원될거에요
Thank you very much!
Could you please share the v1 document link so we can try first?
Intheory, i should change from <script src="https://js.tosspayments.com/v2/standard"></script> to <script src="https://js.tosspayments.com/v1"></script>
Then where we should set _skipAuth in somewhere?
button.addEventListener("click", async function () {
// 결제를 요청하기 전에 orderId, amount를 서버에 저장하세요.
// 결제 과정에서 악의적으로 결제 금액이 바뀌는 것을 확인하는 용도입니다.
await widgets.requestPayment({
orderId: generateRandomString(),
orderName: "토스 티셔츠 외 2건",
successUrl: window.location.origin + "/success.html",
failUrl: window.location.origin + "/fail.html",
customerEmail: "customer123@gmail.com",
customerName: "김토스",
customerMobilePhone: "01012341234",
});
});
Yes, We agree. We will try to implement something first. Thank you very much and look forward to hearing from you soon.
Good morning! Please let us know in which case we can test with foreign card? Need to have an actual contract and then we can integrate and test with V2?

"you can use local card payment" => Does the sandbox system provide any local card to test?
No you should use real card information for testing.
It will be deducted money?
So, i see that Toss does not provide any test cards whether we have an actual contract with Toss as a corporate/company or use a personal credential during development?
yes
Can we test with a real card using a personal credential during development?
please scroll up to my first question when i try to generate a new payment request and then choose the pay by card -> choose VISA option. But got error. So, which option i can choose to test pay by a card?
in case of we have an actual contract with Toss as a corporate/company then we can test by a VISA card, right? @Ayaan이안
Assuming, we have an Hana card (we don't have any mobile app). So, how can we try a payment with this card by inputing card information on the page? @Ayaan이안
i tried with option 3th



i'm not sure how to input card information to peform payment
Ask for your Korean collegue for the test
In Korea . we need real card to test.
Thank you! Can we skip 3DS verification, mean that pay by card only without OTP? @Ayaan이안
Can we make visible by card only, and invisble other payment methods?

Thank you very much! We will share this information to our partner when preparing the contract with Toss
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.