They will use the barter method.
Barter is a trading method where you exchange a certain good with another good.
If a nation does not have a currency to purchase a certain commodity, the only way they can obtain that commodity is by exchanging it with other goods that held similar value.