More consistent payment error messages

This updates the API controller to make its error messages more consistent with the frontend controller.