Fix to transaction method (moving payload into scope)