merchant reference validation and update

Added merchant reference validation and update of configuration object.