President Cyril Ramaphosa is to repay a $35,000 campaign donation after misleading MPs.