The $29-billion takeover of Australia’s “buy now, pay later” app Afterpay by US firm Square has thrown a spotlight on a sector that is growing rapidly and grabbing the attention of regulators.