main.js: upload to merchant methods.