WO2019227462A1 - Scan code payment and test method and system controlling barcode - Google Patents

Scan code payment and test method and system controlling barcode Download PDF

Info

Publication number
WO2019227462A1
WO2019227462A1 PCT/CN2018/089520 CN2018089520W WO2019227462A1 WO 2019227462 A1 WO2019227462 A1 WO 2019227462A1 CN 2018089520 W CN2018089520 W CN 2018089520W WO 2019227462 A1 WO2019227462 A1 WO 2019227462A1
Authority
WO
WIPO (PCT)
Prior art keywords
payment
scanning
code
barcode
cash register
Prior art date
Application number
PCT/CN2018/089520
Other languages
French (fr)
Chinese (zh)
Inventor
林继燊
林晋安
Original Assignee
福建联迪商用设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 福建联迪商用设备有限公司 filed Critical 福建联迪商用设备有限公司
Priority to CN201880000509.2A priority Critical patent/CN108701389A/en
Priority to PCT/CN2018/089520 priority patent/WO2019227462A1/en
Publication of WO2019227462A1 publication Critical patent/WO2019227462A1/en

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0036Checkout procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/0095Testing the sensing arrangement, e.g. testing if a magnetic card reader, bar code reader, RFID interrogator or smart card reader functions properly

Definitions

  • the present invention relates to the field of software testing, and in particular, to a method and system for testing scanning payment by controlling barcodes.
  • the cash register is the product of the combination of the development of microelectronic technology and modern commodity circulation management concepts and technological development, while the commercial electronic cash register is one of the basic electronic equipments necessary for modern and automated business management.
  • the technical problem to be solved by the present invention is to provide a scanning code payment test method and system for controlling barcodes, which realizes a long-term automatic test of a cash register.
  • the technical solution adopted by the present invention is:
  • a scanning code payment testing method for controlling a barcode including the steps:
  • the code scanning and cash registering process is started, and the cash register generates a code scanning and payment instruction, and sends the code scanning and payment instruction to a payment device.
  • the payment device receives the scan code payment instruction and enters a barcode interface.
  • the cash register scans the bar code interface to obtain bar code information, and completes scan code payment.
  • a code scanning payment test system for controlling a barcode includes a cash register and a payment device end.
  • the cash register includes a first memory, a first processor, and a first memory stored on the first memory and operable on the first processor.
  • the payment device includes a second memory, a second processor, and a second computer program stored on the second memory and operable on the second processor.
  • the first processor executes the first processor.
  • a computer program implements the following steps:
  • the beneficial effects of the present invention are: a code scanning payment test method and system for controlling a bar code, and through a cash register automatic test software on a cash register, a code scanning payment instruction is sent to an automatic payment program, so that a payment device end enters a bar code interface.
  • the code scanning device on the cash register can scan and return the bar code information to the cash register software to complete the code scanning payment.
  • the automatic payment process under real conditions is realized, that is, the invention can It replaces the manual operation process and realizes long-term automatic testing of the cash register. At the same time, it is simple to set up, low in cost, easy to implement, and easy to promote and use.
  • FIG. 1 is a schematic flowchart of a code scanning payment test method for controlling a barcode according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for controlling scanning and payment of barcodes according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a scanning scanning payment control system for controlling barcodes according to an embodiment of the present invention.
  • a scanning scanning payment test system for controlling bar codes 2. Cash register; 3. First processor; 4. First memory; 5. Payment device side; 6. Second memory; 7. Second processor.
  • the most critical idea of the present invention is: controlling the payment device side to enter the barcode interface, realizing the automatic payment process under real conditions, and thus realizing the long-term automatic test of the cash register.
  • a code scanning test method for controlling barcodes including steps:
  • the code scanning and cash registering process is started, and the cash register generates a code scanning and payment instruction, and sends the code scanning and payment instruction to a payment device.
  • the payment device receives the scan code payment instruction and enters a barcode interface.
  • the cash register scans the bar code interface to obtain bar code information, and completes scan code payment.
  • the beneficial effect of the present invention is that the code scanning payment instruction is sent to the automatic payment program through the cash register automatic testing software on the cash register, so that the payment device end enters the barcode interface.
  • the code scanning device on the cash register is It can scan and return the barcode information to the cash register software to complete the scan code payment. Not only can it ensure that the payment fails due to the bar code expiration, but also through the cooperation of the cash register and the payment device, realizing automatic payment under real conditions.
  • the process that is, the present invention can replace the manual operation process, realize the long-term automatic test of the cash register, meanwhile, it is simple to set up, low in cost, easy to implement, and convenient for popularization and use.
  • step S1 the following steps are further included:
  • the cash register After the cash register is started, it is judged whether to enter the code scanning cash register. If it is, the code scanning cash register process is started. If it is not entered, the test continues.
  • step S3 After obtaining the barcode information in step S3, the following steps are performed: sending a payment request instruction to the payment device.
  • the payment device side After receiving the payment request instruction, the payment device side performs the following steps:
  • completing the scan code payment in the step S3 specifically includes the following steps:
  • the cash register receives the payment success information and completes the scan code payment.
  • the current payment software can be used for non-secret payments for small payments, but in order to ensure the safety of the user's property, the following payment policies will be introduced: After performing the non-secret payment to a preset number of times, the payment software requires For password-secret payment, you need to enter the password at this time for subsequent testing. Therefore, the above technical solution is to overcome this phenomenon to ensure that the cash register can perform automatic test for a long time.
  • the payment device may restart or the automatic payment program may be closed.
  • the payment password is set in advance on the payment device side, and when it is determined that confidential payment is required, the payment password is automatically called to confirm payment.
  • the payment password can be automatically entered without manual intervention to ensure that the cash register can perform a long-term automated test.
  • step S3 further includes:
  • the cash register generates a barcode exit instruction, and sends the barcode exit instruction to a payment device end;
  • the payment device end receives the barcode exit instruction and exits the barcode interface.
  • step S3 further includes:
  • the payment device After the payment device generates payment success information, it exits the barcode interface.
  • the payment device is a mobile phone or a tablet
  • the payment software is Alipay or WeChat.
  • a barcode scanning test system for controlling bar codes includes a cash register and a payment device end.
  • the cash register includes a first memory, a first processor, and a first memory stored in the first memory.
  • a first computer program running on a processor, the payment device end including a second memory, a second processor, and a second computer program stored on the second memory and operable on the second processor,
  • the beneficial effect of the present invention is that the code scanning payment instruction is sent to the automatic payment program through the cash register automatic testing software on the cash register, so that the payment device end enters the barcode interface.
  • the code scanning device on the cash register is It can scan and return the barcode information to the cash register software to complete the scan code payment. Not only can it ensure that the payment fails due to the bar code expiration, but also through the cooperation of the cash register and the payment device, realizing automatic payment under real conditions.
  • the process that is, the present invention can replace the manual operation process, realize the long-term automatic test of the cash register, meanwhile, it is simple to set up, low in cost, easy to implement, and convenient for popularization and use.
  • step S1 when the first processor executes the first computer program, the following steps are implemented before the step S1:
  • step S3 After obtaining the barcode information in step S3, the following steps are performed: sending a payment request instruction to the payment device.
  • the second processor implements the following steps when the second processor executes the second computer program:
  • the completion of the scan code payment in the step S3 specifically includes the following steps: receiving payment success information and completing the scan code payment;
  • the current payment software can be used for non-secret payments for small payments, but in order to ensure the safety of the user's property, the following payment policies will be introduced: After performing the non-secret payment to a preset number of times, the payment software requires For password-secret payment, you need to enter the password at this time for subsequent testing. Therefore, the above technical solution is to overcome this phenomenon to ensure that the cash register can perform automatic test for a long time.
  • the payment device may restart or the automatic payment program may be closed.
  • the payment password is set in advance on the payment device side, and when it is determined that confidential payment is required, the payment password is automatically called to confirm payment.
  • the payment password can be automatically entered without manual intervention to ensure that the cash register can perform a long-term automated test.
  • step S3 further includes:
  • the second processor implements the following steps when executing the second computer program: exiting the barcode interface.
  • the second processor implements the following steps when executing the second computer program: exiting the barcode interface.
  • the payment device is a mobile phone or a tablet
  • the payment software is Alipay or WeChat.
  • the first embodiment of the present invention is:
  • a scanning code payment testing method for controlling a barcode including the steps:
  • the cash register After the cash register is started, it is judged whether to enter the code scanning cashier. If it is, the code scanning cashier process is started. If it is not entered, the test continues.
  • the code scanning and cash registering process is started, and the cash register generates a code scanning and payment instruction, and sends the code scanning and payment instruction to the payment device;
  • the payment device receives the scan code payment instruction and enters the barcode interface
  • the cash register scans the barcode interface, obtains the barcode information, and sends a payment request instruction to the payment device.
  • the payment device receives the payment request instruction and determines whether the payment software needs to perform secret payment. If so, enter the payment password to confirm the payment and generate payment success information; otherwise, directly generate payment success information;
  • the cash register receives the payment success information and completes the scan code payment
  • the cash register generates a barcode exit instruction and sends the barcode exit instruction to the payment device;
  • the payment device end receives the barcode exit instruction and exits the barcode interface.
  • the automatic payment program when the payment device is restarted or the automatic payment program running on the payment device is closed, the automatic payment program will be started automatically.
  • the payment device in this embodiment is an android system mobile phone, an ios system mobile phone, an android system tablet, or an ios system tablet, which can display a bar code and perform payment.
  • the payment software can be completed by Alipay or WeChat. Paid software is available.
  • the second embodiment of the present invention is:
  • a scanning test method for controlling barcode scanning is different from the first embodiment in the trigger condition of the payment device exiting the barcode interface.
  • the cash register sends an instruction to control the payment device to exit the barcode interface after completing the receipt.
  • the steps of the second embodiment instead of the first embodiment are as follows:
  • the payment device After the payment device generates payment success information, it exits the barcode interface.
  • the barcode interface is exited after the payment device completes the payment.
  • a third embodiment of the present invention is:
  • a scanning scanning payment test system 1 for controlling a bar code includes a cash register 2 and a payment device end 5.
  • the cash register 2 includes a first memory 4, a first processor 3, and stored in the first memory 4 and can be processed in the first process.
  • the first computer program running on the device 3, and the payment device end 5 includes a second memory 6, a second processor 7, and a second computer program stored on the second memory 6 and executable on the second processor 7.
  • the payment device terminal 5 in this embodiment may be a device that can display a barcode and make a payment, such as an android system mobile phone, an ios system mobile phone, an android system tablet, or an ios system tablet, and the payment software is Alipay or WeChat.
  • the software for completing payment may be used, and communication between the payment device end 5 and the cash register 2 is performed through wifi.
  • the cash register 2 includes cash register software and cash register automatic test software.
  • the cash register software refers to software that supports the scan code and receipt function on the cash register 2.
  • the automatic cash register test software can realize the automatic test function of the cash register software. It can communicate with wifi and payment devices.
  • the terminal 5's automatic payment program performs information transmission.
  • the automatic payment program is an automated test script running on the payment device 5 and includes the following functions:
  • Scan code payment instruction control the payment device 5 to enter the barcode interface of the payment software
  • Request payment instruction make a payment, determine whether the payment software needs to perform secret payment, and if so, enter secret payment; otherwise, pay without secret and complete the real payment process;
  • Barcode exit instruction Control payment device 5 to exit the barcode interface.
  • the code scanning fixing device for fixing the code scanning device and the payment device end 5 enables the barcode displayed on the payment device end 5 to be located in the code scanning area of the code scanning device.
  • the code scanning device is guaranteed Can scan the code successfully, so as to make code payment.
  • a fourth embodiment of the present invention is:
  • a scanning scanning payment test system 1 for controlling barcodes The difference from the third embodiment lies in the triggering conditions for the payment device 5 to exit the barcode interface.
  • the cash register 2 sends an instruction to control the payment device 5 after completing the receipt.
  • the steps of this fourth embodiment instead of the third embodiment are as follows:
  • Embodiment 4 exits the barcode interface after the payment device 5 completes the payment.
  • the present invention provides a barcode scanning test method and system for controlling barcodes, which sends barcode scanning instructions to automatic payment programs through the cash register automatic test software on the cash register, so that the payment equipment end can enter the barcode interface.
  • the code scanning device on the cash register can scan and return the barcode information to the cash register software to complete the code scanning payment.
  • the automatic payment process in the real situation is realized, that is, this The invention can replace the manual operation process and realize the long-term automated test of the cash register; at the same time, by exiting the bar code interface to avoid bar code expiration, self-starting of the automatic payment program, judging and automatically executing the input and secret payment, thereby further ensuring
  • the present invention only needs to add a payment device end to the original cash register as a whole, which is simple to set up, low in cost, easy to implement, and convenient for popularization. ....

