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"

38 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?
We apologise for the inconvenience, however currently we don't provide any test/mock card credentials due to the regulations and technical limitations.
The only way to test is asking your Korean colleague or use _skipAuth parameter in Version 1 SDK (Not supported in V2 yet (will be supported within a week))
v2에서도 1주일내로 지원될거에요
Thank you very much!
@vlq He(@이실장) said that you can use _skipAuth in V2 within a week. If you want to integrate with V2, you can wait until next week or ask your Korean colleague
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",
});
});
https://docs.tosspayments.com/en/index Here is the document link written in English, with the _skipAuth parameter description of v1 SDK.
To learn more about _skipAuth, please check the FAQ "Do I need a Korean payment method for testing?"
International merchants guide | 토스페이먼츠 개발자센터
Understand the features and flow of Korean card payments and integrate Toss Payments.
And personally I don't recommend you to downgrade to V1 as it is complete rewriting the process.
(UI is same, but as a code level, there're huge difference)
I suggest you to wait until we let you know _skipAuth parameter is also available in V2. It will be very soon, and we promise you that we will let you know when it's available.
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?
You won't be charged for the test if you used test key.
If you used the live key, regardless it is the test purpose, you will be charged and we recommend you to cancel the payment within a day
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?
Absolutely. You should do that way.
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?
You should test with a real Korean local card with the personal credentials not VISA
in case of we have an actual contract with Toss as a corporate/company then we can test by a VISA card, right? @Ayaan이안
Yes, you're correct.
If you don't have a real Korean local card, just wait until _skipAuth is available in v2 🙂
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.
This is known as 3DS verification.
Go to "일반결제" If you don't have an app. Then, you will be prompt to install some security softwares including keylog prevention, then you will be able to type the card number. You may need to prepare the Korean phone also as they sometimes ask you to get a OTP code by the SMS or call.
Thank you! Can we skip 3DS verification, mean that pay by card only without OTP? @Ayaan이안
The popup window will not shown and it immediately calls the successUrl.
Can we make visible by card only, and invisble other payment methods?

When you contract, yes you can
But w/o the contract, not possible
Thank you very much! We will share this information to our partner when preparing the contract with Toss