vlq
vlq3mo ago

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"
No description
39 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
이실장
이실장3mo ago
The test environment disclosed in our documentation does not support foreign cards. There should be no issues if it's an actual contracted store.
vlq
vlqOP3mo ago
Thank you for quickly support. Is there any payment method (which payment method) and test information we can use in development period?
Kimoon Lee
Kimoon Lee3mo ago
Generally, you can use local card payment . Do you have any korean colleagues?
vlq
vlqOP3mo ago
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?
Ayaan이안
Ayaan이안3mo ago
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))
이실장
이실장3mo ago
v2에서도 1주일내로 지원될거에요
vlq
vlqOP3mo ago
Thank you very much!
Ayaan이안
Ayaan이안3mo ago
@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
vlq
vlqOP3mo ago
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", }); });
Ayaan이안
Ayaan이안3mo ago
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.
Ayaan이안
Ayaan이안3mo ago
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.
vlq
vlqOP3mo ago
Yes, We agree. We will try to implement something first. Thank you very much and look forward to hearing from you soon.
vlq
vlqOP3mo ago
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?
No description
vlq
vlqOP3mo ago
"you can use local card payment" => Does the sandbox system provide any local card to test?
Kimoon Lee
Kimoon Lee3mo ago
No you should use real card information for testing.
vlq
vlqOP3mo ago
It will be deducted money?
Ayaan이안
Ayaan이안3mo ago
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
vlq
vlqOP3mo ago
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?
이실장
이실장3mo ago
yes
vlq
vlqOP3mo ago
Can we test with a real card using a personal credential during development?
Ayaan이안
Ayaan이안3mo ago
Absolutely. You should do that way.
vlq
vlqOP3mo ago
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?
Ayaan이안
Ayaan이안3mo ago
You should test with a real Korean local card with the personal credentials not VISA
vlq
vlqOP3mo ago
in case of we have an actual contract with Toss as a corporate/company then we can test by a VISA card, right? @Ayaan이안
Ayaan이안
Ayaan이안3mo ago
Yes, you're correct. If you don't have a real Korean local card, just wait until _skipAuth is available in v2 🙂
vlq
vlqOP3mo ago
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이안
vlq
vlqOP3mo ago
i tried with option 3th
No description
vlq
vlqOP3mo ago
No description
vlq
vlqOP3mo ago
No description
vlq
vlqOP3mo ago
i'm not sure how to input card information to peform payment
이실장
이실장3mo ago
Ask for your Korean collegue for the test In Korea . we need real card to test.
Ayaan이안
Ayaan이안3mo ago
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.
vlq
vlqOP3mo ago
Thank you! Can we skip 3DS verification, mean that pay by card only without OTP? @Ayaan이안
Ayaan이안
Ayaan이안3mo ago
The popup window will not shown and it immediately calls the successUrl.
vlq
vlqOP3mo ago
Can we make visible by card only, and invisble other payment methods?
No description
Ayaan이안
Ayaan이안3mo ago
When you contract, yes you can But w/o the contract, not possible
vlq
vlqOP3mo ago
Thank you very much! We will share this information to our partner when preparing the contract with Toss
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.

Did you find this page helpful?