Abstract

A scan code payment and test method and system controlling a barcode. The method comprises: starting a scan code cash collection process, a cash register generating a scan code payment instruction and sending the scan code payment instruction to a payment device terminal (S1); the payment device terminal receiving the scan code payment instruction and entering a bar code interface (S2); and the cash register scanning the bar code interface so as to acquire bar code information, and completing the scan code payment (S3). The method realizes an automatic payment process in a real scenario through the cooperation of a cash register and a payment device terminal, and realizes long-term automatic testing of the cash register; the method is easy to set up, low in cost, easy to implement, and convenient in promotion and usage.

Description

一种控制条码的扫码支付测试方法及系统Scan code payment test method and system for controlling bar code 技术领域Technical field
本发明涉及软件测试领域,特别涉及一种控制条码的扫码支付测试方法及系统。The present invention relates to the field of software testing, and in particular, to a method and system for testing scanning payment by controlling barcodes.
背景技术Background technique
收银机是微电子技术发展及现代化商品流通管理理念和技术发展结合的产物,而商业电子收银机则是现代化、自动化商业管理必不可少的基本电子设备之一。The cash register is the product of the combination of the development of microelectronic technology and modern commodity circulation management concepts and technological development, while the commercial electronic cash register is one of the basic electronic equipments necessary for modern and automated business management.
使用正常收银机进行扫码支付时,需要手机打开支付宝,进入条码界面,对准收银软件的扫码设备进行扫码支付,而且在进行多次支付后,因支付宝支付策略影响,需要进行输密支付,操作繁琐;在进行收银软件拷机测试时,需要人工操作,增加人工成本。When using a normal cash register to perform code scanning payment, you need to open Alipay on your mobile phone, enter the barcode interface, and scan the code with the code scanning device of the cash register software. After making multiple payments, due to the influence of Alipay's payment strategy, you need to enter a password. Payment and operation are tedious; when testing the cash register software copy machine, manual operation is required, increasing labor costs.
技术问题technical problem
本发明所要解决的技术问题是:提供一种控制条码的扫码支付测试方法及系统,实现了收银机的长时间自动化测试。The technical problem to be solved by the present invention is to provide a scanning code payment test method and system for controlling barcodes, which realizes a long-term automatic test of a cash register.
技术解决方案Technical solutions
为了解决上述技术问题,本发明采用的技术方案为:In order to solve the above technical problems, the technical solution adopted by the present invention is:
一种控制条码的扫码支付测试方法,包括步骤:A scanning code payment testing method for controlling a barcode, including the steps:
S1、启动扫码收银流程,收银机生成扫码支付指令,并将所述扫码支付指令发送至支付设备端;S1. The code scanning and cash registering process is started, and the cash register generates a code scanning and payment instruction, and sends the code scanning and payment instruction to a payment device.
S2、所述支付设备端接收所述扫码支付指令,进入条码界面;S2. The payment device receives the scan code payment instruction and enters a barcode interface.
S3、所述收银机扫描所述条码界面,获取条码信息,完成扫码支付。S3. The cash register scans the bar code interface to obtain bar code information, and completes scan code payment.
为了解决上述技术问题,本发明采用的另一种技术方案为:In order to solve the above technical problems, another technical solution adopted by the present invention is:
一种控制条码的扫码支付测试系统,包括收银机、支付设备端,所述收银机包括第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的第一计算机程序,所述支付设备端包括第二存储器、第二处理器及存储在第二存储器上并可在第二处理器上运行的第二计算机程序,所述第一处理器执行所述第一计算机程序时实现以下步骤:A code scanning payment test system for controlling a barcode includes a cash register and a payment device end. The cash register includes a first memory, a first processor, and a first memory stored on the first memory and operable on the first processor. A computer program. The payment device includes a second memory, a second processor, and a second computer program stored on the second memory and operable on the second processor. The first processor executes the first processor. A computer program implements the following steps:
S1、启动扫码收银流程,生成扫码支付指令,并将所述扫码支付指令发送至支付设备端;S1. Start a code scanning and cash register process, generate a code scanning payment instruction, and send the code scanning payment instruction to a payment device end;
S3、扫描所述支付设备端的条码界面,获取条码信息,完成扫码支付;S3. Scan the barcode interface on the payment device side to obtain barcode information and complete the scan code payment;
所述第二处理器执行所述第二计算机程序时实现以下步骤:When the second processor executes the second computer program, the following steps are implemented:
S2、接收所述扫码支付指令,进入条码界面。S2. Receive the scan code payment instruction and enter the barcode interface.
有益效果Beneficial effect
本发明的有益效果在于:一种控制条码的扫码支付测试方法及系统,通过收银机上的收银自动测试软件,将扫码支付指令发给自动支付程序,让支付设备端进入条码界面,这时,收银机上的扫码设备就能进行扫描,并将条码信息返回至收银软件,从而完成扫码支付,通过收银机和支付设备端的配合,实现了真实情况下自动支付的流程,即本发明能替代人工操作流程,实现了收银机的长时间自动化测试,同时搭建简易,成本低,易于实现,便于推广使用。The beneficial effects of the present invention are: a code scanning payment test method and system for controlling a bar code, and through a cash register automatic test software on a cash register, a code scanning payment instruction is sent to an automatic payment program, so that a payment device end enters a bar code interface. The code scanning device on the cash register can scan and return the bar code information to the cash register software to complete the code scanning payment. Through the cooperation of the cash register and the payment device, the automatic payment process under real conditions is realized, that is, the invention can It replaces the manual operation process and realizes long-term automatic testing of the cash register. At the same time, it is simple to set up, low in cost, easy to implement, and easy to promote and use.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明实施例的一种控制条码的扫码支付测试方法的主要流程示意图;FIG. 1 is a schematic flowchart of a code scanning payment test method for controlling a barcode according to an embodiment of the present invention; FIG.
图2为本发明实施例的一种控制条码的扫码支付测试方法的具体流程示意图;FIG. 2 is a schematic flowchart of a method for controlling scanning and payment of barcodes according to an embodiment of the present invention; FIG.
图3为本发明实施例的一种控制条码的扫码支付测试系统的框架示意图。FIG. 3 is a schematic diagram of a scanning scanning payment control system for controlling barcodes according to an embodiment of the present invention.
标号说明:Label description:
1、一种控制条码的扫码支付测试系统;2、收银机;3、第一处理器;4、第一存储器;5、支付设备端;6、第二存储器;7、第二处理器。1. A scanning scanning payment test system for controlling bar codes; 2. Cash register; 3. First processor; 4. First memory; 5. Payment device side; 6. Second memory; 7. Second processor.
本发明的实施方式Embodiments of the invention
为详细说明本发明的技术内容、所实现目的及效果,以下结合实施方式并配合附图予以说明。In order to explain the technical content, achieved objectives, and effects of the present invention in detail, the following describes in combination with the embodiments and the accompanying drawings.
本发明最关键的构思在于:控制支付设备端进入条码界面,实现了真实情况下自动支付的流程,从而实现了收银机的长时间自动化测试。The most critical idea of the present invention is: controlling the payment device side to enter the barcode interface, realizing the automatic payment process under real conditions, and thus realizing the long-term automatic test of the cash register.
请参照图1以及图2,一种控制条码的扫码支付测试方法,包括步骤:Please refer to FIG. 1 and FIG. 2, a code scanning test method for controlling barcodes, including steps:
S1、启动扫码收银流程,收银机生成扫码支付指令,并将所述扫码支付指令发送至支付设备端;S1. The code scanning and cash registering process is started, and the cash register generates a code scanning and payment instruction, and sends the code scanning and payment instruction to a payment device.
S2、所述支付设备端接收所述扫码支付指令,进入条码界面;S2. The payment device receives the scan code payment instruction and enters a barcode interface.
S3、所述收银机扫描所述条码界面,获取条码信息,完成扫码支付。S3. The cash register scans the bar code interface to obtain bar code information, and completes scan code payment.
从上述描述可知,本发明的有益效果在于:通过收银机上的收银自动测试软件,将扫码支付指令发给自动支付程序,让支付设备端进入条码界面,这时,收银机上的扫码设备就能进行扫描,并将条码信息返回至收银软件,从而完成扫码支付,不仅能保证不会因为条码过期而导致的支付失败,同时通过收银机和支付设备端的配合,实现了真实情况下自动支付的流程,即本发明能替代人工操作流程,实现了收银机的长时间自动化测试,同时搭建简易,成本低,易于实现,便于推广使用。As can be seen from the above description, the beneficial effect of the present invention is that the code scanning payment instruction is sent to the automatic payment program through the cash register automatic testing software on the cash register, so that the payment device end enters the barcode interface. At this time, the code scanning device on the cash register is It can scan and return the barcode information to the cash register software to complete the scan code payment. Not only can it ensure that the payment fails due to the bar code expiration, but also through the cooperation of the cash register and the payment device, realizing automatic payment under real conditions. The process, that is, the present invention can replace the manual operation process, realize the long-term automatic test of the cash register, meanwhile, it is simple to set up, low in cost, easy to implement, and convenient for popularization and use.
进一步的,所述步骤S1之前还包括以下步骤:Further, before step S1, the following steps are further included:
收银机启动后,判断是否进入扫码收银,若是,则启动扫码收银流程,若未进入,则保持继续测试状态。After the cash register is started, it is judged whether to enter the code scanning cash register. If it is, the code scanning cash register process is started. If it is not entered, the test continues.
由上述描述可知,由上述描述可知,收银机在启动后未测试扫码收银,则一直处于等待状态,以便于在获取到进入扫码收银后启动扫码收银流程。It can be known from the foregoing description that it can be known from the foregoing description that after the cash register has not tested the scan-code cashier after startup, it has been in a waiting state so as to start the scan-code cashier process after acquiring the code-scanner.
进一步的,所述步骤S3中获取条码信息后进行以下步骤:向所述支付设备端发送请求支付指令。Further, after obtaining the barcode information in step S3, the following steps are performed: sending a payment request instruction to the payment device.
进一步的,所述支付设备端接收所述请求支付指令后进行以下步骤:Further, after receiving the payment request instruction, the payment device side performs the following steps:
判断支付软件是否需要进行输密支付,若是,则输入支付密码以确认支付,生成支付成功信息,否则直接生成支付成功信息。Determine whether the payment software needs to perform secret payment. If so, enter the payment password to confirm the payment and generate payment success information, otherwise generate payment success information directly.
进一步的,所述步骤S3中完成扫码支付具体包括以下步骤:Further, completing the scan code payment in the step S3 specifically includes the following steps:
所述收银机接收支付成功信息,完成扫码支付。The cash register receives the payment success information and completes the scan code payment.
由上述描述可知,现在的支付软件,对于小额支付,可以进行免密支付,但为了保证用户的财产安全,都会出台以下的支付策略:在进行免密支付到预设次数后,支付软件需要进行输密支付,这时候就需要输入密码,以进行后续的测试,故而上述的技术方案正是为了克服这种现象,以保证收银机进行长时间自动化测试。From the above description, it can be known that the current payment software can be used for non-secret payments for small payments, but in order to ensure the safety of the user's property, the following payment policies will be introduced: After performing the non-secret payment to a preset number of times, the payment software requires For password-secret payment, you need to enter the password at this time for subsequent testing. Therefore, the above technical solution is to overcome this phenomenon to ensure that the cash register can perform automatic test for a long time.
进一步的,还包括步骤:Further, it includes steps:
所述支付设备端重启或运行于所述支付设备端上的自动支付程序被关闭时,将自启动自动支付程序。When the payment device is restarted or the automatic payment program running on the payment device is closed, the automatic payment program will be started automatically.
由上述描述可知,在进行测试的过程中,支付设备端有可能出现重启或是自动支付程序被关闭的现象,将自动支付程序设置为自启动,避免出现上述意外情况导致测试失败,即能进一步保证收银机进行长时间自动化测试。It can be known from the above description that during the test process, the payment device may restart or the automatic payment program may be closed. Set the automatic payment program to self-start to avoid the above-mentioned unexpected situations that cause the test to fail. Guarantee long-term automated testing of cash registers.
进一步的,所述支付密码为在所述支付设备端中预先设置,在判断需要输密支付时,自动调用所述支付密码以确认支付。Further, the payment password is set in advance on the payment device side, and when it is determined that confidential payment is required, the payment password is automatically called to confirm payment.
由上述描述可知,在需要输密支付时,可自动输入支付密码,无需人工干预,以保证收银机进行长时间自动化测试。It can be known from the above description that when the secret payment is required, the payment password can be automatically entered without manual intervention to ensure that the cash register can perform a long-term automated test.
进一步的,所述步骤S3还包括:Further, the step S3 further includes:
所述收银机生成条码退出指令,并将所述条码退出指令发送至支付设备端;The cash register generates a barcode exit instruction, and sends the barcode exit instruction to a payment device end;
所述支付设备端接收所述条码退出指令,退出条码界面。The payment device end receives the barcode exit instruction and exits the barcode interface.
由上述描述可知,现有的支付程序对于生成的条码信息都有一定的时效性,通常情况下只有短短的一分钟,而对收银机的拷机测试将远远多于该时间,为了避免因为条码过期而导致的支付失败,在进行支付完成后,控制支付软件退出条码界面,等下一次再进入时,就会生成一个新的条码界面,即使得每次所扫描的条码都是刷新后的,从而避免了条码过期,保证收银机进行长时间自动化测试。It can be known from the above description that the existing payment programs have a certain timeliness for the generated bar code information, usually only one minute, and the copy machine test of the cash register will be far more than this time. In order to avoid The payment fails due to the bar code expiration. After the payment is completed, control the payment software to exit the bar code interface. When the next time you enter it again, a new bar code interface will be generated, that is, each time the scanned bar code is refreshed. , Thereby avoiding the bar code expiration, and ensuring that the cash register performs a long-term automated test.
进一步的,所述步骤S3还包括:Further, the step S3 further includes:
所述支付设备端生成支付成功信息后,退出条码界面。After the payment device generates payment success information, it exits the barcode interface.
由上述描述可知,与上一个技术方案所要解决的技术问题一致,但该技术方案是支付设备端在完成支付的时候,就控制支付设备端退出条码界面,在避免条码过期以保证收银机进行长时间自动化测试的同时,简化流程,提高测试效率。It can be known from the above description that it is consistent with the technical problem to be solved by the previous technical solution, but the technical solution is that when the payment device side completes the payment, it controls the payment device side to exit the bar code interface, and avoids the bar code expiration to ensure that the cash register is long. At the same time of automated testing, the process is simplified and the testing efficiency is improved.
进一步的,所述支付设备端为手机或平板,所述支付软件为支付宝或微信。Further, the payment device is a mobile phone or a tablet, and the payment software is Alipay or WeChat.
由上述描述可知,在真实情况下,使用手机或平板上的进行支付宝支付或微信支付的人群比例最大,故而设定支付设备端和支付软件,使得测试环境更贴近于真实支付情况。From the above description, it can be known that in real situations, the largest proportion of people use Alipay or WeChat payment on mobile phones or tablets. Therefore, the payment device and payment software are set to make the test environment closer to the real payment situation.
如图3所示,一种控制条码的扫码支付测试系统,包括收银机、支付设备端,所述收银机包括第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的第一计算机程序,所述支付设备端包括第二存储器、第二处理器及存储在第二存储器上并可在第二处理器上运行的第二计算机程序,As shown in FIG. 3, a barcode scanning test system for controlling bar codes includes a cash register and a payment device end. The cash register includes a first memory, a first processor, and a first memory stored in the first memory. A first computer program running on a processor, the payment device end including a second memory, a second processor, and a second computer program stored on the second memory and operable on the second processor,
所述第一处理器执行所述第一计算机程序时实现以下步骤:When the first processor executes the first computer program, the following steps are implemented:
S1、启动扫码收银流程,生成扫码支付指令,并将所述扫码支付指令发送至支付设备端;S1. Start a code scanning and cash register process, generate a code scanning payment instruction, and send the code scanning payment instruction to a payment device end;
S3、扫描所述支付设备端的条码界面,获取条码信息,完成扫码支付;S3. Scan the barcode interface on the payment device side to obtain barcode information and complete the scan code payment;
所述第二处理器执行所述第二计算机程序时实现以下步骤:When the second processor executes the second computer program, the following steps are implemented:
S2、接收所述扫码支付指令,进入条码界面。S2. Receive the scan code payment instruction and enter the barcode interface.
从上述描述可知,本发明的有益效果在于:通过收银机上的收银自动测试软件,将扫码支付指令发给自动支付程序,让支付设备端进入条码界面,这时,收银机上的扫码设备就能进行扫描,并将条码信息返回至收银软件,从而完成扫码支付,不仅能保证不会因为条码过期而导致的支付失败,同时通过收银机和支付设备端的配合,实现了真实情况下自动支付的流程,即本发明能替代人工操作流程,实现了收银机的长时间自动化测试,同时搭建简易,成本低,易于实现,便于推广使用。As can be seen from the above description, the beneficial effect of the present invention is that the code scanning payment instruction is sent to the automatic payment program through the cash register automatic testing software on the cash register, so that the payment device end enters the barcode interface. At this time, the code scanning device on the cash register is It can scan and return the barcode information to the cash register software to complete the scan code payment. Not only can it ensure that the payment fails due to the bar code expiration, but also through the cooperation of the cash register and the payment device, realizing automatic payment under real conditions. The process, that is, the present invention can replace the manual operation process, realize the long-term automatic test of the cash register, meanwhile, it is simple to set up, low in cost, easy to implement, and convenient for popularization and use.
进一步的,所述第一处理器执行所述第一计算机程序时在所述步骤S1之前还实现以下步骤:Further, when the first processor executes the first computer program, the following steps are implemented before the step S1:
判断是否进入扫码收银,若是,则启动扫码收银流程,若未进入,则保持继续测试状态。Determine whether to enter the code scanning and cash register, if yes, start the code scanning and cash register process, if not, keep the test state.
由上述描述可知,收银机在启动后未测试扫码收银,则一直处于等待状态,以便于在获取到进入扫码收银后启动扫码收银流程。From the above description, it can be known that after the cash register has not tested the scan code cashier after startup, it is always in a waiting state, so that the code scan cashier process is started after the cash register is acquired.
进一步的,所述步骤S3中获取条码信息后进行以下步骤:向所述支付设备端发送请求支付指令。Further, after obtaining the barcode information in step S3, the following steps are performed: sending a payment request instruction to the payment device.
进一步的,所述支付设备端接收请求支付指令后,所述第二处理器执行所述第二计算机程序时实现以下步骤:Further, after the payment device side receives the payment request instruction, the second processor implements the following steps when the second processor executes the second computer program:
判断支付软件是否需要进行输密支付,若是,则输入支付密码以确认支付,生成支付成功信息,否则直接生成支付成功信息。Determine whether the payment software needs to perform secret payment. If so, enter the payment password to confirm the payment and generate payment success information, otherwise generate payment success information directly.
进一步的,所述步骤S3中完成扫码支付具体包括以下步骤:接收支付成功信息,完成扫码支付;Further, the completion of the scan code payment in the step S3 specifically includes the following steps: receiving payment success information and completing the scan code payment;
由上述描述可知,现在的支付软件,对于小额支付,可以进行免密支付,但为了保证用户的财产安全,都会出台以下的支付策略:在进行免密支付到预设次数后,支付软件需要进行输密支付,这时候就需要输入密码,以进行后续的测试,故而上述的技术方案正是为了克服这种现象,以保证收银机进行长时间自动化测试。From the above description, it can be known that the current payment software can be used for non-secret payments for small payments, but in order to ensure the safety of the user's property, the following payment policies will be introduced: After performing the non-secret payment to a preset number of times, the payment software requires For password-secret payment, you need to enter the password at this time for subsequent testing. Therefore, the above technical solution is to overcome this phenomenon to ensure that the cash register can perform automatic test for a long time.
进一步的,所述第二处理器执行所述第二计算机程序时实现以下步骤:Further, when the second processor executes the second computer program, the following steps are implemented:
重启或运行于所述支付设备端上的自动支付程序被关闭时,将自启动自动支付程序。When the automatic payment program running on the payment device is restarted or closed, the automatic payment program will be started automatically.
由上述描述可知,在进行测试的过程中,支付设备端有可能出现重启或是自动支付程序被关闭的现象,将自动支付程序设置为自启动,避免出现上述意外情况导致测试失败,即能进一步保证收银机进行长时间自动化测试。It can be known from the above description that during the test process, the payment device may restart or the automatic payment program may be closed. Set the automatic payment program to self-start to avoid the above-mentioned unexpected situations that cause the test to fail. Guarantee long-term automated testing of cash registers.
进一步的,所述支付密码为在所述支付设备端中预先设置,在判断需要输密支付时,自动调用所述支付密码以确认支付。Further, the payment password is set in advance on the payment device side, and when it is determined that confidential payment is required, the payment password is automatically called to confirm payment.
由上述描述可知,在需要输密支付时,可自动输入支付密码,无需人工干预,以保证收银机进行长时间自动化测试。It can be known from the above description that when the secret payment is required, the payment password can be automatically entered without manual intervention to ensure that the cash register can perform a long-term automated test.
进一步的,所述步骤S3还包括:Further, the step S3 further includes:
生成条码退出指令,并将所述条码退出指令发送至支付设备端;Generating a barcode exit instruction, and sending the barcode exit instruction to a payment device end;
所述支付设备端接收所述条码退出指令,所述第二处理器执行所述第二计算机程序时实现以下步骤:退出条码界面。When the payment device receives the barcode exit instruction, the second processor implements the following steps when executing the second computer program: exiting the barcode interface.
由上述描述可知,现有的支付程序对于生成的条码信息都有一定的时效性,通常情况下只有短短的一分钟,而对收银机的拷机测试将远远多于该时间,为了避免因为条码过期而导致的支付失败,在进行支付完成后,控制支付软件退出条码界面,等下一次再进入时,就会生成一个新的条码界面,即使得每次所扫描的条码都是刷新后的,从而避免了条码过期,保证收银机进行长时间自动化测试。It can be known from the above description that the existing payment programs have a certain timeliness for the generated bar code information, usually only one minute, and the copy machine test of the cash register will be far more than this time. In order to avoid The payment fails due to the bar code expiration. After the payment is completed, control the payment software to exit the bar code interface. When the next time you enter it again, a new bar code interface will be generated, that is, each time the scanned bar code is refreshed. , Thereby avoiding the bar code expiration, and ensuring that the cash register performs a long-term automated test.
进一步的,所述支付设备端生成支付成功信息后,所述第二处理器执行所述第二计算机程序时实现以下步骤:退出条码界面。Further, after the payment device generates the payment success information, the second processor implements the following steps when executing the second computer program: exiting the barcode interface.
由上述描述可知,与上一个技术方案所要解决的技术问题一致,但该技术方案是支付设备端在完成支付的时候,就控制支付设备端退出条码界面,在避免条码过期以保证收银机进行长时间自动化测试的同时,简化流程,提高测试效率。It can be known from the above description that it is consistent with the technical problem to be solved by the previous technical solution, but the technical solution is that when the payment device side completes the payment, it controls the payment device side to exit the bar code interface, and avoids the bar code expiration to ensure that the cash register is long. At the same time of automated testing, the process is simplified and the testing efficiency is improved.
进一步的,所述支付设备端为手机或平板,所述支付软件为支付宝或微信。Further, the payment device is a mobile phone or a tablet, and the payment software is Alipay or WeChat.
由上述描述可知,在真实情况下,使用手机或平板上的进行支付宝支付或微信支付的人群比例最大,故而设定支付设备端和支付软件,使得测试环境更贴近于真实支付情况。From the above description, it can be known that in real situations, the largest proportion of people use Alipay or WeChat payment on mobile phones or tablets. Therefore, the payment device and payment software are set to make the test environment closer to the real payment situation.
请参照图1以及图2,本发明的实施例一为:Please refer to FIG. 1 and FIG. 2, the first embodiment of the present invention is:
一种控制条码的扫码支付测试方法,包括步骤:A scanning code payment testing method for controlling a barcode, including the steps:
收银机启动后,判断是否进入扫码收银,若是,则启动扫码收银流程,若未进入,则保持继续测试状态;After the cash register is started, it is judged whether to enter the code scanning cashier. If it is, the code scanning cashier process is started. If it is not entered, the test continues.
S1、启动扫码收银流程,收银机生成扫码支付指令,并将扫码支付指令发送至支付设备端;S1. The code scanning and cash registering process is started, and the cash register generates a code scanning and payment instruction, and sends the code scanning and payment instruction to the payment device;
S2、支付设备端接收扫码支付指令,进入条码界面;S2. The payment device receives the scan code payment instruction and enters the barcode interface;
S3、收银机扫描条码界面,获取条码信息,向支付设备端发送请求支付指令;S3. The cash register scans the barcode interface, obtains the barcode information, and sends a payment request instruction to the payment device.
支付设备端接收请求支付指令,判断支付软件是否需要进行输密支付,若是,则输入支付密码以确认支付,生成支付成功信息,否则直接生成支付成功信息;The payment device receives the payment request instruction and determines whether the payment software needs to perform secret payment. If so, enter the payment password to confirm the payment and generate payment success information; otherwise, directly generate payment success information;
收银机接收支付成功信息,完成扫码支付;The cash register receives the payment success information and completes the scan code payment;
收银机生成条码退出指令,并将条码退出指令发送至支付设备端;The cash register generates a barcode exit instruction and sends the barcode exit instruction to the payment device;
支付设备端接收所述条码退出指令,退出条码界面。The payment device end receives the barcode exit instruction and exits the barcode interface.
其中,支付设备端重启或运行于支付设备端上的自动支付程序被关闭时,将自启动自动支付程序。Among them, when the payment device is restarted or the automatic payment program running on the payment device is closed, the automatic payment program will be started automatically.
其中,本实施例中的支付设备端为android系统手机或是ios系统手机或是android系统平板或是ios系统平板等能显示条码并进行支付的设备既可,支付软件为支付宝或微信等能完成支付的软件既可。Wherein, the payment device in this embodiment is an android system mobile phone, an ios system mobile phone, an android system tablet, or an ios system tablet, which can display a bar code and perform payment. The payment software can be completed by Alipay or WeChat. Paid software is available.
请参照图1以及图2,本发明的实施例二为:Please refer to FIG. 1 and FIG. 2, the second embodiment of the present invention is:
一种控制条码的扫码支付测试方法,与实施例一不同的地方在于支付设备端退出条码界面的触发条件,实施例一是由收银机完成收银之后发送指令来控制支付设备端退出条码界面,本实施例二代替上述实施例一的步骤如下:A scanning test method for controlling barcode scanning is different from the first embodiment in the trigger condition of the payment device exiting the barcode interface. In the first embodiment, the cash register sends an instruction to control the payment device to exit the barcode interface after completing the receipt. The steps of the second embodiment instead of the first embodiment are as follows:
支付设备端生成支付成功信息后,退出条码界面。After the payment device generates payment success information, it exits the barcode interface.
即实施例二是在支付设备端完成支付后就退出条码界面。That is, in the second embodiment, the barcode interface is exited after the payment device completes the payment.
请参照图3,本发明的实施例三为:Referring to FIG. 3, a third embodiment of the present invention is:
一种控制条码的扫码支付测试系统1,包括收银机2、支付设备端5,收银机2包括第一存储器4、第一处理器3及存储在第一存储器4上并可在第一处理器3上运行的第一计算机程序,支付设备端5包括第二存储器6、第二处理器7及存储在第二存储器6上并可在第二处理器7上运行的第二计算机程序,第一处理器3执行第一计算机程序时实现以下步骤:A scanning scanning payment test system 1 for controlling a bar code includes a cash register 2 and a payment device end 5. The cash register 2 includes a first memory 4, a first processor 3, and stored in the first memory 4 and can be processed in the first process. The first computer program running on the device 3, and the payment device end 5 includes a second memory 6, a second processor 7, and a second computer program stored on the second memory 6 and executable on the second processor 7. When a processor 3 executes a first computer program, the following steps are implemented:
判断是否进入扫码收银,若是,则启动扫码收银流程,若未进入,则保持继续测试状态;Determine whether to enter the code scanning cashier, if it is, start the code scanning cashier process, if not, then continue to test;
S1、启动扫码收银流程,生成扫码支付指令,并将扫码支付指令发送至支付设备端5;S1. Start the code scanning and cash register process, generate a code scanning payment instruction, and send the code scanning payment instruction to the payment device 5;
S3、扫描支付设备端5的条码界面,获取条码信息,向支付设备端5发送请求支付指令;S3. Scan the barcode interface of the payment device 5 to obtain the barcode information, and send a payment request instruction to the payment device 5;
接收支付设备端5发送的支付成功信息,完成扫码支付;Receive the payment success information sent by the payment device 5 and complete the scan code payment;
生成条码退出指令,并将条码退出指令发送至支付设备端5;Generate a barcode exit instruction and send the barcode exit instruction to the payment device 5;
第二处理器7执行第二计算机程序时实现以下步骤:When the second processor 7 executes the second computer program, the following steps are implemented:
S2、接收扫码支付指令,进入条码界面;S2. Receive the scan code payment instruction and enter the barcode interface;
接收请求支付指令,判断支付软件是否需要进行输密支付,若是,则输入支付密码以确认支付,生成支付成功信息,否则直接生成支付成功信息;Receive payment request instructions to determine whether the payment software needs to make secret payment. If so, enter the payment password to confirm the payment and generate payment success information, otherwise directly generate payment success information;
接收条码退出指令,退出条码界面;Receive the barcode exit instruction and exit the barcode interface;
重启或运行于支付设备端5上的自动支付程序被关闭时,将自启动自动支付程序。When the automatic payment program running on the payment device 5 is restarted or closed, the automatic payment program will be started automatically.
其中,本实施例中的支付设备端5为android系统手机或是ios系统手机或是android系统平板或是ios系统平板等能显示条码并进行支付的设备既可,支付软件为支付宝或微信等能完成支付的软件既可,支付设备端5与收银机2之间通过wifi进行通信。Wherein, the payment device terminal 5 in this embodiment may be a device that can display a barcode and make a payment, such as an android system mobile phone, an ios system mobile phone, an android system tablet, or an ios system tablet, and the payment software is Alipay or WeChat. The software for completing payment may be used, and communication between the payment device end 5 and the cash register 2 is performed through wifi.
其中,收银机2包括收银软件和收银自动测试软件,收银软件是指收银机2上支持扫码收单功能的软件,收银自动测试软件能实现收银软件的自动化测试功能,能够通过wifi与支付设备端5的自动支付程序进行信息传输。Among them, the cash register 2 includes cash register software and cash register automatic test software. The cash register software refers to software that supports the scan code and receipt function on the cash register 2. The automatic cash register test software can realize the automatic test function of the cash register software. It can communicate with wifi and payment devices. The terminal 5's automatic payment program performs information transmission.
其中,自动支付程序是运行于支付设备端5的自动化测试脚本,包括以下功能:Among them, the automatic payment program is an automated test script running on the payment device 5 and includes the following functions:
(1)、流程控制:接收收银自动测试软件的指令:(1) Process control: Receive instructions from the cash register automatic test software:
扫码支付指令:控制支付设备端5进入支付软件的条码界面;Scan code payment instruction: control the payment device 5 to enter the barcode interface of the payment software;
请求支付指令:进行支付,判断支付软件是否需要进行输密支付,若是,则输密支付,否则免密支付,完成真实支付流程;Request payment instruction: make a payment, determine whether the payment software needs to perform secret payment, and if so, enter secret payment; otherwise, pay without secret and complete the real payment process;
条码退出指令:控制支付设备端5退出条码界面。Barcode exit instruction: Control payment device 5 to exit the barcode interface.
(2)、支付:在扫码成功后,若需要支付密码,自动执行输密,确认支付。(2) Payment: After the code scanning is successful, if the payment password is required, the password is automatically entered to confirm the payment.
(3)、自启动:控制自动支付程序进行自动启动。(3) Self-starting: Control the automatic payment program to start automatically.
其中,用于固定扫码设备与支付设备端5的扫码固定装置,使得支付设备端5显示的条码位于扫码设备扫码区域中,在支付设备端5进入条码界面时,保证扫码设备能够扫码成功,从而进行扫码支付。The code scanning fixing device for fixing the code scanning device and the payment device end 5 enables the barcode displayed on the payment device end 5 to be located in the code scanning area of the code scanning device. When the payment device end 5 enters the barcode interface, the code scanning device is guaranteed Can scan the code successfully, so as to make code payment.
请参照图3,本发明的实施例四为:Referring to FIG. 3, a fourth embodiment of the present invention is:
一种控制条码的扫码支付测试系统1,与实施例三不同的地方在于支付设备端5退出条码界面的触发条件,实施例三是由收银机2完成收银之后发送指令来控制支付设备端5退出条码界面,本实施例四代替上述实施例三的步骤如下:A scanning scanning payment test system 1 for controlling barcodes. The difference from the third embodiment lies in the triggering conditions for the payment device 5 to exit the barcode interface. In the third embodiment, the cash register 2 sends an instruction to control the payment device 5 after completing the receipt. To exit the barcode interface, the steps of this fourth embodiment instead of the third embodiment are as follows:
生成支付成功信息后,退出条码界面。After generating payment success information, exit the barcode interface.
即实施例四是在支付设备端5完成支付后就退出条码界面。That is, Embodiment 4 exits the barcode interface after the payment device 5 completes the payment.
综上所述,本发明提供的一种控制条码的扫码支付测试方法及系统,通过收银机上的收银自动测试软件,将扫码支付指令发给自动支付程序,让支付设备端进入条码界面,这时,收银机上的扫码设备就能进行扫描,并将条码信息返回至收银软件,从而完成扫码支付,通过收银机和支付设备端的配合,实现了真实情况下自动支付的流程,即本发明能替代人工操作流程,实现了收银机的长时间自动化测试;同时,通过退出条码界面以避免条码过期、通过自动支付程序的自启动、通过对输密支付的判断和自动执行,从而进一步保证了收银机的长时间自动化测试,本发明整体上只需要在原有的收银机上再添加一部支付设备端就能搭建,搭建简易,成本低,易于实现,便于推广使用。….In summary, the present invention provides a barcode scanning test method and system for controlling barcodes, which sends barcode scanning instructions to automatic payment programs through the cash register automatic test software on the cash register, so that the payment equipment end can enter the barcode interface. At this time, the code scanning device on the cash register can scan and return the barcode information to the cash register software to complete the code scanning payment. Through the cooperation of the cash register and the payment device, the automatic payment process in the real situation is realized, that is, this The invention can replace the manual operation process and realize the long-term automated test of the cash register; at the same time, by exiting the bar code interface to avoid bar code expiration, self-starting of the automatic payment program, judging and automatically executing the input and secret payment, thereby further ensuring In view of the long-term automated test of the cash register, the present invention only needs to add a payment device end to the original cash register as a whole, which is simple to set up, low in cost, easy to implement, and convenient for popularization. ….
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在相关的技术领域,均同理包括在本发明的专利保护范围内。The above description is only an embodiment of the present invention, and thus does not limit the patent scope of the present invention. Any equivalent transformation made by using the content of the description and drawings of the present invention, or directly or indirectly used in related technical fields, is included in the same reason. Within the scope of patent protection of the present invention.

