Documentation ¶
Index ¶
- func GetCaptcha() (captchaImg []byte, sessionCookie string, err error)
- func IsAadhaarError(err error) bool
- func IsAadhaarPageError(err error) bool
- func IsInvalidCaptcha(err error) bool
- func IsInvalidSessionId(err error) bool
- func IsInvalidUIDOrVID(err error) bool
- func IsOtpFailure(err error) bool
- func IsRedownloadError(err error) bool
- func IsRetryableError(err error) bool
- func IsSessionExpired(err error) bool
- func IsTechnicalError(err error) bool
- func IsValidAadhaarNo(aadhaar string) bool
- func ValidateXMLSignature(xmlData []byte) (bool, error)
- type OfflineAadhaarXML
- type VerifyAadhaarNumberPageResult
- type VerifyAadhaarNumberResult
- type VerifyCaptchaOpt
- type VerifyCaptchaResult
- type VerifyOTPAndGetAadhaarOpt
- type VerifyOTPAndGetAadhaarResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCaptcha ¶
GetCaptcha - To fetch captcha and session id from UIDAI.
func IsAadhaarError ¶
func IsAadhaarPageError ¶
func IsInvalidCaptcha ¶
func IsInvalidSessionId ¶
func IsInvalidUIDOrVID ¶
func IsOtpFailure ¶
func IsRedownloadError ¶
func IsRetryableError ¶
func IsSessionExpired ¶
func IsTechnicalError ¶
func IsValidAadhaarNo ¶
func ValidateXMLSignature ¶
Types ¶
type OfflineAadhaarXML ¶
type OfflineAadhaarXML struct { XMLName xml.Name `xml:"OfflinePaperlessKyc"` UidData struct { Poi struct { Dob string `xml:"dob,attr"` EmailHash string `xml:"e,attr"` Gender string `xml:"gender,attr"` MobileHash string `xml:"m,attr"` Name string `xml:"name,attr"` } `xml:"Poi"` Poa struct { CareOf string `xml:"careof,attr"` Country string `xml:"country,attr"` District string `xml:"dist,attr"` House string `xml:"house,attr"` Landmark string `xml:"landmark,attr"` Locality string `xml:"loc,attr"` Pincode string `xml:"pc,attr"` Postoffice string `xml:"po,attr"` State string `xml:"state,attr"` Street string `xml:"street,attr"` Subdist string `xml:"subdist,attr"` Vtc string `xml:"vtc,attr"` } `xml:"Poa"` Photo string `xml:"Pht"` } `xml:"UidData"` }
type VerifyAadhaarNumberResult ¶
type VerifyAadhaarNumberResult struct { Msg string IsVerified bool AgeBand string State string Gender string MobileNumber string Details string }
func VerifyAadhaarNumber ¶
func VerifyAadhaarNumber(opt VerifyCaptchaOpt) (result VerifyAadhaarNumberResult, err error)
VerifyAadhaarNumber
type VerifyCaptchaOpt ¶
type VerifyCaptchaResult ¶
type VerifyCaptchaResult struct {
Msg string
}
func VerifyCaptcha ¶
func VerifyCaptcha(opt VerifyCaptchaOpt) (result VerifyCaptchaResult, err error)
VerifyCaptcha Once captcha fetched, need to call this API with aadhaar number(uid_no) and captcha(security_code). On success user will receive an OTP on phone number associated with aadhaar.
type VerifyOTPAndGetAadhaarResult ¶
type VerifyOTPAndGetAadhaarResult struct { Details OfflineAadhaarXML XmlSignatureValidated bool ZipFile []byte XmlFile []byte }
func VerifyOTPAndGetAadhaar ¶
func VerifyOTPAndGetAadhaar(opt VerifyOTPAndGetAadhaarOpt) (result VerifyOTPAndGetAadhaarResult, err error)
VerifyOTPAndGetAadhaar download zip file from UIDAI and fetch details.
Click to show internal directories.
Click to hide internal directories.