server2021. 2. 15. 13:31

[spring boot]아임포트 본인인증 certification 정보 받아오기

 

인증까지 완료되니.. 이제 imp_uid 가지고 정보를 가지고 올 수 있다..

 

IamportClient client = new IamportClient(imp_key, imp_secret);

IamportResponse<Certification> certificationResponse = client.certificationByImpUid(impUid);

 

System.out.println("getMessage ->" + certificationResponse.getMessage());

System.out.println("getResponse ->" + certificationResponse.getResponse());

 

System.out.println("getBirth ->" + certificationResponse.getResponse().getBirth().toString());

System.out.println("getGender ->" + certificationResponse.getResponse().getGender());

System.out.println("getName ->" + certificationResponse.getResponse().getName());

System.out.println("getPgProvider ->" + certificationResponse.getResponse().getPgProvider());

System.out.println("getImpUid ->" + certificationResponse.getResponse().getImpUid().toString());

System.out.println("getMerchantUid ->" + certificationResponse.getResponse().getMerchantUid().toString());

System.out.println("getPgTid ->" + certificationResponse.getResponse().getPgTid().toString());

System.out.println("getUniqueKey ->" + certificationResponse.getResponse().getUniqueKey().toString());

System.out.println("getUniqueInSite ->" + certificationResponse.getResponse().getUniqueInSite().toString());

System.out.println("getOrigin ->" + certificationResponse.getResponse().getOrigin().toString());

System.out.println("getCarrier ->" + certificationResponse.getResponse().getCarrier().toString());

System.out.println("getPhone ->" + certificationResponse.getResponse().getPhone().toString());

Posted by thdeodls85