Bring dollars and a dated exit
The visa on arrival is paid in cash in US dollars, so don't rely on a card. The same paragraph in GOV.UK's advice says you must have evidence of your onward journey. Carry a printed copy as well as the one on your phone.
Safety advice applies to the route
GOV.UK's Djibouti page says the FCDO advises against all travel to the Djibouti–Eritrea border. If your onward plan is overland, check that the route avoids it. Flying out is the straightforward option.
Passport
Valid for at least 6 months from the date you arrive.