Plane Power has some good troubleshooting flowcharts. It'd be good to work through the appropriate flowchart to verify it's the alternator and not some other component that's causing the charging issue, before throwing money at repairing or replacing it.
https://planepower.aero/aircraft-alternator-support/troubleshooting/