Claims (20)

  1. 一种控制条码的扫码支付测试方法,其特征在于,包括步骤:A scanning code payment test method for controlling a barcode, which is characterized by comprising the steps:
    S1、启动扫码收银流程,收银机生成扫码支付指令,并将所述扫码支付指令发送至支付设备端;S1. The code scanning and cash registering process is started, and the cash register generates a code scanning and payment instruction, and sends the code scanning and payment instruction to a payment device.
    S2、所述支付设备端接收所述扫码支付指令,进入条码界面;S2. The payment device receives the scan code payment instruction and enters a barcode interface.
    S3、所述收银机扫描所述条码界面,获取条码信息,完成扫码支付。S3. The cash register scans the bar code interface to obtain bar code information, and completes scan code payment.
  2. 根据权利要求1所述的一种控制条码的扫码支付测试方法,其特征在于,所述步骤S1之前还包括以下步骤:The scanning code payment test method for controlling bar codes according to claim 1, wherein before step S1, the method further comprises the following steps:
    收银机启动后,判断是否进入扫码收银,若是,则启动扫码收银流程,若未进入,则保持继续测试状态。After the cash register is started, it is judged whether to enter the code scanning cash register. If it is, the code scanning cash register process is started. If it is not entered, the test continues.
  3. 根据权利要求1所述的一种控制条码的扫码支付测试方法,其特征在于,所述步骤S3中获取条码信息后进行以下步骤:向所述支付设备端发送请求支付指令。The scanning and payment testing method for controlling barcodes according to claim 1, wherein after obtaining the barcode information in step S3, the following steps are performed: sending a payment request instruction to the payment device.
  4. 根据权利要求3所述的一种控制条码的扫码支付测试方法,其特征在于,所述支付设备端接收所述请求支付指令后进行以下步骤:The scanning code payment test method for controlling bar codes according to claim 3, wherein the payment device side performs the following steps after receiving the payment request instruction:
    判断支付软件是否需要进行输密支付,若是,则输入支付密码以确认支付,生成支付成功信息,否则直接生成支付成功信息。Determine whether the payment software needs to perform secret payment. If so, enter the payment password to confirm the payment and generate payment success information, otherwise generate payment success information directly.
  5. 根据权利要求4所述的一种控制条码的扫码支付测试方法,其特征在于,所述步骤S3中完成扫码支付具体包括以下步骤:The method for testing a barcode scanning payment control according to claim 4, wherein the completion of the scanning barcode payment in the step S3 comprises the following steps:
    所述收银机接收支付成功信息,完成扫码支付。 The cash register receives the payment success information and completes the scan code payment.
  6. 根据权利要求1所述的一种控制条码的扫码支付测试方法,其特征在于,还包括步骤:The scanning code payment test method for controlling bar codes according to claim 1, further comprising the steps of:
    所述支付设备端重启或运行于所述支付设备端上的自动支付程序被关闭时,将自启动自动支付程序,所述自动支付程序。When the payment device is restarted or the automatic payment program running on the payment device is closed, the automatic payment program, the automatic payment program, will be started automatically.
  7. 根据权利要求4所述的一种控制条码的扫码支付测试方法,其特征在于,所述支付密码为在所述支付设备端中预先设置,在判断需要输密支付时,自动调用所述支付密码以确认支付。The barcode scanning scanning test method according to claim 4, wherein the payment password is set in advance on the payment device side, and the payment is automatically invoked when it is judged that a secret payment is required. Password to confirm payment.
  8. 根据权利要求1所述的一种控制条码的扫码支付测试方法,其特征在于,所述步骤S3还包括:The scanning code payment testing method for controlling bar codes according to claim 1, wherein the step S3 further comprises:
    所述收银机生成条码退出指令,并将所述条码退出指令发送至支付设备端;The cash register generates a barcode exit instruction, and sends the barcode exit instruction to a payment device end;
    所述支付设备端接收所述条码退出指令,退出条码界面。The payment device end receives the barcode exit instruction and exits the barcode interface.
  9. 根据权利要求4所述的一种控制条码的扫码支付测试方法,其特征在于,所述步骤S3还包括:The scanning code payment testing method for controlling bar codes according to claim 4, wherein the step S3 further comprises:
    所述支付设备端生成支付成功信息后,退出条码界面。After the payment device generates payment success information, it exits the barcode interface.
  10. 根据权利要求4所述的一种控制条码的扫码支付测试方法,其特征在于,所述支付设备端为手机或平板,所述支付软件为支付宝或微信。The scanning and payment testing method for controlling bar codes according to claim 4, wherein the payment device is a mobile phone or a tablet, and the payment software is Alipay or WeChat.
  11. 一种控制条码的扫码支付测试系统,包括收银机、支付设备端,所述收银机包括第一存储器、第一处理器及存储在第一存储器上并可在第一处理器上运行的第一计算机程序,所述支付设备端包括第二存储器、第二处理器及存储在第二存储器上并可在第二处理器上运行的第二计算机程序,其特征在于,A code scanning payment test system for controlling a barcode includes a cash register and a payment device end. The cash register includes a first memory, a first processor, and a first memory stored on the first memory and operable on the first processor. A computer program, the payment device side includes a second memory, a second processor, and a second computer program stored on the second memory and executable on the second processor, characterized in that:
    所述第一处理器执行所述第一计算机程序时实现以下步骤:When the first processor executes the first computer program, the following steps are implemented:
    S1、启动扫码收银流程,生成扫码支付指令,并将所述扫码支付指令发送至支付设备端;S1. Start a code scanning and cash register process, generate a code scanning payment instruction, and send the code scanning payment instruction to a payment device end;
    S3、扫描所述支付设备端的条码界面,获取条码信息,完成扫码支付;S3. Scan the barcode interface on the payment device side to obtain barcode information and complete the scan code payment;
    所述第二处理器执行所述第二计算机程序时实现以下步骤:When the second processor executes the second computer program, the following steps are implemented:
    S2、接收所述扫码支付指令,进入条码界面。S2. Receive the scan code payment instruction and enter the barcode interface.
  12. 根据权利要求11所述的一种控制条码的扫码支付测试系统,其特征在于,所述第一处理器执行所述第一计算机程序时在所述步骤S1之前还实现以下步骤:The scanning scanning payment test system for controlling bar codes according to claim 11, characterized in that, when the first processor executes the first computer program, the following steps are implemented before the step S1:
    判断是否进入扫码收银,若是,则启动扫码收银流程,若未进入,则保持继续测试状态。Determine whether to enter the code scanning and cash register, if yes, start the code scanning and cash register process, if not, keep the test state.
  13. 根据权利要求11所述的一种控制条码的扫码支付测试系统,其特征在于,所述步骤S3中获取条码信息后进行以下步骤:向所述支付设备端发送请求支付指令。The scanning and payment testing system for controlling bar codes according to claim 11, wherein after obtaining the bar code information in step S3, the following steps are performed: sending a payment request instruction to the payment device.
  14. 根据权利要求13所述的一种控制条码的扫码支付测试系统,其特征在于,所述支付设备端接收请求支付指令后,所述第二处理器执行所述第二计算机程序时实现以下步骤:The scanning scanning payment test system for controlling bar codes according to claim 13, wherein after the payment device receives the payment request instruction, the second processor implements the following steps when the second processor executes the second computer program. :
    判断支付软件是否需要进行输密支付,若是,则输入支付密码以确认支付,生成支付成功信息,否则直接生成支付成功信息。 Determine whether the payment software needs to perform secret payment. If so, enter the payment password to confirm the payment and generate payment success information, otherwise generate payment success information directly.
  15. 根据权利要求14所述的一种控制条码的扫码支付测试系统,其特征在于,所述步骤S3中完成扫码支付具体包括以下步骤:接收支付成功信息,完成扫码支付。The scanning code payment test system for controlling bar codes according to claim 14, wherein completing the scanning code payment in step S3 comprises the following steps: receiving payment success information and completing the scanning code payment.
  16. 根据权利要求11所述的一种控制条码的扫码支付测试系统,其特征在于,所述第二处理器执行所述第二计算机程序时还实现以下步骤:The scan code payment test system for controlling bar codes according to claim 11, wherein the second processor further implements the following steps when executing the second computer program:
    重启或运行于所述支付设备端上的自动支付程序被关闭时,将自启动自动支付程序。When the automatic payment program running on the payment device is restarted or closed, the automatic payment program will be started automatically.
  17. 根据权利要求14所述的一种控制条码的扫码支付测试系统,其特征在于,所述支付密码为在所述支付设备端中预先设置,在判断需要输密支付时,自动调用所述支付密码以确认支付。The scanning scanning payment test system for controlling bar codes according to claim 14, wherein the payment password is preset in the payment device side, and the payment is automatically invoked when it is judged that a secret payment is required. Password to confirm payment.
  18. 根据权利要求11所述的一种控制条码的扫码支付测试系统,其特征在于,所述步骤S3还包括:The scan code payment test system for controlling bar codes according to claim 11, wherein the step S3 further comprises:
    生成条码退出指令,并将所述条码退出指令发送至支付设备端;Generating a barcode exit instruction, and sending the barcode exit instruction to a payment device end;
    所述支付设备端接收所述条码退出指令,所述第二处理器执行所述第二计算机程序时实现以下步骤:退出条码界面。When the payment device receives the barcode exit instruction, the second processor implements the following steps when executing the second computer program: exiting the barcode interface.
  19. 根据权利要求14所述的一种控制条码的扫码支付测试系统,其特征在于,所述支付设备端生成支付成功信息后,所述第二处理器执行所述第二计算机程序时实现以下步骤:退出条码界面。The scanning scanning payment test system for controlling bar codes according to claim 14, wherein after the payment device generates payment success information, the second processor implements the following steps when the second processor executes the second computer program: : Exit the barcode interface.
  20. 根据权利要求14所述的一种控制条码的扫码支付测试方法,其特征在于,所述支付设备端为手机或平板,所述支付软件为支付宝或微信。The scanning and payment testing method for controlling bar codes according to claim 14, wherein the payment device is a mobile phone or a tablet, and the payment software is Alipay or WeChat.
