Solve the Payment Processing Problem