What is the national currency of Namibia?

The national currency is the Namibian dollar,but South African rand is also accepted as legal tender.The Namibian $ is pegged to the SA rand,the ratio is 1:1 (equal),but Namibian dollars are not accepted in South Africa. It's like in most of the Caribbean, e.g. Bahamas, with United States money.