SHANGHAI, CHINA - SEPTEMBER 17: Alibaba Chairman Jack Ma speaks during the opening ceremony of the 2018 World Artificial Intelligence Conference at West Bund on September 17, 2018 in Shanghai, China. The 2018 World Artificial Intelligence Conference is held on September 17-19 in Shanghai. (Photo by Zhao Yun/VCG via Getty Images)
PHOTO: Zhao Yun/VCG via Getty Images
SHANGHAI, CHINA - SEPTEMBER 17: Alibaba Chairman Jack Ma speaks during the opening ceremony of the 2018 World Artificial Intelligence Conference at West Bund on September 17, 2018 in Shanghai, China. The 2018 World Artificial Intelligence Conference is held on September 17-19 in Shanghai. (Photo by Zhao Yun/VCG via Getty Images)
Now playing
03:02
How Jack Ma changed China
Now playing
02:13
ECB president on women leaders: 'Of course we can do the job'
Now playing
01:36
Michael Bolton wants you to break up with Robinhood
Now playing
01:57
Fed chief downplays inflation concerns
Now playing
04:34
See what has happened to Trump's DC hotel after his loss
Now playing
01:41
Meet the 29-year-old cancer survivor set to make history in space
WASHINGTON, DC - JANUARY 15: MyPillow CEO Mike Lindell waits outside the West Wing of the White House before entering on January 15, 2021 in Washington, DC. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
WASHINGTON, DC - JANUARY 15: MyPillow CEO Mike Lindell waits outside the West Wing of the White House before entering on January 15, 2021 in Washington, DC. (Photo by Drew Angerer/Getty Images)
Now playing
00:39
MyPillow and its CEO Mike Lindell sued by Dominion
Bill Gates AC intv 022021
PHOTO: CNN
Bill Gates AC intv 022021
Now playing
02:32
Will Bill Gates go back to shaking hands? Hear his thoughts
02 Bill Gates AC intv 02202021
PHOTO: CNN
02 Bill Gates AC intv 02202021
Now playing
02:13
Bill Gates optimistic about climate policy under Biden WH
Now playing
05:37
Texas mayor: We were not prepared
Now playing
03:05
Watch lawmakers grill Robinhood's CEO
PHOTO: CNN
Now playing
04:47
ERCOT CEO explains how Texas power failure happened
NEW YORK, NEW YORK - OCTOBER 15: A person walks by a closed New York City business on October 15, 2020 in New York City. As American workers continue to struggle in an economy brought down by COVID-19, new jobless claims rose to 898,000 last week. It was the highest number since August 22 and represented a gain of 53,000 from the previous week
PHOTO: Spencer Platt/Getty Images
NEW YORK, NEW YORK - OCTOBER 15: A person walks by a closed New York City business on October 15, 2020 in New York City. As American workers continue to struggle in an economy brought down by COVID-19, new jobless claims rose to 898,000 last week. It was the highest number since August 22 and represented a gain of 53,000 from the previous week's upwardly revised total of 845,000. (Photo by Spencer Platt/Getty Images)
Now playing
01:11
Weekly initial jobless claims jump to 861,000
Now playing
02:42
A challenging year for women: Millions are out of work
MELBOURNE, AUSTRALIA - FEBRUARY 18: In this photo illustration a message is seen on Facebook mobile, on February 18, 2021 in Melbourne, Australia. Facebook has banned publishers and users in Australia from posting and sharing news content as the Australian government prepares to pass laws that will require social media companies to pay news publishers for sharing or using content on their platforms. (Photo by Robert Cianflone/Getty Images)
PHOTO: Robert Cianflone/Getty Images AsiaPac/Getty Images
MELBOURNE, AUSTRALIA - FEBRUARY 18: In this photo illustration a message is seen on Facebook mobile, on February 18, 2021 in Melbourne, Australia. Facebook has banned publishers and users in Australia from posting and sharing news content as the Australian government prepares to pass laws that will require social media companies to pay news publishers for sharing or using content on their platforms. (Photo by Robert Cianflone/Getty Images)
Now playing
03:05
Facebook blocks news sharing in Australia in response to government proposal
PHOTO: Anadolu Agency via Getty Images
Now playing
00:58
Watch Trump's Atlantic City casino implode
(CNN Business) —  

Visitors to China can now access the country’s massive cashless economy.

Alibaba-affiliated Ant Financial launched a new international version of its mobile payments app Alipay on Tuesday, marking the first time tourists and business travelers can use mobile payments in mainland China.

Not to be outdone, Tencent-owned WeChat Pay announced on Wednesday that it will also roll out services for foreigners visiting China.

The services could remove one of the biggest headaches for visitors to China, where everyone from taxi drivers to luxury malls have come to rely on mobile payments.

Alipay users can now download and buy prepaid cards within the app using international debit and credit cards. The prepaid cards expire after 90 days and any remaining money is automatically refunded.

WeChat Pay users can add international credit cards directly to their digital wallets.

Alibaba (BABA) and Tencent (TCEHY) dominate cashless payments in China with their Alipay and WeChat Pay platforms. With more than a billion users, the digital payment systems have largely replaced plastic cards and cash at registers, changed how friends and families give gifts to one another and even changed how panhandlers ask for money.

Even Apple (AAPL) accepts Alipay in its local stores in China, after its own payment system failed to gain traction.

Mobile payments in China hit $42 trillion in 2018, up more than 28 times from five years ago, the People’s Bank of China said in a report earlier this year.

Ant Financial said Tuesday that the new international service will allow it to tap into the growing number of visitors to China.

Nearly 31 million foreigners traveled to China in 2018 and they spent $73 billion while they were touring the country, according to government statistics. The number of visitors and how much they spent both rose by about 5% compared to a year earlier.