Online shopping giant Amazon is betting that some customers would rather use cash.

The e-commerce company announced "Amazon PayCode" on Wednesday, which lets shoppers buy something online, then show up at one of 15,000 Western Union locations in person to pay in cash. That option was already available in 19 countries, but is rolling out in the U.S. in coming weeks, the company said.

It also unveiled "Amazon Cash" — way for users to load cash into their Amazon balance in person, so they can make online purchases later. That is now available in over 100,000 cash-loading locations nationwide.

"Customers have told us they love the convenience of paying in cash," Ben Volk, Director, Payments at Amazon, said in a statement Wednesday. "Together with Western Union, we're able to offer customers more shopping choices, enabling them to pay for their online purchases in a way that is convenient for them."