The Rambam wrote in chapter 7 of Arachin: One who redeems from the hand of the Hekdesh, if he performed meshikhah at a value of a maneh but did not manage to give the money until it stood at two hundred, he gives two hundred, as it is said, "And he shall give the money and it shall be established for him"—through the giving of the money it is his. If he performed meshikhah at a value of two hundred but did not manage to give the money until it stood at a maneh, he gives two hundred; the power of an ordinary person should not be more stringent than the power of Hekdesh, and behold, he acquired it through meshikhah and became obligated for the money. If he redeemed it at two hundred and gave the money but did not manage to perform meshikhah until it stood at a maneh, he has already acquired it through the giving of the money and he pulls his own, and Hekdesh has merited the two hundred. If he redeemed it for a maneh and gave the money but did not manage to perform meshikhah until it stood at two hundred, what he redeemed is redeemed, and he only gives the maneh that he already gave; and we do not say here "the power of an ordinary person should not be more stringent than Hekdesh," for even an ordinary person cannot retract until he receives "He who punished," and Hekdesh is not fit to receive "He who punished." Thus far his words. He wrote further in chapter 9 of Mekhirah: The treasurer who bought for Hekdesh or who sold, his hand is on the upper side. How so? If he gave the money of Hekdesh, even though he did not perform meshikhah on the produce, if they increased in price, he has acquired according to Torah law; but if the produce decreased in price, he retracts, for behold, he did not perform meshikhah, and the power of an ordinary person should not be more stringent than the power of Hekdesh. Thus far his words. And there are those who disagree with this, since with an ordinary person there is also "He who punished," Hekdesh also does not retract, as the Rambam himself wrote this reasoning [Ran, first chapter of Kiddushin]. And it must be said that the Rambam holds that specifically an ordinary person from Hekdesh acquires with money, but Hekdesh from an ordinary person is like an ordinary person from an ordinary person [Kesef Mishneh]. The Rambam further wrote there: And so too if he sold an object of Hekdesh and the buyer performed meshikhah but did not give money, and the object decreased in price, he has acquired, so that the power of an ordinary person should not be more stringent than the power of Hekdesh; but if the object increased in price, he retracts, for behold, the treasurer did not take money, and Hekdesh is only acquired with money, as it is said, "And he shall give the money and it shall be established for him," and the treasurer is not obligated to receive "He who punished." Thus far his words. And in the Yerushalmi, chapter 3 of Ma'asrot, it is stated that a purchase that establishes an obligation for ma'aser was with coins alone, for if not so, perhaps he will take with his mouth to taste and then retract, and it will turn out that he ate tevel retroactively [and see Shach, Yoreh Deah siman 331, subsection 118, and it requires further study].
כתב הרמב"ם בפ"ז מערכין הפודה מיד ההקדש משך במנה ולא הספיק ליתן הדמים עד שעמד במאתים נותן מאתים שנא' ונתן את הכסף וקם לו בנתינת הכסף הוא שלו משכו במאתים ולא הספיק ליתן את הדמים עד שעמד במנה נותן מאתים לא יהא כח הדיוט חמור מכח הקדש והרי קנה במשיכה ונתחייב בדמים פדה במאתים ונתן הדמים ולא הספיק למשכו עד שעמד במנה כבר קנה בנתינת הכסף ומושך את שלו וזכה הקדש במאתים פדהו במנה ונתן הדמים ולא הספיק למשכו עד שעמד במאתים מה שפדה פדוי ואינו נותן אלא המנה שכבר נתן ואין אומרים כאן לא יהא כח הדיוט חמור מהקדש שאפילו הדיוט אינו יכול לחזור בו עד שיקבל מי שפרע ואין הקדש ראוי לקבל מי שפרע עכ"ל וכתב עוד בפ"ט ממכירה הגיזבר שקנה להקדש או שמכר ידו על העליונה כיצד נתן דמים של הקדש אע"פ שלא משך הפירות אם הוקרו קנה כדין תורה ואם הוזלו הפירות חוזר שהרי לא משך ולא יהא כח ההדיוט חמור מכח ההקדש עכ"ל ויש חולקים בזה כיון דבהדיוט ג"כ יש מי שפרע גם ההקדש אינו חוזר כמ"ש הרמב"ם עצמו סברא זו [ר"ן פ"ק דקדושין] וצ"ל שהרמב"ם סובר דדוקא הדיוט מהקדש קונה בכסף אבל הקדש מהדיוט הוי כהדיוט מהדיוט [כ"מ] עוד כתב הרמב"ם שם וכן אם מכר חפץ של הקדש ומשכו הלוקח ולא נתן דמים והוזל החפץ קנה שלא יהא כח הדיוט חמור מכח הקדש ואם הוקר החפץ חוזר בו שהרי לא לקח הגיזבר דמים וההקדש אינו נקנה אלא בכסף שנאמר ונתן הכסף וקם לו ואין הגיזבר חייב לקבל מי שפרע עכ"ל ובירושלמי פ"ג דמעשרות איתא דמקח שקובע למעשר היה במעות בלחוד דאל"כ שמא יטול בפיו לטעום ויחזור בו ונמצא אוכל טבל למפרע [ועש"ך יו"ד סי' של"א ס"ק קי"ח וצ"ע]: