The invention relates to a method and system that utilizes one or more cassettes or trays that hold medicaments for dispensing. In one embodiment a medicaments container includes a housing configured to be inserted in an apparatus; a chamber coupled to the housing and configured to store a plurality of medicament units; and control logic disposed within the housing and configured to determine whether the medicaments container is authorized for operation with the apparatus, and to generate an alert if the medicaments container is not authorized for the apparatus.