主权项 |
1. A method of dispensing a beverage at a beverage dispenser, the method comprising:
receiving, by the beverage dispenser, a smartcup identifier and a dynamic token from a smartcup reader, the smartcup identifier and the dynamic token being read from a smartcup tag; sending, by the beverage dispenser, a smartcup authentication request including the smartcup identifier and the dynamic token to a smartcup server computer, wherein the smartcup server computer validates the authenticity of the smartcup identifier and the dynamic token and determines a dispense decision associated with the smartcup identifier; receiving, by the beverage dispenser, a smartcup authentication response including the dispense decision, wherein the dispense decision indicates whether the beverage dispenser is authorized to dispense the beverage; determining, by the beverage dispenser, that the dispense decision is affirmative; determining, by the beverage dispenser, an updated dynamic token for the smartcup tag; updating, by the beverage dispenser, the dynamic token of the smartcup tag with the updated dynamic token; and dispensing, by the beverage dispenser, the beverage in a cup. |