debug checkout logic