Move payments API to public API