PCT/CN2018/089520 2018-06-01 2018-06-01 Scan code payment and test method and system controlling barcode WO2019227462A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880000509.2A CN108701389A (en) 2018-06-01 2018-06-01 A kind of the barcode scanning payment test method and system of control bar code
PCT/CN2018/089520 WO2019227462A1 (en) 2018-06-01 2018-06-01 Scan code payment and test method and system controlling barcode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/089520 WO2019227462A1 (en) 2018-06-01 2018-06-01 Scan code payment and test method and system controlling barcode

Publications (1)

Publication Number Publication Date
WO2019227462A1 true WO2019227462A1 (en) 2019-12-05

Family

ID=63841412

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089520 WO2019227462A1 (en) 2018-06-01 2018-06-01 Scan code payment and test method and system controlling barcode

Country Status (2)

Country Link
CN (1) CN108701389A (en)
WO (1) WO2019227462A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582587B (en) * 2018-12-25 2022-06-21 福建联迪商用设备有限公司 Code scanning application software testing method, terminal and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106384235A (en) * 2016-08-30 2017-02-08 上海创功通讯技术有限公司 Payment method and system and mobile terminal
CN106487998A (en) * 2015-09-01 2017-03-08 阿里巴巴集团控股有限公司 A kind of method at call-out function interface, device and terminal unit
CN107230065A (en) * 2017-05-23 2017-10-03 努比亚技术有限公司 A kind of two-dimensional code display method, equipment and computer-readable recording medium
CN107644333A (en) * 2016-07-22 2018-01-30 展讯通信(上海)有限公司 Barcode scanning method of payment, device and payment terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9141841B2 (en) * 2012-12-20 2015-09-22 Ebay, Inc. Methods, system and apparatus for conducting a point of sale transaction
US9424570B2 (en) * 2014-08-13 2016-08-23 Paypal, Inc. On-screen code stabilization
CN105976176A (en) * 2016-04-26 2016-09-28 广东小天才科技有限公司 Security payment method and security payment system
CN106354365A (en) * 2016-08-26 2017-01-25 维沃移动通信有限公司 Interface selection method and mobile device
AU2017100350A4 (en) * 2016-10-06 2017-06-29 Bits Avenue Pty Ltd Scan and Pay Mobile Application
CN107169387A (en) * 2017-05-03 2017-09-15 上海动联信息技术股份有限公司 A kind of Auto-Test System and method of POS scanner
CN107248072A (en) * 2017-05-19 2017-10-13 努比亚技术有限公司 Barcode scanning method of payment, mobile terminal and computer-readable recording medium
CN107798793B (en) * 2017-10-10 2021-03-23 深圳市新国都支付技术有限公司 Method, system and equipment for automatic code scanning test of POS machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487998A (en) * 2015-09-01 2017-03-08 阿里巴巴集团控股有限公司 A kind of method at call-out function interface, device and terminal unit
CN107644333A (en) * 2016-07-22 2018-01-30 展讯通信(上海)有限公司 Barcode scanning method of payment, device and payment terminal
CN106384235A (en) * 2016-08-30 2017-02-08 上海创功通讯技术有限公司 Payment method and system and mobile terminal
CN107230065A (en) * 2017-05-23 2017-10-03 努比亚技术有限公司 A kind of two-dimensional code display method, equipment and computer-readable recording medium

