How to write a Flask Web API with only 1 method called “ProcessPayment” that receives a request like this