Toss Payment widget issue
Hi Toss Society,
We are implementing payment Widget in our site by using Javascript SDK method. We have Initialize the Toss payments SDK, created payment instance and followed the below document as mentioned. However, once once we choose any payment methods and proceed further er ate seeing below error. Could you please assist us on this?
https://docs.tosspayments.com/guides/v2/payment-widget/integration?backend=java
연동하기 | 토스페이먼츠 개발자센터
토스페이먼츠의 간편한 결제 연동 과정을 한눈에 볼 수 있습니다. 각 단계별 설명과 함께 달라지는 UI와 코드를 확인해보세요.
23 Replies
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) :
- 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요.
* 주말/공휴일에는 답변이 늦을 수 있어요.
Is it only occured on specific payment method?
Can you share us the orderId that you used to request payments?
Thanks 이실장 for looking into it. It is happening for all three payments options that we are implementing (EasyPayment, CreditCard, VirtualBankTransfer), below are some of the orderIds -
00000607, 00000606
I believe your chrome has some extentions that effects html and js
Please delete related extentions then try it again.
I have used chrome incognito and safari as well now I am getting below error -
Do not use Chrome Incognito Mode.
Toss Payments and card companies, including easy-pay companies not supporting the chrome incognito.
The way you can test Toss Payments service without any extension's intercept is go to chrome://settings/reset and click "Reset".
It disables the extensions so it ensures there's no extension errors such you have experienced
Hi @Ayaan - I am getting the same error in regular chrome after resetting my setting as mentioned, Would you be able to join for a quick call on this in order to resolve the issue?
is it naverpay?
Naverpay's testbed server is unstable, please try it on live environment or with other payment methods.
yes, Naverpay. We are in development phase for Toss Payment, this feature has not on live for our site. Let me try other payment options.
The “TossPay” will work correctly on the test env.
If you really need to test the easypay please try with TossPay
Hi Team,
we are able to place order using bank transfer. However, we have a concern that when we close the payment window it should redirected the cancel url but is not happening. Cloud you assist on this? or let us know when fail URL will execute.
In Mobile devices, when you close the payment window, you can get failurl but not in PC/.
How to check Fail scenario in PC?
You can check by Promise catch() function
requestPayment() function is Promise, and it rejects when payment window is closed
.catch(function (error) {
// 에러 처리: 에러 목록을 확인하세요
// https://docs.tosspayments.com/reference/error-codes#failurl로-전달되는-에러
if (error.code === "USER_CANCEL") {
// 결제 고객이 결제창을 닫았을 때 에러 처리
}
});
API 에러 코드 | 토스페이먼츠 개발자센터
토스페이먼츠 API 사용할 때 발생할 수 있는 에러를 살펴보세요.
please provide the details for testing credit card and easy payment option in test account and any document is there?
@ramkumar sorry we don't provide any testing credit card details. You should use a real credit card.
Hi Team,
When doing the Bank transfer it will show payment method and option for virtual account. above attached the screenshot first and instead of directly show the payment options (screenshot 2). is it possible?
No it is not possible
if you are not using the payment widget, you can call the 2nd window directly.
ok please share other option to achieve without payment widget
you can check it.
가상계좌 결제창 연동하기 | 토스페이먼츠 개발자센터
고객이 원하는 은행으로 가상계좌를 발급한 뒤 입금 받아 결제하는 방식입니다. 이 가이드를 읽고 나면 토스페이먼츠 가상계좌 결제창에서 가상계좌를 발급받고, 입금 결과를 웹훅으로 받을 수 있어요.
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.