update code for merchant