how should i get paid for a t shirt design?

I am a young artist who has recently been asked to sell one of my designs to a company to go on a t-shirt. How should I get paid for this? Do I sell the design for one lump sum or should I earn royalties from the sales. I have no idea…need some info.