icarus9985
icarus99852y ago

Cannot read properties of undefined (reading 'requestPayment')

function create_add_form_data($this) { const balanceAmount = '<?php echo $data["balance_amount"]; ?>'; make_remit_form_data('#paymethod-Tosspay-p2u'); const orderId = generateRandomString(20); paymentWidget.requestPayment({ orderId: orderId, orderName: itemName, customerEmail: window.Member['Email'], customerName: window.Member['NickName'], successUrl: window.location.origin + '/tosspay-success.blade.php', failUrl: window.location.origin + '/tosspay-fail.blade.php' }) $($this).append($('<input>', { 'type': 'hidden', 'class': 'dynamic_add_data', 'name': 'cash_amt', 'value': checkout_charge['total' ] })) $($this).append($('<input>', { 'type': 'hidden', 'class': 'dynamic_add_data', 'name': 'ok_success', 'value': true })) return { error: true, msg: '' } }
28 Replies
토스페이먼츠 BOT
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) : - 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요. * 주말/공휴일에는 답변이 늦을 수 있어요.
이실장
이실장2y ago
I dont get it your question plz describe more abount your prob.
icarus9985
icarus9985OP2y ago
its solved and thank you and i have a question how i do dummy payments
유부장
유부장2y ago
Do you have any Korean colleague at your side? If not, please send mail to techsupport@tosspayments.com we will guide you the method to bypass the authentication. techsupport@tosspayments.com
icarus9985
icarus9985OP2y ago
해결되었습니다. 감사합니다. 더미 결제 방법에 대해 질문이 있습니다.
유부장
유부장2y ago
Please send the mail to techsupport@tosspayments.com then we will guide you via mail
Ayaan이안
Ayaan이안2y ago
Yes, please email techsupport@tosspayments.com or #🌎┃global-support for other questions.
토스페이먼츠 BOT
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.
icarus9985
icarus9985OP2y ago
Can you tell me where the tosspay redirects user after succesfull payment or what's the response of succes or failed
유부장
유부장2y ago
you are integrating widget now, procedure as below. 1. start the payment where the widget rendered. 2. payment window will be shows up 3. user perform their required action (via card company app or etc) 4. user will be redirect to "successUrl" that the merchant provided . 5. when the redirection has been performed, query string param will be added 6. the merchant need to parse the data from query string param added "successUrl" 7. the merchant perform "Approval API" request with parsed values 8. payment complete are you referring the online integration document now? you can find API response from doc.
icarus9985
icarus9985OP2y ago
which doc can you share with me
유부장
유부장2y ago
결제위젯 연동하기 | 토스페이먼츠 개발자센터
토스페이먼츠 결제위젯 연동 가이드입니다. 내 상점의 주문서 페이지에 최적의 주문서 UI를 연동하세요. 결제 연동하기 가장 편리한 로우코드(Low-code) 솔루션입니다.
유부장
유부장2y ago
browser translation available.
유부장
유부장2y ago
GitHub
GitHub - tosspayments/payment-widget-sample: 토스페이먼츠 결제위젯 샘플 앱입니다.
토스페이먼츠 결제위젯 샘플 앱입니다. . Contribute to tosspayments/payment-widget-sample development by creating an account on GitHub.
유부장
유부장2y ago
widget integration samples here
icarus9985
icarus9985OP2y ago
how can i test the payments ?
유부장
유부장2y ago
I do not know where to start, your question is confusing me now. 1. Do you have any Korean colleague who explain to you the Payment in Korea? 1-1 It is important, you need to understand how the payment procedure is working in Korea. 1-2 at least someone explain to you about it. 2. Seems you are integrating Widget, what documentation you are referring to? 3. Have you checked github that I just shared with you?
icarus9985
icarus9985OP2y ago
Do you have any test environment ?
이실장
이실장2y ago
Why dont you answer our question? If you dont answer our question, it is hard to continue to help you So answer our above question first, then we will give you right guide.
icarus9985
icarus9985OP2y ago
1. currently No 2. I'm not sure about korean payment procedure 3. Yes checked it
이실장
이실장2y ago
For the first question, are you prepareing business in Korea?
icarus9985
icarus9985OP2y ago
Now would you please tell me that do you have any sandbox for testing or any testing card creds
이실장
이실장2y ago
No test card in Korea. And to use sandbox, you have to make contract first
icarus9985
icarus9985OP2y ago
Okay So i just need to test payments on live service only ?
이실장
이실장2y ago
yes Thats why we continualy ask you
Do you have any Korean colleague who explain to you the Payment in Korea?
Do you have any Korean colleague who explain to you the Payment in Korea?
icarus9985
icarus9985OP2y ago
okay
이실장
이실장2y ago
Here is about korea payment system What service our you preparing for? Has the contract with tospays been completed?

Did you find this page helpful?