add checkout http handler
add test content-type must be application/json and refactor to function