Extract customer functionality from payments controller