How to send SMS automatically to customers when payment is recorded on web?

Please go to settings >> preferences >> document >> general >> enable send SMS on record payment >> save and update.