SAN FRANCISCO (AP) — Digital payments company Square Inc. says it has agreed to acquire Afterpay, which provides a “buy now, pay later” option for merchants, in an all-stock deal valued at about $29 billion.

Square said Sunday it has agreed to buy all of the Australian company’s shares, and that the transaction’s estimated value is based on last Friday’s closing price of Square common stock.

READ MORE: Flames Reach Ancient Sequoias; Crews in Pitched Battle to Save Giant Forest Grove

Square allows retailers to process credit card transactions using devices that plug into tablets or smartphones. The San Francisco-based company said the acquisition is expected to close early in 2022.

The company plans to integrate Afterpay into its services, enabling merchants to offer customers the option to pay for goods later without relying on a credit card. Afterpay users would be able to manage their installment payments directly in Square’s cash app.

“Square and Afterpay have a shared purpose,” Square CEO Jack Dorsey said in a statement.

READ MORE: PG&E Says Light Rain After Long Drought Led to Lights-Out Across Bay Area

Some 70 million people use Square’s cash app. As of June 30, Afterpay was serving more than 16 million users and nearly 100,000 merchants, including major retailers, the company said.

Installment plans are popular with retailers because they encourage customers to spend more money. And they enable customers with insufficient funds or credit at the time of purchase to walk out of a store with the item they want. Payments are made in multiple installments over time, without interest — unless customers are late, in which case additional fees or interest may kick in.

“Afterpay is deeply committed to helping people spend responsibly without incurring service fees for those who pay on time,” the companies said in a joint press release announcing the transaction.

MORE NEWS: Woman Fatally Shot, Another Wounded Outside Pittsburg 7-Eleven Store

© Copyright 2021 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed