This question comes from @Jason on slack: “Hi. I have one question. How the storage miner get payment when they store the data during the whole duration?”
By default in the go-filecoin software a miner will not accept a deal from a client unless that client gives them payment channel vouchers. These vouchers can be redeemed by the miner periodically during the deal’s duration, or all at once at the end of the deal’s duration. It will cost the miner less in gas fees to redeem all funds at the end of the contract in a single blockchain message.
Side note: to protect the client these vouchers cannot be redeemed early if the miner can no longer prove storage of the client’s data.