A non-transitory computer-readable storage medium, having a computer program stored therein, the computer program, when executed by a processor of a first electronic device for controlling an electronic locker, the electronic locker being configured with a biometric feature collection device and a plurality of electronic storage compartments, the first electronic device comprising a memory, a processor, and a computer program stored in the memory, and the processor, when executing the program, causing the first electronic device to implement a method for controlling the electronic locker, the method comprising:
- invoking the biometric feature collection device to collect a second biometric feature of a first target object in response to a pickup operation of the first target object for accessing the electronic locker;
- matching the second biometric feature of the first target object with first biometric features stored in a biometric feature database;
- transmitting a payment request to a first server when one of the first biometric features matching the second biometric feature exists in the biometric feature database;
- and
- opening a target electronic storage compartment in the electronic locker according to a first target order associated with the first target object after receiving a payment success response returned by the first server.