/** * Convert the available types into something * * @return string */ public function getCcAvailableTypes() { // Collect the types from the core method $types = parent::getCcAvailableTypes(); // Grab the keys and encode return json_encode(array_keys($types)); }