Age Recheck
privo.ageGate.recheck(data)
interface CheckAgeData {
userIdentifier?: string;
birthDateYYYYMMDD?: string;
birthDateYYYYMM?: string;
birthDateYYYY?: string;
age?: number;
countryCode?: string;
}
The method allows rechecking data if the birth date provided by a user was updated.
privo.ageGate.onStatusChange(event => {}) should be set before privo.ageGate.recheck is invoked to get results. doc
Age Gate Recheck entry parameters:
userIdentifier - optional field, external user identifier
birthDateYYYYMMDD - optional field, external user birth date in "yyyy-MM-dd" format
birthDateYYYYMM - optional field, external user birth date in "yyyy-MM" format
birthDateYYYY - optional field, external user birth date in "yyyy" format. Derived birthDate will be calculated with Dec 31 by default
age - optional field, external user age format. Derived birthDate will be calculated with current day and month by default
countryCode - optional field, two-letter country code (ISO 3166-1 alpha-2 Wiki).