摘要 |
Disclosed is a browser applied to a POS terminal. The browser comprises: an extension module, used for analysing a custom extension attribute; an interface rendering module, used for receiving a rendering request, analysing a hypertext markup language HTML5 file, and drawing a render tree; a magnetic card control component module, used for obtaining magnetic card information, and encrypting plaintext magnetic track data corresponding to the magnetic card information; a card number input control component module, used for encrypting inputted card number data; a code input control component module, used for encrypting inputted code data, and sending the encrypted data to a transaction backend; a script module, used for analysing a script code to obtain a script function, and executing a script action corresponding to the script function; a variable engine module, used for performing binding with an interface element, so as to implement a synchronisation update of a variable and an interface; an event distribution module, used for connecting the browser to a bottom layer module, and sending an event of the browser interface to the bottom layer module after packaging. |