To have a fundamental and legal basis, there should always be a purchase contract between the buyer and the seller. This contract contains the agreement and requirements for the purchase to proceed. So in this case, it is always agreed in the contract who pays the cost.