European technology giant Prosus NV said it struck a $4.7 billion deal—its largest-ever acquisition—to buy Indian payments platform BillDesk, the latest investor bet that more and more consumers will conduct transactions online.