How does an online payment work?