SingleStepRegistration - LOMENT-SDK/sdk-cashew-android GitHub Wiki

Single Step Registration

The first step to using the Cashew SDK is to register a new user and create new account on the server. This is accomplished by calling the UserManager() and passing in valid Name, Password, Country code, Country ID, Mobile Number, Email, Messenger ID, Confirm Email, promoCode, partnerID :

new UserManager().singleStepRegister(
      context,
      userName,
      password,
      country_code,
      countryID,
      mobileNumber,
      email,
      messengerId,
      confirmEmail,
      promoCode,
      partnerID,
      this);

The registration results are handled in the following callbacks:

@Override
public void onRegistrationSuccess(){
	//Handle registration success
}

@Override
public void onRegistrationError(CNError error){
	//Handle registration error
}
⚠️ **GitHub.com Fallback** ⚠️