Mexico is in talks to extend a sales tax to foreign online businesses so that they pay their fair share to Latin America's second biggest economy, the government said on Monday, in a move that could affect companies like Amazon.com Inc, Uber Technologies Inc and Airbnb Inc.