Also Published As

Publication number Publication date
CN108701389A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
KR102402413B1 (en) Payment processing methods and devices, and intelligent devices
CN109544135B (en) Bank card binding method and device, storage medium and mobile terminal
EP3079326A1 (en) Network payment method, apparatus and system
US11227285B2 (en) Mobile payment system and method
WO2016206324A1 (en) Method of controlling self-service washing machine, and terminal and system utilizing same
WO2017185926A1 (en) Mobile payment method and apparatus
CN109754515B (en) Queuing system and queuing data processing method
CN108684033A (en) A kind of card writing method and device of terminal device
US20170017937A1 (en) Payment information operation method and electronic device for supporting the same
KR102113384B1 (en) Method and device for verifying user behaviour in mobile scenario
US8689321B2 (en) Restricting access to the resources of a terminal
CN108550033B (en) Method and device for displaying unique identifier of digital object
CN112738046A (en) One-key login method, terminal and system server
WO2019227462A1 (en) Scan code payment and test method and system controlling barcode
CN111209036A (en) Method and device for configuring self-service mode of system
CN114116036A (en) Calling method, device and medium of application plug-in and electronic equipment
JP6910377B2 (en) Identity verification method and equipment
KR20150140588A (en) Electronic apparatus comprising a secure electronic entity and method implemented in such an electronic apparatus
CN105556536A (en) One-time power-on password
US20170032353A1 (en) Methods and systems for financial account access management
CN108848420B (en) VIP member opening method and device
CN113973004A (en) Providing multi-factor authentication credentials via device notifications
US11526883B2 (en) Method and system for providing automated payment
US20200160332A1 (en) Processing payments
WO2015120949A1 (en) Universal payment method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18920203

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18920203

Country of ref document: EP

Kind code of ref document: A1