Android


2. Verification Member

This verification is done by calling Goodie.setVerification() function. This function will retrieve based on the username, merchantId, verificationCode. In our backend system, we have a flag “isVerification” if you set this flag true, Users have to fill verification code to activate their account. (our backend system will send verification code by email or message)

Here is example:

Goodie.setVerification(username, merchantId, verificationCode)
                    
        .verificationGoodie(this, new SetVerificationListener(){


            @Override

            public void onSuccess(VerificationResponse response){

                if(response.getAbstractResponse().getResponseStatus().equals("MEM000")){

                    //on success 

                }

            }
                        
                        
                        
            @Override

            public void onError(Throwable throwable){

                //on error   
                }

            });
                        

Where :
Param Type Description
username String username is used as a login member to sdk goodie
merchantId String merchantId is identifier that will be used to identity a merchant
verificationCode String verificationCode is digit code that we use to verify your mobile phone number, This code is received during registration.

Response verification member :
 {
    "memberId": "56DF6BC0-DFB8-469A-B760-1780EB081120",
    "referralPoint": 5,
    "abstractResponse": {
        "responseStatus": "MEM000",
        "responseMessage": "Register member success"
    }
}