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
⏳ 잠시만 기다려주세요! 곧 답변드리겠습니다
오류 문의일 경우 아래 정보를 미리 전달해주시면, 빠른 답변에 도움이 됩니다.
- 주문번호(orderId) :
- 문의 내용 :
(img를 함께 첨부해주시면 도움이됩니다)
* 계약관련 내용은 1544-7772로 문의주세요.
* 주말/공휴일에는 답변이 늦을 수 있어요.
I dont get it your question
plz describe more abount your prob.
its solved and thank you and i have a question how i do dummy payments
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
해결되었습니다. 감사합니다. 더미 결제 방법에 대해 질문이 있습니다.
Please send the mail to techsupport@tosspayments.com
then we will guide you via mail
Yes, please email techsupport@tosspayments.com or #🌎┃global-support for other questions.
❤️ 기술문의 경험이 어떠셨나요?!
간단히 코멘트 남겨주세요! 제품 발전에 큰 힘이 됩니다.
Can you tell me where the tosspay redirects user after succesfull payment
or what's the response of succes or failed
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.
which doc can you share with me
결제위젯 연동하기 | 토스페이먼츠 개발자센터
토스페이먼츠 결제위젯 연동 가이드입니다. 내 상점의 주문서 페이지에 최적의 주문서 UI를 연동하세요. 결제 연동하기 가장 편리한 로우코드(Low-code) 솔루션입니다.
browser translation available.
GitHub
GitHub - tosspayments/payment-widget-sample: 토스페이먼츠 결제위젯 샘플 앱입니다.
토스페이먼츠 결제위젯 샘플 앱입니다. . Contribute to tosspayments/payment-widget-sample development by creating an account on GitHub.
widget integration samples here
how can i test the payments ?
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?
Do you have any test environment ?
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.
1. currently No
2. I'm not sure about korean payment procedure
3. Yes checked it
For the first question, are you prepareing business in Korea?
Now would you please tell me that do you have any sandbox for testing or any testing card creds
No test card in Korea.
And to use sandbox, you have to make contract first
Okay So i just need to test payments on live service only ?
yes
Thats why we continualy ask you
okay
About Card Payment in Korea | 토스페이먼츠 개발자센터
Learn how the Korean card payment system works.
Here is about korea payment system
What service our you preparing for?
Has the contract with tospays been completed?