This is a controversy between DeBruce Grain, Inc. (DeBruce), purchaser of corn under a contract for future delivery from Shore, Ltd. (Shore), and Ag Services of America, Inc. (Ag Services), which has a perfected security interest in Shore s corn. On appeal, DeBruce argues that the trial court erred in granting judgment to Ag Services. We affirm.
On February 1,1995, Shore, a farming partnership, entered into a contract with DeBruce whereby DeBruce agreed to buy 30,000 *583bushels of com from Shore for $2,735 per bushel. Delivery was to take place in December 1995.
On March 30, 1995, Shore executed a promissory note and security agreement with Ag Services which granted Ag Services a security interest in all of Shore’s equipment, accounts, farm products, crops, and other property. On May 9, 1995, Ag Services advanced Shore $132,000 to enable Shore to pay the expenses of growing its 1995 crops, which included the com to be delivered to DeBruce. Ag Services perfected its security interest by fifing its financing statements with the Secretary of State. On June 12,1995, Ag Services notified DeBruce of its security interest in Shore’s farm products as required by the provisions of the Federal Food Security Act, 7 U.S.C. 1631 (1994).
In December 1995, Shore delivered 8,288.04 bushels of com to DeBruce and notified DeBruce that it would make no further deliveries of com under their contract. The amount due to Shore for the delivered corn was $22,667.68. DeBruce bought corn on the open market for $21,870.47 to make up for the balance of what Shore had contracted to deliver to DeBruce. Instead of issuing a check to Ag Services and Shore for $22,667.68, DeBruce deducted the amount it paid for the com purchased on the open market and issued Shore and Ag Services a check for $797.21.
Ag Services sued DeBruce for $21,870.47, claiming that it acquired an interest in Shore’s com under the security agreement and that its security interest was superior to DeBruce’s right of setoff in Shore’s com. The case was tried on stipulated facts. The trial court found that Ag Services’ security interest in Shore’s corn was superior to DeBruce’s right of setoff and granted judgment to Ag Services in the amount of $21,870.47, plus interest. DeBruce timely appeals.
On appeal, DeBruce contends that the trial court erred in finding that Ag Services’ security interest was superior to DeBruce’s contractual right of setoff. This issue has not been addressed by the appellate courts of Kansas, and we have been unable to find cases from other jurisdictions in which appellate courts have ruled on the issue.
*584Barkley Clark’s treatise on the Uniform Commercial Code analyzed an example that is similar to the issue raised by DeBruce:
“Farmer forward-contracts with a local elevator to deliver 5,000 bushels of wheat presently growing on his farm. The wheat is to be delivered to the elevator at harvest. Shortly thereafter, Farmer grants a security interest in the growing wheat to Country Bank, which properly perfects by filing a local financing statement. After the wheat is harvested, but before delivery to the elevator, Farmer goes into default on his Country Bank loan. Both the local elevator and Country Bank claim priority to the wheat.
“In this forward-contract situation, Country Bank has a strong argument that Farmer had sufficient rights in the collateral for the security interest to attach. Country Bank would contend that Farmer had not contracted to sell particular wheat but only to deliver 5,000 bushels of wheat, which could be bought in the open market. More significantly, since wheat is fungible and not unique, the local elevator never had a right to specific performance under § 2-716; it had only a cause of action for damages. Therefore, Farmer still had rights in the collateral at the time the security interest was granted and before delivery, with power to prevail over the competing purchaser under § 9-201.” Clark, The Law of Secured Transactions Under tire Uniform Commercial Code ¶ 8.05[2][b], pp. 8-48-49 (rev. ed. 1994) (hereinafter referred to as The Law of Secured Transactions).
No party questions Ag Services’ perfected security interest in the corn that Shore delivered to DeBruce and that DeBruce is a buyer of farm products. The only question is whether Ag Services’ security interest in Shore’s com is superior to DeBrace’s right of setoff pursuant to its contract with Shore. Clark hypothesizes in his example that the bank probably had priority over the elevator for the following reasons:
“Reinforcing Country Bank’s argument [that it has priority] is § 2-402(1), which strongly suggests that unsecured creditors of a seller of goods (which under § 2-107[2] include growing crops sold apart from the realty) prevail over the rights of the buyer to recover the goods, at least in cases where the goods are not unique. If such priority is given to unsecured creditors of the seller, Article 9 secured creditors would seem to qualify even more strongly. In fact, § 2- 402(3)(a) makes it clear that nothing in Article 2 should be deemed to impair the rights of Article 9 secured creditors. To top it off, § 9-307 subordinates a buyer of crops in ordinary course to a security interest created by his seller. In short, Country Bank will probably have priority over the local elevator.” The Law of Secured Transactions ¶ 8.05[2][b], p. 8-49.
The parties agree that under DeBruce’s contract with Shore, DeBruce had certain rights. DeBruce and Ag Services stipulated
*585“[t]hat pursuant to the Contract, upon default in the delivery of the contracted for grain, DeBruce had the contractual right to buy in com in the open market for the account of Shore Ltd. to cover tire undelivered grain and to set off the additional costs against the proceeds due Shore Ltd. for grain delivered.” (Emphasis added.)
The stipulation does not address how such rights are affected by Ag Services’ perfected security interest in the same corn.
Once the corn was sold to DeBruce, Ag Services had a claim to the proceeds because of its security interest and the notice that it had given DeBruce. Under K.S.A. 84-9-306(1), proceeds are “whatever is received upon the sale, exchange, collection or other disposition of collateral or proceeds.” K.S.A. 84-9-306(2) states:
“Except where this article otherwise provides, a security interest continues in collateral notwithstanding sale, exchange or other disposition thereof unless the disposition was authorized by the secured party in the security agreement or otherwise, and also continues in any identifiable proceeds including collections received by tire debtor.”
K.S.A. 84-9-307(1) allows buyers of goods in the ordinary course of business to take free of a security interest; however, persons buying farm products are specifically not afforded the same protection. DeBruce took delivery of Shore’s corn with knowledge of Ag Services’ security interest. The notice that Ag Services sent to DeBruce in June 1995 stated:
“The payment obligation imposed upon you, as buyer, commission merchant or selling agent to or through whom the farm products are sold which is a condition for waiver or release by the Secured Party of tire security interest of the Secured Party in the farm products described above is as follows: issuance of a check in th efull amount of the sales proceeds of the farm products jointly in the names of: (1) the Secured Party set forth above [Ag Services], as one party, and (2) the Debtor or Debtors set forth above [Shore] as the other party. You are not authorized to deduct from such sales proceeds costs incurred to market or transport the farm products.” (Emphasis added.)
Ag Services did not give DeBruce authorization for a setoff.
DeBruce claims that its rights are derived from the forward contract and not from Ag Services’ notice. DeBruce claims that Ag Services was transformed into an account debtor when the com was sold to DeBruce and that K.S.A. 84-9-318(l)(a) applies. DeBruce states: “Unless an account debtor has made an enforce*586able agreement not to assert defenses or claims arising out of a sale, the assignee is subject to all of the contractual terms between the account debtor and the assignor and any defense or claim arising therefrom.” The Kansas Comment to the statute notes of K.S.A. 84-9-318 states:
‘This subsection subjects the rights of tire assignee of chattel paper or accounts to defenses of the account debtor arising out of the contract . . . under subsection (l)(a). For example, if the account debtor had no duty to pay the assignor because the goods delivered were defective, this defense could be raised against the assignee, who steps into the assignor’s shoes for this purpose.”
We agree that if defective com had been delivered, Ag Services would only be entitled to the value of the com that was delivered; and if no com had been delivered, Ag Services would have no claim against DeBruce. We do not agree that K.S.A. 84-9-318 applies to this case where DeBruce asserts that its claim for lost profits should take priority over the secured creditor who advanced the funds to grow the corn.
We fail to see how Ag Services is transformed from a secured party into an assignee of an account debtor. K.S.A. 84-9-317 clearly states: “The mere existence of a security interest or authority given to the debtor to dispose of or use collateral does not impose contract or tort liability upon the secured party for the debtor s acts or omissions.”
None of the cases cited by DeBruce for the proposition that Ag Services is nothing more than an assignee of account debtor Shore deal with the sale of farm products. The cases deal with situations where a specific assignment of the right had been executed, and that is not the fact in the instant case. In Commerce Bank, N.A. v. Chrysler Realty Corp., 76 F. Supp. 2d 1113 (D. Kan. 1999), even where there was an assignment of factory receivables, the Kansas United States District Court held that K.S.A. 84-9-318 did not apply because the debtor s obligation to pay was merely a collateral agreement in which the method of payment was established. 76 F. Supp. 2d at 1121-22.
Ag Services did all that was required under Kansas law and the Food Security Act in perfecting its security interest and notifying DeBruce of its interest in Shore’s com. We hold that a buyer of *587farm products in the ordinary course of business is not entitled to use setoffs it has against the seller to diminish the secured party’s interest in the farm products. Ag Services is not hable for the claims that DeBruce has against Shore. Ag Services’ right to the payment for the corn delivered to DeBruce by Shore is not subject to a setoff by DeBruce. Because DeBruce paid Ag Services only for the difference between the payment for corn purchased under the contract and the value of the delivered corn, Ag Services is entitled to $21,870.47, which is the balance of what was owed on the com delivered to DeBruce. The trial court did not err in awarding judgment to Ag Services.
Affirmed.