In such cases, most of the duties originally paid are refundable when the finished product is exported.
Duties are often refundable.
The only payment that China would accept for its goods was silver bullion.