피터
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
오늘 내일 중으로 테스트 배포후 다시 여기에 문의 드리겠습니다. 정말 감사합니다.
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
ㅠㅠ 다시 한번 확인하고 해보도로 하겠습니다. 아뇨. 어제만해도 문제가 없이 되었던거라..
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
아뇨. 웹입니다.
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
응답에러는 비어있습니다.
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
현재 사용하는 코드는
const paymentWidgetRef = useRef<PaymentWidgetInstance | null>(null)
const paymentMethodsWidgetRef = useRef<ReturnType<PaymentWidgetInstance['renderPaymentMethods']> | null>(null)
const loadPaymentWidgetPromise = new Promise((resolve, reject) => {
loadPaymentWidget(tossClientKey, customerKey).then(paymentWidget => {
resolve(paymentWidget)
}, reject)
})
loadPaymentWidgetPromise.then((paymentWidget: any) => {
try {
const paymentMethodsWidget = paymentWidget.renderPaymentMethods('#paymentWidget', productPrice)
paymentWidget.renderAgreement('#agreement')
paymentWidgetRef.current = paymentWidget
paymentMethodsWidgetRef.current = paymentMethodsWidget
} catch (error) {
console.error('loadPaymentWidgetPromise', error)
}
})
const handleRequestPaymentKey = async () => {
const paymentWidget = paymentWidgetRef.current
try {
setLoading(true) const requestPaymentData = { orderId: 'test-1', orderName: product.name, customerName: user.displayName!, customerEmail: user.email!, successUrl:
setLoading(true) const requestPaymentData = { orderId: 'test-1', orderName: product.name, customerName: user.displayName!, customerEmail: user.email!, successUrl:
${window.location.origin}/api/payment/success
,
failUrl: ${window.location.origin}/payment/failed
,
}
await paymentWidget?.requestPayment(requestPaymentData)
setLoading(false)
} catch (error) {
setLoading(false)
console.log('error', error)
}
}
입니다. 토스 위젯을 starter참고로 적용했습니다.28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
general
Request URL:
https://payment-widget.tosspayments.com/payment-methods?client-key=test_ck_0Poxy1XQL8RaaGwzPBlr7nO5Wmlg&customer-key=TwBnjxalkDX5xnKz18G0Py6IBIV2&variant-key=DEFAULT>id=a230614eb8ktc1ddDQOI14brnxBIEHtSBDNEgH3&device=PC&amountValue=50000¤cy=KRW&country=KR
Referrer Policy:
strict-origin-when-cross-origin
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
우선 request headers에는
Referer:
http://localhost:3001/
Sec-Ch-Ua:
"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"
Sec-Ch-Ua-Mobile:
?0
Sec-Ch-Ua-Platform:
"macOS"
Upgrade-Insecure-Requests:
1
User-Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
제대로 찍혔는지 모르겠네요 ㅠㅠ
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
결제창은 띄워지고 있습니다. 문제는 결제하기를 클릭하면 생기고 있습니다
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
영상을 준비해서 올려보겠습니다
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
const requestPaymentData = {
orderId: 'test-1',
orderName: product.name,
customerName: user.displayName!,
customerEmail: user.email!,
successUrl:
${window.location.origin}/api/payment/success
,
failUrl: ${window.location.origin}/payment/failed
,
}
console.log(requestPaymentData)
await paymentWidget?.requestPayment(requestPaymentData)
처리할때 발생합니다. try catch 블럭안에있습니다28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 6/14/2023 in #❓┃연동개발-문의
SDKBridgeError 에러 발생. 결제 오류 문의
어디에서 표기가 된다는게 정확히 어떤말씀인지 모르곘습니다. 에러는 콘솔창에 보이듯이 결제하기를 클릭하면 widge이 다시 랜더되는현상이 보이면서 발생하는듯합니다
28 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 5/18/2023 in #❓┃연동개발-문의
결제위젯 연동. 카드 결제 선택시 카드가 보이지않습니다.
감사합니다
15 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 5/18/2023 in #❓┃연동개발-문의
결제위젯 연동. 카드 결제 선택시 카드가 보이지않습니다.
아..정보 감사합니다. 담당자에게 확인 받으면 될듯합니다.
15 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 5/18/2023 in #❓┃연동개발-문의
결제위젯 연동. 카드 결제 선택시 카드가 보이지않습니다.
아.. 아니군요..
15 replies
TPToss payments 개발자 커뮤니티
•Created by 피터 on 5/18/2023 in #❓┃연동개발-문의
결제위젯 연동. 카드 결제 선택시 카드가 보이지않습니다.
네 맞습니다 아직 라이브키를 활당받지 못했습니다.
15 replies