안녕하세요
현재 클라이언트 위젯을 붙이려고 하는데
function usePaymentWidget(clientKey: string, customerKey: string) {
return useQuery({
queryKey: ['payment-widget', clientKey, customerKey],
queryFn: () => {
// ------ 결제위젯 초기화 ------
// @docs https://docs.tosspayments.com/reference/widget-sdk#sdk-설치-및-초기화
return loadPaymentWidget(clientKey, customerKey);
}
});
}
이렇게 값을 불러오는데 존재하지 않는 위젯입니다. 라고 에러 메세지가 뜹니다 혹시 어떤 방법으로 해야할까요?
현재 clientKey는 결제위젯 연동키 ,개별결제연동키, 공식문서의 클라이언트키 넣어본 상태입니다..
function usePaymentWidget(clientKey: string, customerKey: string) {
return useQuery({
queryKey: ['payment-widget', clientKey, customerKey],
queryFn: () => {
// ------ 결제위젯 초기화 ------
// @docs https://docs.tosspayments.com/reference/widget-sdk#sdk-설치-및-초기화
return loadPaymentWidget(clientKey, customerKey);
}
});
}
이렇게 값을 불러오는데 존재하지 않는 위젯입니다. 라고 에러 메세지가 뜹니다 혹시 어떤 방법으로 해야할까요?
현재 clientKey는 결제위젯 연동키 ,개별결제연동키, 공식문서의 클라이언트키 넣어본 상태입니다..
