To change the duration of the OTP validity you have to set following parameter in the merchant configuration document in the database : otp_user_time_limit. The value must be in seconds specified as an integer.