Giwon
Giwon2mo ago

김차장님 냥과장님

월요일 토스페이 관련 피드백 주신다고 했는데 어떻게 되었을까요?
73 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
김차장
김차장2mo ago
확인중입니다
Giwon
GiwonOP2mo ago
넵 알겠습니다
김차장
김차장2mo ago
@Giwon 확인이 좀 늦어졌네요 지금 시도 가능하실까요? 제가 직접 귀사 상점 테스트키로 빌링키 발급까지 성공했습니다
Giwon
GiwonOP2mo ago
잠시만요 개발자도 초대하겠습니다 @henilkevadiya Hello
henilkevadiya
henilkevadiya2mo ago
I will check it now
Giwon
GiwonOP2mo ago
Lets check this
henilkevadiya
henilkevadiya2mo ago
{ "code": "ERROR_WITH_MERT_PAGE_MOVE_NEEDED", "message": "처리 중 오류가 발생했습니다", "data": { "url": "FAKE_URL", "type": "PX_RESPONSE", "encoding": "UTF-8", "payloads": [], "pxResponse": { "cardCode": null, "paymentKey": null, "amount": 0, "orderId": "", "paymentWindowType": "DEFAULT", "paymentScheme": "STANDARD", "resultStatus": "FAIL", "windowTarget": "iframe", "successUrl": "http://localhost:5173//payment-success?orderName=businessplan&email=&zip=123456&phone=&amount=661000&trial=business&lang=kr&selectedPayment=toss&customerKey=customer_3", "failUrl": "http://localhost:5173//payment-fail", "originUrl": "http://localhost:5173", "error": { "code": "2003", "message": "처리 중 오류가 발생했습니다" }, "redirectUrl": "http://localhost:5173/payment-fail?code=2003&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=" }, "extraData": null } } @김차장 we got same error
김차장
김차장2mo ago
ok, let me see do you have any key value, something like "GTID", "TID" ... @Giwon 메일주소 하나 알려주세요
토스페이먼츠 BOT
💡 정보 제출
민감 정보를 안전하게 제출해주세요
김차장
김차장2mo ago
@henilkevadiya Tosspay Billing is configured to work only with hyper_toss. It is not possible to use a different clientKey. The clientKey you used belongs to bill_hyperhdxq.
henilkevadiya
henilkevadiya2mo ago
@김차장 are you talking about customer key ?
Giwon
GiwonOP2mo ago
입니다
Giwon
GiwonOP2mo ago
No description
Giwon
GiwonOP2mo ago
이메일 입니다
henilkevadiya
henilkevadiya2mo ago
@Giwon @김차장 I will talk about this. Is this the key (bill_hyperhdxq) from my side to set for a direct pop-up ?
Giwon
GiwonOP2mo ago
Need to discuss with @김차장 Flow for payment
김차장
김차장2mo ago
위의 에러는 다른 상점아이디 bill_hyperhdxq 를 사용해서 발생했구요 hyper_toss 를 사용하면 해결될거에요
henilkevadiya
henilkevadiya2mo ago
@김차장 okay
김차장
김차장2mo ago
잘 되시나요?
Giwon
GiwonOP2mo ago
이메일 받았습니다 전달했습니다
김차장
김차장2mo ago
빌링키를 성공적으로 받으면 이런 응답을 받게되는데요
{"authenticatedAt":"2025-06-23T19:11:37+09:00","customerKey":"d1pjfeohdi","method":"간편결제","mId":"thyper_toss","billingKey":"rx2E-1GaeHKl5r45gHOnCLXB0OLcMDUOJMVbZxzE1uw=","card":null,"easyPay":{"provider":"토스페이"}}
{"authenticatedAt":"2025-06-23T19:11:37+09:00","customerKey":"d1pjfeohdi","method":"간편결제","mId":"thyper_toss","billingKey":"rx2E-1GaeHKl5r45gHOnCLXB0OLcMDUOJMVbZxzE1uw=","card":null,"easyPay":{"provider":"토스페이"}}
이중에서 billingKey 값은 DB 에저장해야하고 이후 결제시 billingKey 와 함께 결제금액을 전달하면 됩니다
Giwon
GiwonOP2mo ago
@henilkevadiya Please check this point also @henilkevadiya please check
henilkevadiya
henilkevadiya2mo ago
@김차장 You sent an email to @Giwon and a sample .html file that showed a successful pop-up. I implemented the same setup, except for using our own client key — but with our client key, it shows an error
Giwon
GiwonOP2mo ago
Please share error detail @henilkevadiya
henilkevadiya
henilkevadiya2mo ago
{ "code": "ERROR_WITH_MERT_PAGE_MOVE_NEEDED", "message": "처리 중 오류가 발생했습니다", "data": { "url": "FAKE_URL", "type": "PX_RESPONSE", "encoding": "UTF-8", "payloads": [], "pxResponse": { "cardCode": null, "paymentKey": null, "amount": 0, "orderId": "", "paymentWindowType": "DEFAULT", "paymentScheme": "STANDARD", "resultStatus": "FAIL", "windowTarget": "iframe", "successUrl": "http://localhost:8080/success.html", "failUrl": "http://localhost:5173//payment-fail", "originUrl": "http://localhost:5173", "error": { "code": "2003", "message": "처리 중 오류가 발생했습니다" }, "redirectUrl": "http://localhost:5173/payment-fail?code=2003&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=" }, "extraData": null } } @김차장 same error
김차장
김차장2mo ago
What customerKey did you use? @henilkevadiya Please tell me the customerKey you used
henilkevadiya
henilkevadiya2mo ago
same i used based on example @김차장 asdf1234
김차장
김차장2mo ago
1. You need to use a connectable successUrl. 2. The clientKey is used to launch the UI, and if you authenticate in the UI, the authKey and customerKey are redirected to the successUrl. 3. You need to request the authKey and customerKey received from the frontend to the backend.
henilkevadiya
henilkevadiya2mo ago
@김차장 main problem is I can't able to launch UI while lunch AI i got above error that I share @김차장 on same code I change client key from ours to test and it's lunch UI successfully
김차장
김차장2mo ago
is this URL connectable? "successUrl": "http://localhost:8080/success.html",
henilkevadiya
henilkevadiya2mo ago
@김차장 I confirmed that Problem is not SuccessURL I just changed client key from ours to test I got below UI and on our clientKey I got below UI and on logs I found that error { "code": "ERROR_WITH_MERT_PAGE_MOVE_NEEDED", "message": "처리 중 오류가 발생했습니다", "data": { "url": "FAKE_URL", "type": "PX_RESPONSE", "encoding": "UTF-8", "payloads": [], "pxResponse": { "cardCode": null, "paymentKey": null, "amount": 0, "orderId": "", "paymentWindowType": "DEFAULT", "paymentScheme": "STANDARD", "resultStatus": "FAIL", "windowTarget": "iframe", "successUrl": "http://localhost:5173/payment-success?orderName=defaultplan&email=&zip=123456&phone=&amount=500&trial=&lang=kr&selectedPayment=toss&customerKey=customer_3", "failUrl": "http://localhost:5173/payment-fail", "originUrl": "http://localhost:5173", "error": { "code": "2003", "message": "처리 중 오류가 발생했습니다" }, "redirectUrl": "http://localhost:5173/payment-fail?code=2003&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=" }, "extraData": null } }
No description
No description
김차장
김차장2mo ago
Is the error page after the QR page??
henilkevadiya
henilkevadiya2mo ago
@김차장 error page we got directly if we use our client key then we can't able to see QR code it show direct error
김차장
김차장2mo ago
Let's check them one by one from the beginning Please show me the code that sets the clientKey The clientKey of hyper_toss is test_ck_Z61JOxRQVE2n9dDEQRz2rW0X9bAq. Is it used correctly?
henilkevadiya
henilkevadiya2mo ago
@김차장 we copied client key from here
No description
henilkevadiya
henilkevadiya2mo ago
const tossPayments = window.TossPayments(import.meta.env.VITE_APP_TOSS_SECRET_KEY); below is our client key test_ck24xLea5zVAopWDNJdZbx8QAMYNwW @김차장 below is my code to launch UI tossPayments.requestBillingAuth("카드", { customerKey: `customer${user_id}, successUrl: http://localhost:5173/payment-success`, failUrl: "http://localhost:5173/payment-fail", flowMode: 'DIRECT', easyPay: 'TOSSPAY', }); here my customer key is customer_3
김차장
김차장2mo ago
in here put the "hyper_toss"
No description
김차장
김차장2mo ago
Toss Pay billing only works in hyper_toss For other general card inputs, it is correct to use bill_hyperhdxq
henilkevadiya
henilkevadiya2mo ago
but here I change but it shows same error
김차장
김차장2mo ago
Please upload the clientKey you confirmed here.
henilkevadiya
henilkevadiya2mo ago
@김차장 for hyper_toss it show client key like this
No description
김차장
김차장2mo ago
Try using the clientKey of hyper_toss And let me know the result
henilkevadiya
henilkevadiya2mo ago
for both it show same client key
김차장
김차장2mo ago
The client key is not updated on the screen?
henilkevadiya
henilkevadiya2mo ago
no
김차장
김차장2mo ago
use test_ck_Z61JOxRQVE2n9dDEQRz2rW0X9bAq
henilkevadiya
henilkevadiya2mo ago
@김차장 this key : test_ck_Z61JOxRQVE2n9dDEQRz2rW0X9bAq
we got pop up
No description
김차장
김차장2mo ago
good
henilkevadiya
henilkevadiya2mo ago
@김차장 so why our client key can't work ?
김차장
김차장2mo ago
The exact clientKey of hyper_toss is test_ck_Z61JOxRQVE2n9dDEQRz2rW0X9bAq It is not updated on your screen.
henilkevadiya
henilkevadiya2mo ago
okay that's why we got error
김차장
김차장2mo ago
This information is correct.
No description
김차장
김차장2mo ago
After entering hyper_toss, if you click anywhere on the screen, nothing changes?
henilkevadiya
henilkevadiya2mo ago
@김차장 no @김차장 I just noticed that the client key changes when we select something from the search and then refresh the page. Otherwise, it doesn't change
김차장
김차장2mo ago
When the page changes, is the test_ck_Z61JOxRQVE2n9dDEQRz2rW0X9bAq value checked? The apiKey also needs to be checked. The apiKey ends like this 80zJwlEW
henilkevadiya
henilkevadiya2mo ago
@김차장 I will talk about refresh the page not change page @김차장 it's depends on what store id based on that this value show but after refresh the page immidate it can't change the value
김차장
김차장2mo ago
In that case, I would like you to receive the mid key value through @Giwon. You only need to check the clientKey and apiKey once. @Giwon 오늘 지원은 여기까지 해야할거같습니다
Giwon
GiwonOP2mo ago
네네 늦은시간 너무 감사합니다
김차장
김차장2mo ago
키값은 개발자에게 별도 전달주셔야할거같아요
Giwon
GiwonOP2mo ago
이매일로 보내주신 내용 말씀이실까요 전달했습니다
김차장
김차장2mo ago
가끔 페이지 오류로인해 키값 갱신이 안되는 경우가 있는데 지금 이렇게 될줄은 몰랐네요 개발자가 토스페이 인증이 가능한가요? QR 페이지 진행을 하려면 토스앱 회원이어야해요
Giwon
GiwonOP2mo ago
제가 직접 태스트를 합니다 개발자가 요청합니다
김차장
김차장2mo ago
아..네 이해했습니다 그럼.. ㅎㅎ 내일 뵙겠습니다
Giwon
GiwonOP2mo ago
네 감사합니다!!
김차장
김차장2mo ago
@henilkevadiya I'm going to leave after work hours. Please contact me for any issues that won't be available tomorrow.
henilkevadiya
henilkevadiya2mo ago
Hello , @김차장 If we use the client key to generate a billing key, do we need to use the same store's secret key (named 'hyper_toss') to generate the billing key ?
Kimoon Lee
Kimoon Lee2mo ago
yes, you should use same store's secretley.
henilkevadiya
henilkevadiya2mo ago
okay @냥과장
{ "code": "NOT_FOUND", "message": "존재하지 않는 정보 입니다." } this error means authkey expire right ?
Kimoon Lee
Kimoon Lee2mo ago
could you share the authkey you sent?
henilkevadiya
henilkevadiya2mo ago
@냥과장 authkey : bln_W2ZBP7G20YA { code: 'INVALID_BILL_KEY_REQUEST', message: '빌링키 인증이 완료되지 않았거나 유효하지 않은 빌링 거래 건입니다.' } @냥과장 and what does this error means ?
Kimoon Lee
Kimoon Lee2mo ago
bln_W2ZBP7G20YA was already used 14:50:26 today. you requested same request twice. INVALID_BILL_KEY_REQUEST means you do something wrong. please share the payload when you get this error
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.

Did you find this page helpful?