Beware there are 2 different transition: create and confirm. You're talking about the confirm one (when the order is paid) but the line you commented on is about create (just transform a cart into an order).