[FEATURE] add validated query parameter to submit payment route

This can just be an anonymous function, it's not used anywhere else outside of these waterfall steps