A train ticketing trial, which tracks a passenger’s journey via their mobile phone, has been rolled out in northern England.