How Payment Processing Works in a Distributed System