finish merchant and repository relationship