before integrating checkout