We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
휴대폰 본인 인증 화면이 뜬 후 "취소 -> (진행중인 간편인증을 취소하시겠습니까?) 예"를 눌렀을 때 callback 함수가 실행되지 않고 아무런 동작도 하지 않습니다.
RN cli 환경입니다. KG 이니시스 간편인증 테스트용 이용 중입니다.
export function Certification(): React.JSX.Element { ... const handlePressCertificationButton = () => { setState("running"); }; const callback = async (res: any) => { console.log(res); if (res.success === "false") { setState("fail"); return; } ... } return ( <> {state !== "running" ? ( <View style={[commonStyles.container, { paddingTop: top }]}> <ScrollView contentContainerStyle={commonStyles.scrollBox} showsVerticalScrollIndicator={false}> <Title text="본인인증을 해주세요" /> <GradationButton text="인증하기" onPress={handlePressCertificationButton} disabled={state === "success"} /> {state === "fail" && <Text>인증에 실패하였습니다. 다시 시도해주세요.</Text>} </ScrollView> <NextButton onPress={handlePressNextButton} disabled={state !== "success"} /> </View> ) : ( <IMPCertification callback={callback} /> )} </> ); }
export function IMPCertification({ callback }: CertificationPropsType): React.JSX.Element { const data = { merchant_uid: `mid_${new Date().getTime()}`, company: "아임포트", carrier: "", name: "", phone: "", min_age: "19", }; return ( <IMP.Certification userCode={"imp18262154"} // 가맹점 식별코드 data={data} // 본인인증 데이터 callback={callback} // 본인인증 종료 후 콜백 /> ); }
취소 동작을 제외한 나머지(인증 성공, 실패)는 정상 작동합니다. 예상한 흐름은 취소 시 콜백 함수가 실행되고, res.success가 "false"라서 상태가 변경되어 간편인증 화면이 사라지는 것입니다(콘솔 로그도 찍히고).
원래 취소하면 callback 함수가 실행되지 않는 게 정상인가요? 만약 그렇다면 본인인증 화면 로딩 후 취소했을 때 플로우가 어떻게 되나요?
The text was updated successfully, but these errors were encountered:
안녕하세요. 해당 현상은 이니시스 버그이며 7월말에 개선 완료를 할 것이라고 답변받았습니다. 따라서 그전까지는 직접 닫는 기능을 구현해주셔야 합니다.
Sorry, something went wrong.
No branches or pull requests
휴대폰 본인 인증 화면이 뜬 후
"취소 -> (진행중인 간편인증을 취소하시겠습니까?) 예"를 눌렀을 때 callback 함수가 실행되지 않고 아무런 동작도 하지 않습니다.
RN cli 환경입니다.
KG 이니시스 간편인증 테스트용 이용 중입니다.
취소 동작을 제외한 나머지(인증 성공, 실패)는 정상 작동합니다.
예상한 흐름은 취소 시 콜백 함수가 실행되고, res.success가 "false"라서 상태가 변경되어 간편인증 화면이 사라지는 것입니다(콘솔 로그도 찍히고).
원래 취소하면 callback 함수가 실행되지 않는 게 정상인가요?
만약 그렇다면 본인인증 화면 로딩 후 취소했을 때 플로우가 어떻게 되나요?
The text was updated successfully, but these errors were encountered: