Non-Europeans visiting or transiting through the UK without a visa will be required to obtain a £10 digital permit from Wednesday.