Grown in India, it was delivered to Canton, and while China outlawed the trade in 1799, local Cantonese officials were always willing to look the other way for  squeeze money  (a term still used in Hong Kong).
The delivery from India to Canton was done by caravan.