How do online transactions work?

by
How do online transactions work?