Our teacher, the Beit Yosef, wrote in section 3: If they bought anything with chametz after six hours—it is permitted, because chametz does not cause its value to be seized with its prohibition. Thus far his words, and it is not understood: for it is true that according to the Torah, all forbidden benefits do not cause their value to be seized with the prohibition, except for idol worship. However, according to the rabbis, it is indeed forbidden to the owners themselves, who sold it or exchanged it, as Rashi and Tosafot wrote at the beginning of Chullin, see there. And it can be said that his opinion is that chametz is more lenient, because after Pesach its prohibition is only according to the rabbis due to a penalty, it is possible they were not stringent regarding the seizure of value. But in the Tur it is found only when the maidservant bought it without the knowledge of the Israelite, for in this case Rabbeinu Tam instructed to permit it, see there. But when the Israelite bought or exchanged it—they are absolutely forbidden to him, for if not so, we would find a value for chametz on Pesach. And such is the primary ruling in law. And the exchange of an exchange is permitted, and there is no difference whether he exchanged it for money, or for clothing and vessels. And there is one who distinguishes in this (Chok Yaakov), and it is not primary (as the Gr"z wrote in the Kuntres Acharon). And there is one who says that if the non-Jew first pulled the chametz, and afterward gave the money, it is permitted even to the Israelite who sold it to him (Magen Avraham subsection 6); for thus we hold even regarding wine used for idolatry in Yoreh Deah siman 132 for the reason that since he pulled it—he acquired it, and subsequently the money is no longer the value of the exchange of the chametz. And even though regarding wine used for idolatry it is forbidden to him, as I wrote there, nevertheless regarding chametz one should be lenient, for with wine used for idolatry the exchange is forbidden according to the Torah. And despite all this, in this manner it is permitted to everyone. And certainly regarding chametz, where for him it is only a rabbinic prohibition, it is permitted in such a case. (In the Makor Chayim subsection 7 he labored over the words of the Magen Avraham, and I do not know why, for his intention is clear as I wrote. And see Chok Yaakov subsection 9 regarding grain that became chametz during its growth, and Pesach passed over it, that it is permitted; for growth is like an exchange, see there. And see Pri Chadash who decided completely toward leniency regarding the seizure of value, that they are permitted even to the one who exchanges it himself, or to the one who sells them, see there. And it is difficult to say so. However, in a case of great loss, the Gr"z wrote in section 12 that one may rely on this, see there. And especially since such appears to be the opinion of the Beit Yosef. And examine carefully and you will find it simple.)
כתב רבינו הבית יוסף בסעיף ג: אם קנו שום דבר בחמץ אחר שש שעות – מותר, מפני שחמץ אינו תופס דמיו. עד כאן לשונו, ואינו מובן: דהן אמת דמן התורה כל איסורי הנאה אין תופסין דמיהן באיסור, לבד מעבודת כוכבים. אבל מדרבנן הא אסור להבעלים עצמן, שמכרן או החליפן, וכמו שכתבו רש"י ותוספות ריש חולין, עיין שם. ויש לומר דדעתו דחמץ קיל טפי, מפני שלאחר הפסח איסורו רק מדרבנן משום קנסא, אפשר שלא החמירו בתפיסת דמים. אבל בטור איתא רק כשהשפחה קנתה בלא דעת הישראל, דבזה הורה רבינו תם להיתר, עיין שם. אבל כשהישראל קנה או החליף – אסורין לו לחלוטין, דאם לא כן מצינו דמים לחמץ בפסח. וכן עיקר לדינא. וחליפי חליפין מותרין, ואין חילוק בין החליף על מעות, או על כסות וכלים. ויש מי שמחלק בזה (ח"י), ואינו עיקר (כמו שכתב הגר"ז בקו"א). ויש מי שאומר דאם מקודם משך האינו יהודי את החמץ, ואחר כך נתן המעות, דמותר אפילו לישראל המוכר לו (מגן אברהם סעיף קטן ו); דהכי קיימא לן אפילו ביין נסך ביורה דעה סימן קלב מטעם דכיון שמשך – קנה, ושוב אין המעות דמי חליפי החמץ. ואף על גב דביין נסך אסור לדידיה, כמו שכתבתי שם, מיהו בחמץ יש להקל, דיין נסך החליפין אסור מן התורה. ועם כל זה באופן זה מותר לכל. וכל שכן בחמץ דלדידיה הוי רק איסור דרבנן, דמותר בכי האי גוונא. (במק"ח סעיף קטן ז טרח בדברי המגן אברהם, ולא ידעתי על מה, שהרי כוונתו ברורה כמו שכתבתי. ועיין ח"י סעיף קטן ט בדגן שנתחמץ בעת גידולו, ועבר עליו הפסח, דמותר; דגידולין הוי כחליפין, עיין שם. ועיין פרי חדש שהכריע לקולא לגמרי בתפיסת הדמים, דמותרים אפילו למחליף עצמו, או להמוכרם, עיין שם. וקשה לומר כן. אך בהפסד גדול כתב הגר"ז בסעיף יב שיכולין לסמוך על זה, עיין שם. ובפרט שכן נראה דעת הבית יוסף. ודייק ותמצא קל.)