Unless a buyer has notice of the actual or intended assignment of a closed-end credit agreement or an open-end credit agreement, payment made by the buyer to the last known holder of the agreement shall, to the extent of the payment, discharge the buyer's obligation.