The online retail giant on Tuesday announced an online-payment option that looks and works a lot like PayPal’s seemingly ubiquitous button on websites. Dubbed “Login and Pay with Amazon,” the new payment option will allow Amazon users to more easily purchase goods on other websites.

Clicking on the button allows customers to use the credit card stored in their Amazon account after entering their Amazon user name and password. That will simplify purchases for Amazon users, who previously had to enter their account information for each transaction at sites enabled for Amazon payments. Amazon takes from merchants a 2.9% fee, plus 30 cents, for each transaction.

Amazon is attacking PayPal’s strength in online payments at the same time that PayPal has been pushing customers to use its app and payment cards more often in brick-and-mortar stores. Tuesday, PayPal introduced a new option for in-store payments using advanced bar codes on mobile phones or special password codes.

Amazon does not plan to share users’ credit-card information with participating merchants, which may limit the system’s appeal for merchants. Amazon says it won’t have access to information about what “Pay with Amazon” users are actually buying, just the dollar amount, according to a spokeswoman.

“This is strictly to allow a better experience anytime a customer shops anywhere,” she said. PayPal spokespeople didn’t respond to a request for comment.