Use an internal recommendation engine for a pre-auth check
This template provides an example on how the Web Requests app can be used to pass data from a created payment to an internal server and react to a response. If the response contains a "recommendation" field with a value "PROCEED", then the payment flow continues, otherwise the payment gets declined.
AppsPrimer Payments
Primer Web Requests