Pay as you go technology is set to be installed at 12 train stations across Buckinghamshire and Bedfordshire in a bid to make journeys easier for commuters.