You’ll need to pay the difference in cash if the agreed upon price is higher than the appraised value. Otherwise, the deal is canceled.