A mobile terminal comprising: a wireless communication unit configured to perform short range communication with an external payment terminal ; a touchscreen configured to detect a touch gesture; a sensing unit configured to detect a motion gesture i ; a memory ; and a controller , the memory and the controller being configured to: permanently store a password for a payment via the external payment terminal in the memory , set at least a touch gesture and a motion gesture along a specific track for the password, and control the wireless communication unit to establish the short range communication with the external payment terminal when the mobile terminal is within a predetermined distance of the external payment terminal , and maintain the initiated short range communication, wherein the controller is further configured to detect selection of a hard key of the mobile terminal , and control the wireless communication unit to transmit the stored password to the external payment terminal via the short range communication when the set at least touch gesture or motion gesture along the specific track is detected within a prescribed time after the selection of the hard key. a wireless communication unit configured to perform short range communication with an external payment terminal ; a touchscreen configured to detect a touch gesture; a sensing unit configured to detect a motion gesture i ; a memory ; and a controller , the memory and the controller being configured to: permanently store a password for a payment via the external payment terminal in the memory , set at least a touch gesture and a motion gesture along a specific track for the password, and control the wireless communication unit to establish the short range communication with the external payment terminal when the mobile terminal is within a predetermined distance of the external payment terminal , and maintain the initiated short range communication, wherein the controller is further configured to detect selection of a hard key of the mobile terminal , and control the wireless communication unit to transmit the stored password to the external payment terminal via the short range communication when the set at least touch gesture or motion gesture along the specific track is detected within a prescribed time after the selection of the hard key. permanently store a password for a payment via the external payment terminal in the memory , set at least a touch gesture and a motion gesture along a specific track for the password, and control the wireless communication unit to establish the short range communication with the external payment terminal when the mobile terminal is within a predetermined distance of the external payment terminal , and maintain the initiated short range communication, wherein the controller is further configured to detect selection of a hard key of the mobile terminal , and control the wireless communication unit to transmit the stored password to the external payment terminal via the short range communication when the set at least touch gesture or motion gesture along the specific track is detected within a prescribed time after the selection of the hard key. <EOS>