US confectionery Hershey has secured a credit facility to borrow up to US$300m.