Fix undefined variable
remove unnecessary stuff
payment capture adds an order note now