WO2020042794A1 - Transaction device, method, and apparatus, server, and storage medium - Google Patents
Transaction device, method, and apparatus, server, and storage medium Download PDFInfo
- Publication number
- WO2020042794A1 WO2020042794A1 PCT/CN2019/096283 CN2019096283W WO2020042794A1 WO 2020042794 A1 WO2020042794 A1 WO 2020042794A1 CN 2019096283 W CN2019096283 W CN 2019096283W WO 2020042794 A1 WO2020042794 A1 WO 2020042794A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- transaction
- switch
- page
- code
- account
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3274—Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3276—Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
Definitions
- the embodiments of the present specification relate to the field of mobile payment technology, and in particular, to a transaction device, method, device, server, and storage medium.
- transaction applications With the popularization of smart mobile terminals and the development of mobile communication technology, mobile payment has been promoted, and applications such as Alipay, WeChat, and Baidu Wallet that support mobile payments (hereinafter referred to as transaction applications) have appeared.
- transactions can be divided into payments and receipts.
- common scan code payment methods are divided into forward scan and reverse scan.
- “Positive scanning” means that the user opens the transaction application and finds the button for calling the code scanning page, and clicks this button so that the transaction application calls the code scanning page to scan the payment identification code displayed on the payment device to complete the payment;
- "anti-scanning” It means that the user opens the transaction application and finds the button to call the payment identification code page. Clicking this button allows the transaction application to call the payment identification code page, and the payment device scans the payment identification code displayed on the payment identification code page to complete the payment.
- the embodiments of the present specification provide and a transaction device, method, device, server, and computer-readable storage medium, which make mobile payment operations more convenient and simple, thereby improving the efficiency of mobile payments.
- an embodiment of the present specification provides a transaction device, including:
- Device casing a memory installed inside the device casing to store a computer program; a communication module installed inside the device casing to receive or send data according to the control of the processor; a device mounted on the surface of the device casing
- the display screen is used for displaying according to the control of the processor; the processor installed inside the equipment casing is used to implement the following steps when executing the computer program:
- the display screen is called to display a scan-code transaction page, and the trading switch is installed on the surface of the device shell or is a virtual display on the display screen. switch;
- the transaction result generated based on the scan code transaction page is acquired through the communication module, and the display screen is called to display the transaction result page according to the transaction result.
- an embodiment of the specification provides a transaction method, including:
- a scan code transaction page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application;
- an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
- a scan code transaction page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application;
- an embodiment of the present specification provides a transaction method, including:
- the transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application
- an embodiment of the present specification provides a transaction device, including:
- a payment request obtaining module configured to obtain a payment request generated by a first transaction device or a second transaction device based on a scan-code transaction page, where the scan-code transaction page is triggered by the first transaction device when it is turned on or a transaction switch or a transaction application After being called, it is displayed that the transaction switch is a hardware switch installed on the transaction device or a virtual switch in the transaction application;
- a transaction operation module configured to perform a transaction operation according to the payment request
- the transaction result sending module is used to send transaction results.
- an embodiment of the present specification further provides a server, including:
- a processor configured to implement the following steps when executing the computer program:
- the transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application
- an embodiment of the present specification further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
- the transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application
- the scan code transaction interface is displayed. This means that as long as the trading device is turned on, or the user presses the trading switch, or the user opens the trading application, the scan code trading interface is automatically displayed and the trading result is displayed. The user does not need to look for the trading buttons in the numerous functions in the trading application, which simplifies the trading operation and makes the trading operation more convenient.
- FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present specification
- FIG. 2 is a schematic structural diagram of a trading device according to an embodiment of the present specification
- FIG. 3 is a schematic diagram of an internal structure of a transaction device according to an embodiment of the present specification.
- FIG. 4a is a schematic diagram of a front structure of a trading device provided by an embodiment of the present specification.
- FIG. 4b is a schematic structural diagram of the back of a trading device according to an embodiment of the present specification.
- FIG. 5 is a schematic diagram of a triggering method of a virtual switch of a transaction device according to an embodiment of the present specification
- FIG. 6 is a schematic diagram of a device binding process according to an embodiment of the present specification.
- FIG. 7 is a schematic diagram of a payment process according to an embodiment of the present specification.
- FIG. 8 is a schematic flowchart of a terminal-side transaction method according to an embodiment of the present specification.
- FIG. 9 is a schematic flowchart of a server-side transaction method according to an embodiment of the present specification.
- FIG. 10 is a schematic diagram of a transaction device provided by an embodiment of the present specification.
- the transaction equipment, transaction method, and server provided in the embodiments of the present specification can be applied to, but not limited to, the system shown in FIG. 1.
- the dedicated hardware (transaction device 101) provided in the embodiment of the present specification may be used to implement convenient transactions, or the mobile terminal 102 may be used to implement the convenient transaction by the method provided in the embodiments of the present specification.
- the transaction can be either payment or receipt.
- the processor of the transaction device 101 invokes the display screen to display a scanning transaction page, in order to scan the identification code (or mobile terminal) on the POS machine 103 102 or the identification code label 104), to complete the payment through the server 105, or for the POS machine 102 (or the mobile terminal 102) to scan the identification code on the scanning transaction page, and complete the payment through the server 105.
- the display screen is displayed to scan the code scanning transaction page, so as to scan the identification on the POS machine 103 Code (or the identification code on the transaction device 101 or other mobile terminal or identification code label 104), complete the payment through the server 105, or allow the POS machine 102 (or the transaction device 101 or other mobile terminal) to scan the Scan the identification code on the transaction page to complete the payment through the server 105.
- the server 105 may include an independent server or a server group composed of multiple servers. If multiple servers are included, the topology may include centralized server groups or distributed server groups (such as server clusters, cloud servers, etc.).
- the mobile terminal 102 may include, but is not limited to, a smart phone, a palmtop computer, and a tablet computer.
- an embodiment of this specification provides a transaction device. Please refer to FIG. 2 and FIG. 3.
- the transaction device includes: a device housing 201, a memory 202, a communication module 203, and a display screen 204.
- ⁇ Processor 205 a device housing 201, a memory 202, a communication module 203, and a display screen 204.
- the memory 202 is installed inside the device casing 201 and is used to store computer programs;
- the communication module 203 is installed inside the device casing 201 and is used to receive or send data according to the control of the processor;
- the display is performed according to the control of the processor;
- the processor 205 is installed inside the device housing and is used to implement the following steps when executing a computer program:
- the trading switch may be a hardware switch 206 installed on the surface of the device housing 201, or it may be displayed on the display screen. 204 virtual switch;
- the transaction result generated based on the scan code transaction page is acquired through the communication module 203, and the display screen 204 is called to display the transaction result page according to the transaction result.
- the computer program can be configured as a single trigger condition, that is, the trading device is turned on, or the transaction switch is triggered or the transaction application is called; the computer program can also be configured as multiple trigger conditions. When one of the trigger conditions is met, The scan code transaction page is displayed.
- the call of the transaction application may refer to the startup of the transaction application, or the switching of the transaction application from the background to the foreground.
- the transaction device has only one application of the above transaction application, and the transaction application is automatically started after the transaction device is powered on, the two trigger conditions of “transaction device startup” and “transaction application called” are configured therein. Just one.
- the transaction result is used to indicate the success or failure of the transaction. It should be noted that displaying a trading results page based on trading results does not mean that all trading results need to be displayed. For example, when the transaction is successful, it may not be displayed by default. Correspondingly, when the transaction result is a transaction failure, a transaction result page indicating a transaction failure is displayed.
- the memory 202, the communication module 203, and the display screen 204 are all electrically connected to the processor 205. More specifically, these modules may be, but not limited to, electrically connected to the processor 205 through a system bus.
- Figs. 2 and 3 are only the structures involved in describing the above-mentioned transaction process, which does not mean that the transaction equipment includes only these structures, nor does it mean that the transaction equipment necessarily includes all of the above structures, for example, If the transaction switch is a virtual switch, the transaction device may not be provided with a hardware switch as the transaction switch.
- a scan code transaction interface is displayed. This means that as long as the trading device is turned on, or the user presses the trading switch, or the user opens the trading application, the scan code trading interface is automatically displayed and the trading result is displayed. The user does not need to look for the trading buttons in the numerous functions in the trading application, which simplifies the trading operation and makes the trading operation more convenient.
- transactions can be divided into payment and payment collection.
- the transaction devices provided in the embodiments of this specification may only support payment functions, and may support both payment and payment collection functions.
- scan code payment can be divided into “forward scan” and “reverse scan”.
- Scan code collection is usually to generate a payment identification code page for the payer to scan the code, of course, it is not excluded to realize the payment by scanning the code.
- the transaction equipment may support both “forward scan” and “reverse scan”, and of course, it may only support “forward scan” or “reverse scan”.
- the shooting function of the camera needs to be called.
- the transaction device also needs to include a camera mounted on the surface of the device casing for shooting according to the control of the processor.
- scan code payment as an example, if the transaction equipment supports both “forward scan” and “reverse scan”, in order to realize the switch between “forward scan” and “reverse scan”, two transaction switches can be set, namely the first transaction switch and The second trading switch; it is also possible to set only one trading switch, and realize the switch of "forward scan” and "anti-scan” through different triggering modes of the transaction switch.
- the first trading switch is used to call the forward scanning function
- the second trading switch is used to call the anti-scanning function.
- the first transaction switch and the second transaction switch are not the only means to invoke the forward scan function and the reverse scan function. Assume that there are two trigger conditions configured: the trading device is turned on and the trading switch is triggered. By default, the scan code page is displayed after the trading device is turned on. Then, when the trading device is detected to be turned on, the code scanning page is displayed. When the second trading switch is detected When triggered, it switches to the transaction code page. When it is detected that the first transaction switch is triggered, it switches to the code scanning page again.
- the transaction code page is used to display a payment code (also called a payment identification code) and / or a payment code (also called a payment identification code).
- a payment code also called a payment identification code
- a payment code also called a payment identification code
- the first transaction switch and the second transaction switch may be virtual switches displayed on the display screen 204.
- the first transaction switch and the second transaction switch may also be hardware switches.
- the payment method can be either scanning the code to receive the payment, or displaying the payment code to receive the payment. Then, it is not necessary to add a new transaction switch.
- the first transaction switch is still used to call the positive scan function. By scanning and parsing the identification code, it is determined whether to pay or receive money and perform the corresponding operation.
- the second transaction switch is still used to Anti-scan function, which displays both payment code and receipt code; it is not necessary to add a new transaction switch, and it is still the first transaction switch for calling the positive scan function. It is determined by different triggering methods of the first transaction switch whether to pay or receive. And perform corresponding operations. Take hardware switches as examples.
- Different trigger methods can be the difference between long and short presses, or the number of presses. Etc. Take virtual switches as examples, different trigger methods. You can, but are not limited to, dragging the trading switch to different functional areas; you can also add new trading switches to achieve the function of receiving money.
- the display screen 204 may include a first display screen and a second display screen, wherein the first display screen is used to display a code scanning page, and the second display screen is used to display a transaction code page.
- the second display screen or the transaction code page can be closed. Take two switches as an example. After the first transaction switch is triggered, the second switch is closed. The display screen or the transaction code page is closed. Taking different trigger states of the transaction switch as examples, when the first trigger state of the transaction switch is detected, the second display screen is closed or the transaction code page is closed. Correspondingly, when the transaction code page is called, the first display screen or the transaction code page is closed. For implementation manners, refer to the foregoing description, and details are not described herein again.
- the two display screens may be disposed on the same surface of the device casing. In order to further avoid misoperation, preferably, the two display screens are respectively disposed on the opposite planes of the device shell.
- the first transaction switch 2061 and the first display screen 2041 are shown in FIG. 4a.
- the second transaction switch is on the same side as the second display screen (referred to as the back side of the device case 201).
- Trading switches can be divided into different triggering methods. For example, “forward scan” corresponds to the first trigger mode, and “reverse scan” corresponds to the second trigger mode. If the transaction switch is a hardware switch, the different trigger methods can be the difference between a long press and a short press, or the number of presses, and so on. If the transaction switch is a virtual switch, as shown in FIG. 5, different triggering methods can be, but are not limited to, dragging the transaction switch to different functional areas.
- the camera After the first trigger mode of the transaction switch is detected, the camera is called for shooting, and the display screen is called to display the scan code page generated according to the shooting result; after the second trigger mode of the transaction switch is detected, the display screen is called to display the transaction code page. .
- the transaction code page displays the payment code.
- the transaction device supports both the payment function and the payment collection function. Then, after calling the forward scan function, you can scan and analyze the identification code to determine whether to pay or receive money, and perform the corresponding operation. After calling the reverse scan function, both the payment code and the receipt code are displayed; or, add a transaction The trigger mode of the switch to realize the payment function.
- the display screen 204 may also include a first display screen and a second display screen, wherein the first display screen is used to display a code scanning page and the second display screen is used to display Transaction code page.
- the second display screen or the transaction code page can be closed.
- the first trigger of the transaction switch is detected.
- close the second display or close the transaction code page is closed.
- the transaction code page is called, the first display screen or the transaction code page is closed.
- the two display screens may be disposed on the same surface of the device casing. In order to further avoid misoperation, preferably, the two display screens are respectively disposed on opposite planes of the device casing.
- the transaction account used by the transaction device for the exchange may be a separate account owned by the user using the transaction device.
- the transaction account used by the transaction device for the exchange can also be a fund provider who provides funds to users who use the transaction device. Account.
- the embodiment of the present specification establishes a transaction account for the transaction device, and the transaction account is associated with the main account of the fund provider.
- the processor is further configured to implement the following steps when executing the computer program: calling a display screen to display the device identification code of the transaction device, and the device identification code carries the identification information of the transaction device, and is configured to be based on the identification information of the transaction device.
- a trading account of the trading device associated with a master account is established.
- a trading account is established for a trading device in the trading system where the main account is located.
- the main account is an Alipay account
- a transaction account is set up for the transaction device in Alipay.
- an independent trading account can be established for the trading device in the trading system where the main account is located, or a sub-account can be established under the main account for the trading device in the trading system where the main account is located.
- the data of the amount to be traded is obtained according to the code scanning result; a transaction confirmation message is sent, and the transaction confirmation message carries an indication Information for agreeing or rejecting the transaction.
- the transaction confirmation message is used by the server to perform a transaction operation on the above-mentioned transaction account when carrying information indicating that the transaction is approved.
- the scan code transaction page displays a transaction code
- the transaction code includes information of the foregoing transaction account, and is used by the server to perform a transaction operation on the transaction account.
- the transaction device includes a device housing 201, a memory 202, a communication module 203, and a processor 205 provided in the device housing, and is provided on the first surface of the housing (this embodiment).
- the first display screen 2041, the first transaction switch 2061, the confirmation button 207, and the cancel button 208 are provided on the second display opposite to the first surface (referred to as the reverse surface in this embodiment).
- Screen 2042, second transaction switch 2062, update button 209, and camera 210 are provided on the first surface of the housing.
- the payment method adopted by the transaction device is shared payment, that is, creating a transaction account for the transaction device, binding the transaction account with the main account of the fund provider, and recharging the transaction account through the main account. Transactions made by the trading device are paid or received through the trading account.
- the binding process is shown in Figure 6, and includes the following operations:
- Step 601 The trading device is turned on.
- Step 602 Connect the network after the transaction device is initialized.
- SIM card you can insert a SIM card and connect to the network through GPRS, you can also connect to the network with a mobile phone's Bluetooth, you can also connect to the network through WIFI, or connect to the network through other methods.
- Step 603 The transaction device detects that the device is used for the first time, and displays a unique identification code of the transaction device (ie, a device identification code) on a second display screen on the back;
- a unique identification code of the transaction device ie, a device identification code
- the first use of the device may refer to the first use of the device after leaving the factory, or the first use of the device after formatting.
- the step may also be that the transaction device displays the unique identification code of the transaction device after detecting that the transaction account has not been created, or after receiving an instruction to bind a new master account.
- the unique identification code of the transaction device can also be printed or pasted on the surface of the transaction device.
- Step 604 The fund provider opens the mobile Alipay app and uses the scan function to scan the unique identification code of the transaction device.
- Step 605 The mobile Alipay app prompts the fund provider to confirm the binding of the transaction device.
- Step 606 The mobile phone Alipay obtains the fund provider to input the recharge amount of the deposit, and selects a payment tool.
- Step 607 The server completes the payment and pushes the information to the transaction device to complete the binding.
- the so-called roll-over is the account of the trading device.
- the server can establish an independent Alipay account for the trading device, and the unique identification number of the trading device, the account information of the Alipay account of the trading device, and the Alipay account (main account) of the fund provider
- the account information is stored in association with each other; sub-account entries can also be established in the Alipay account of the fund provider, and the sub-account entries are bound to the unique identification code of the transaction device.
- Step 608 The transaction device displays the available amount.
- the payment process is shown in Figure 7 and includes the following steps:
- Step 701 The trading device is turned on.
- Step 702 After the transaction device is initialized, the device connects to the network.
- Step 703 Call the first display screen to display the code scanning page or call the second display screen to display the payment page according to the trigger conditions of the first transaction switch and the second transaction switch.
- step 704 is performed, and the payment amount is displayed after the scan is completed.
- Step 705 The user completes the payment by deducting the balance of the deposited funds after confirming the payment by pressing the confirmation key.
- the transaction device sends a payment request to the server, and the server deducts the payment amount from the Alipay account of the transaction device or the main account of the fund provider and the sub-account corresponding to the transaction device.
- step 706 is executed to call the second display screen to display the payment code and available balance.
- the balance of the deposited funds is reduced to complete the payment.
- Step 707 Record the transaction in the Alipay bill of the main account of the fund provider.
- the above-mentioned loading scheme can further support recharge, and the loading account can be retained in the investor's Alipay app.
- the loading account can be retained in the investor's Alipay app.
- Payment is realized through hardware operation, and users can perform transactions without registering for an account of a transaction application such as Alipay.
- the operation method is simpler and more convenient than software operation.
- the trading account of the trading device provided in this embodiment is isolated from other accounts, the safety of funds of other accounts is guaranteed, and it is particularly suitable for the double-ended population such as middle-aged and elderly people and young people with generally weak financial risk awareness and financial risk education; The convenience of operation is especially suitable for the elderly.
- an embodiment of the present specification provides a transaction method, as shown in FIG. 8, including:
- Step 801 After the trading device is turned on or a trading switch is triggered or a trading application is called, a code scanning trading page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application.
- Step 803 Obtain a transaction result generated based on the scan code transaction page, and display a transaction result page according to the transaction result.
- a scan code transaction page is displayed. More specifically, after the application is called, the first transaction switch and the second transaction switch can be displayed on the display interface; after the first transaction switch is triggered, the camera of the transaction device is called for shooting; the above steps In 801, the code scanning page generated according to the shooting result is specifically displayed; after the second transaction switch is triggered, the transaction code page is specifically displayed in the above step 801.
- a transaction switch can be displayed on the display interface, and the transaction switch has a different triggering method.
- the camera of the transaction device is called.
- the code scanning page generated according to the shooting result is specifically displayed in the above step 801.
- the transaction code page is specifically displayed in the above step 801.
- the main account of the fund provider needs to be bound. Specifically, a device identification code of the transaction device is displayed, and the device identification code carries identification information of the transaction device, and is used to establish a connection with the transaction device under a master account according to the identification information of the transaction device. Subsidiary account.
- the server For forward scan, after scanning the code scanning transaction page, obtain the data of the amount to be traded according to the code scanning result; send a transaction confirmation message, the transaction confirmation message carries information indicating approval or rejection of the transaction, and the transaction confirmation message is used to carry When the information representing the transaction is approved, the server performs a transaction operation on the subsidiary account.
- the scan code transaction page displays a transaction code
- the transaction code includes information of a transaction account, which is used by the server to perform a transaction operation on the subsidiary account.
- an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the following steps are implemented:
- a scan code transaction page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application;
- the transaction switch includes a first transaction switch and a second transaction switch, and when the computer program is executed by the processor, the following steps are implemented: after the first transaction switch is triggered, the transaction device is called.
- the camera performs photographing;
- the scan-code transaction page includes a scan-code page and a transaction code page, and the step of displaying the scan-code transaction page after the shared transaction device is turned on or a transaction switch is triggered or a transaction application is invoked includes: : After the first transaction switch is triggered, display a code scanning page generated according to the shooting result; after the second transaction switch is triggered, display a transaction code page.
- the transaction device includes a first display screen and a second display screen, and when the computer program is executed by a processor, the following steps are further implemented:
- the first display screen for displaying the code scanning page is turned off or the code scanning page is turned off.
- the following steps are further implemented: after detecting the first trigger mode of the transaction switch, calling the camera of the transaction device for shooting; the scan code transaction page includes scanning Code page and transaction code page, the step of displaying the scan code transaction page after the shared transaction device is turned on or a transaction switch is triggered or a transaction application is invoked includes: after detecting a first trigger mode of the transaction switch , Displaying a code scanning page generated according to the shooting result; after detecting the second triggering mode of the transaction switch, displaying a transaction code page.
- Displaying a device identification code of the transaction device where the device identification code carries identification information of the transaction device, and is used to establish a subsidiary account associated with the transaction device under a master account according to the identification information of the transaction device.
- a transaction confirmation message is sent, where the transaction confirmation message carries information indicating approval or rejection of the transaction, and the transaction confirmation message is used to carry out a transaction operation on the subsidiary account by the server when carrying the information indicating approval of the transaction.
- the scan code transaction page displays a transaction code, where the transaction code includes information of a transaction account, and is used by the server to perform a transaction operation on the subsidiary account.
- an embodiment of the present specification provides a transaction method, which is applied to a server side, as shown in FIG. 9, and includes the following steps:
- Step 901 Obtain a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is displayed by the first transaction device after the device is turned on or a transaction switch is triggered or a transaction application is called
- the transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application.
- the first transaction device refers to a transaction device provided in an embodiment of the present specification, and may also refer to a transaction device using the method provided in the embodiment of the present specification.
- the second transaction device refers to a device that performs transactions with the first transaction device, such as a POS machine, a mobile terminal, and the like.
- Step 903 Perform a transaction operation according to the payment request, and send a transaction result.
- the primary account of the fund provider needs to be bound to the first transaction device accordingly.
- a binding request sent by the first trading device or a master account is received, where the binding request includes identification information of the first trading device and account information of the master account; according to the first trading device
- the identification information and account information of the primary account establish a transaction account associated with the primary account for the first transaction device.
- the main account is the account of the fund provider, which is relative to the trading account of the first trading device.
- performing a transaction operation according to the payment request may specifically include: finding the transaction account according to the payment request; after confirming that the balance of the transaction account is not less than the amount to be traded indicated by the payment request, from the payment request, The transaction account performs a debit operation and generates a transaction result indicating that the transaction is successful; after confirming that the balance of the transaction account is less than the amount to be traded indicated by the payment request, generating a transaction result indicating that the transaction has failed.
- the payment request may carry information of the transaction account and information of the transaction equipment.
- the trading account can be isolated from the main account, ensuring the security of the main account funds. Specifically, the transaction of the trading equipment can only be performed through the trading account. If the balance of the trading account is insufficient, the main account cannot be debited.
- an embodiment of the present specification provides a transaction device, as shown in FIG. 10, including:
- a payment request obtaining module 1001 is configured to obtain a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is triggered or traded by the first transaction device when it is turned on or a transaction switch is turned on It is displayed after the application is called that the transaction switch is a hardware switch installed on the transaction device or a virtual switch in the transaction application;
- a transaction operation module 1002 configured to perform a transaction operation according to the payment request
- the transaction result sending module 1003 is configured to send a transaction result.
- the apparatus further includes an account binding module for receiving a binding request sent by the first trading device or a master account, where the binding request includes identification information of the first trading device and the Account information of the main account; and according to the identification information of the first transaction device and the account information of the main account, a subsidiary account associated with the first transaction device is established under the main account.
- an account binding module for receiving a binding request sent by the first trading device or a master account, where the binding request includes identification information of the first trading device and the Account information of the main account; and according to the identification information of the first transaction device and the account information of the main account, a subsidiary account associated with the first transaction device is established under the main account.
- the transaction operation module is used for:
- an embodiment of the present specification further provides a server, including:
- a processor configured to implement the following steps when executing the computer program:
- the transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application
- the processor is further configured to implement the following steps when the computer program is executed:
- a subsidiary account associated with the first transaction device is established under the master account.
- the step of performing a transaction operation according to the payment request includes:
- an embodiment of the present specification further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
- the transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application
- a subsidiary account associated with the first transaction device is established under the master account.
- the step of performing a transaction operation according to the payment request includes:
- the scan code transaction interface is displayed. This means that as long as the trading device is turned on, or the user presses the trading switch, or the user opens the trading application, the scan code trading interface is automatically displayed and the trading result is displayed. The user does not need to look for the trading buttons in the numerous functions in the trading application, which simplifies the trading operation and makes the trading operation more convenient.
- the technical carriers involved in the payment described in the embodiments of this specification may include, for example, Near Field Communication (NFC), WIFI, 3G / 4G / 5G, POS machine card technology, QR code scanning technology, barcode scanning Technology, Bluetooth, infrared, Short Message (SMS), Multimedia Message (MMS), etc.
- NFC Near Field Communication
- WIFI Wireless Fidelity
- 3G / 4G / 5G POS machine card technology
- QR code scanning technology QR code scanning technology
- barcode scanning Technology Bluetooth
- infrared Short Message
- SMS Short Message
- MMS Multimedia Message
- These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction device, the instructions
- the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
- These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Embodiments of the present invention provide a transaction device, a transaction method and apparatus at a transaction device side, and a storage medium. The transaction device comprises a device shell, a memory, a communication module, a display screen, and a processor. The processor is used for implementing the following steps when executing a computer program: invoking the display screen to display a code scanning transaction page after the transaction device is powered on or a transaction switch is triggered or a transaction application is invoked, wherein the transaction switch is mounted on the surface of the device shell or is a virtual switch displayed on the display screen; and by means of the communication module, obtaining a transaction result generated based on the code scanning transaction page, and according to the transaction result, invoking the display screen to display a transaction result page. The embodiments of the present invention further provide a server, a transaction method and apparatus at a server side, and a storage medium. The embodiments of the present invention improve the convenience of a transaction.
Description
本说明书实施例涉及移动支付技术领域,尤其涉及一种交易设备、方法、装置、服务器及存储介质。The embodiments of the present specification relate to the field of mobile payment technology, and in particular, to a transaction device, method, device, server, and storage medium.
随着智能移动终端的普及和移动通信技术的发展,移动支付得以推广,出现了诸如支付宝、微信、百度钱包等支持移动支付的应用(以下简称交易应用)。With the popularization of smart mobile terminals and the development of mobile communication technology, mobile payment has been promoted, and applications such as Alipay, WeChat, and Baidu Wallet that support mobile payments (hereinafter referred to as transaction applications) have appeared.
其中,交易可分为支付和收款。以支付为例,常见的扫码支付方式分为正扫和反扫。“正扫”是指用户打开交易应用,找到调用扫码页面的按钮,点击该按钮以便交易应用调用扫码页面对收款设备显示的收款识别码进行扫描,从而完成支付;“反扫”是指用户打开交易应用,找到调用支付识别码页面的按钮,点击该按钮以便交易应用调用支付识别码页面,由收款设备扫描该支付识别码页面显示的支付识别码,从而完成支付。Among them, transactions can be divided into payments and receipts. Taking payment as an example, common scan code payment methods are divided into forward scan and reverse scan. "Positive scanning" means that the user opens the transaction application and finds the button for calling the code scanning page, and clicks this button so that the transaction application calls the code scanning page to scan the payment identification code displayed on the payment device to complete the payment; "anti-scanning" It means that the user opens the transaction application and finds the button to call the payment identification code page. Clicking this button allows the transaction application to call the payment identification code page, and the payment device scans the payment identification code displayed on the payment identification code page to complete the payment.
需要提供一种操作更便捷、简单的交易方案。There is a need to provide a more convenient and simple trading scheme.
发明内容Summary of the Invention
本说明书实施例提供及一种交易设备、方法、装置、服务器及计算机可读存储介质,使得移动支付操作更便捷、简单,进而提高了移动支付的效率。The embodiments of the present specification provide and a transaction device, method, device, server, and computer-readable storage medium, which make mobile payment operations more convenient and simple, thereby improving the efficiency of mobile payments.
第一方面,本说明书实施例提供一种交易设备,包括:In a first aspect, an embodiment of the present specification provides a transaction device, including:
设备外壳;安装于所述设备外壳内部的存储器,用于存储计算机程序;安装于所述设备外壳内部的通信模块,用于根据处理器的控制接收或发送数据;安装于所述设备外壳表面的显示屏,用于根据处理器的控制进行显示;安装于所述设备外壳内部的处理器,用于执行所述计算机程序时实现如下步骤:Device casing; a memory installed inside the device casing to store a computer program; a communication module installed inside the device casing to receive or send data according to the control of the processor; a device mounted on the surface of the device casing The display screen is used for displaying according to the control of the processor; the processor installed inside the equipment casing is used to implement the following steps when executing the computer program:
在所述交易设备开机或交易开关被触发或交易应用被调用后,调用所述显示屏显示扫码交易页面,所述交易开关安装于所述设备外壳表面或者是显示于所述显示屏的虚拟开关;After the trading device is turned on or a trading switch is triggered or a trading application is called, the display screen is called to display a scan-code transaction page, and the trading switch is installed on the surface of the device shell or is a virtual display on the display screen. switch;
通过所述通信模块获取基于扫码交易页面产生的交易结果,并根据所述交易结果调用所述显示屏显示交易结果页面。The transaction result generated based on the scan code transaction page is acquired through the communication module, and the display screen is called to display the transaction result page according to the transaction result.
第二方面,本说明书实施例提供一种交易方法,包括:In a second aspect, an embodiment of the specification provides a transaction method, including:
在交易设备开机或交易开关被触发或交易应用被调用后,显示扫码交易页面,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关;After the trading device is turned on or the trading switch is triggered or the trading application is called, a scan code transaction page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application;
获取基于所述扫码交易页面产生的交易结果,并根据所述交易结果显示交易结果页面。Acquiring a transaction result generated based on the scan code transaction page, and displaying a transaction result page according to the transaction result.
第三方面,本说明书实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:In a third aspect, an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
在交易设备开机或交易开关被触发或交易应用被调用后,显示扫码交易页面,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关;After the trading device is turned on or the trading switch is triggered or the trading application is called, a scan code transaction page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application;
获取基于所述扫码交易页面产生的交易结果,并根据所述交易结果显示交易结果页面。Acquiring a transaction result generated based on the scan code transaction page, and displaying a transaction result page according to the transaction result.
第四方面,本说明书实施例提供一种交易方法,包括:In a fourth aspect, an embodiment of the present specification provides a transaction method, including:
获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述第一交易设备的硬件开关或者为所述交易应用中的虚拟开关;Obtaining a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is displayed by the first transaction device after being turned on or a transaction switch is triggered or a transaction application is called, The transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application;
根据所述支付请求进行交易操作,并发送交易结果。Perform a transaction operation according to the payment request, and send a transaction result.
第五方面,本说明书实施例提供一种交易装置,包括:In a fifth aspect, an embodiment of the present specification provides a transaction device, including:
支付请求获取模块,用于获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关;A payment request obtaining module, configured to obtain a payment request generated by a first transaction device or a second transaction device based on a scan-code transaction page, where the scan-code transaction page is triggered by the first transaction device when it is turned on or a transaction switch or a transaction application After being called, it is displayed that the transaction switch is a hardware switch installed on the transaction device or a virtual switch in the transaction application;
交易操作模块,用于根据所述支付请求进行交易操作;A transaction operation module, configured to perform a transaction operation according to the payment request;
交易结果发送模块,用于发送交易结果。The transaction result sending module is used to send transaction results.
第六方面,本说明书实施例还提供一种服务器,包括:In a sixth aspect, an embodiment of the present specification further provides a server, including:
存储器,用于存储计算机程序;Memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如下步骤:A processor configured to implement the following steps when executing the computer program:
获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交 易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述第一交易设备的硬件开关或者为所述交易应用中的虚拟开关;Obtaining a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is displayed by the first transaction device after being turned on or a transaction switch is triggered or a transaction application is called, The transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application;
根据所述支付请求进行交易操作,并发送交易结果。Perform a transaction operation according to the payment request, and send a transaction result.
第七方面,本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:In a seventh aspect, an embodiment of the present specification further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述第一交易设备的硬件开关或者为所述交易应用中的虚拟开关;Obtaining a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is displayed by the first transaction device after being turned on or a transaction switch is triggered or a transaction application is called, The transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application;
根据所述支付请求进行交易操作,并发送交易结果。Perform a transaction operation according to the payment request, and send a transaction result.
本说明书实施例有益效果如下:The beneficial effects of the embodiments of this specification are as follows:
在检测到交易设备开机或者交易开关被触发或者交易应用被调用,显示扫码交易界面。这意味着,只要交易设备开机,或者用户按下交易开关,或者用户打开交易应用,即自动显示扫码交易界面,并显示交易结果。用户无需在交易应用中的众多功能中寻找交易按钮,简化了交易操作,使得交易操作更便捷。When it is detected that the transaction equipment is turned on or the transaction switch is triggered or the transaction application is called, the scan code transaction interface is displayed. This means that as long as the trading device is turned on, or the user presses the trading switch, or the user opens the trading application, the scan code trading interface is automatically displayed and the trading result is displayed. The user does not need to look for the trading buttons in the numerous functions in the trading application, which simplifies the trading operation and makes the trading operation more convenient.
图1为本说明书实施例提供的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present specification; FIG.
图2为本说明书实施例提供的交易设备结构示意图;FIG. 2 is a schematic structural diagram of a trading device according to an embodiment of the present specification; FIG.
图3为本说明书实施例提供的交易设备内部结构示意图;FIG. 3 is a schematic diagram of an internal structure of a transaction device according to an embodiment of the present specification; FIG.
图4a为本说明书实施例提供的交易设备正面结构示意图;FIG. 4a is a schematic diagram of a front structure of a trading device provided by an embodiment of the present specification; FIG.
图4b为本说明书实施例提供的交易设备背面结构示意图;FIG. 4b is a schematic structural diagram of the back of a trading device according to an embodiment of the present specification; FIG.
图5为本说明书实施例提供的交易设备的虚拟开关触发方式示意图;FIG. 5 is a schematic diagram of a triggering method of a virtual switch of a transaction device according to an embodiment of the present specification; FIG.
图6为本说明书实施例提供的设备绑定流程示意图;6 is a schematic diagram of a device binding process according to an embodiment of the present specification;
图7为本说明书实施例提供的支付流程示意图;FIG. 7 is a schematic diagram of a payment process according to an embodiment of the present specification; FIG.
图8为本说明书实施例提供的终端侧的交易方法流程示意图;FIG. 8 is a schematic flowchart of a terminal-side transaction method according to an embodiment of the present specification; FIG.
图9为本说明书实施例提供的服务器侧的交易方法流程示意图;9 is a schematic flowchart of a server-side transaction method according to an embodiment of the present specification;
图10为本说明书实施例提供的交易装置示意图。FIG. 10 is a schematic diagram of a transaction device provided by an embodiment of the present specification.
为了更好的理解上述技术方案,下面通过附图以及具体实施例对本说明书实施例的技术方案做详细的说明,应当理解本说明书实施例以及实施例中的具体特征是对本说明书实施例技术方案的详细的说明,而不是对本说明书技术方案的限定,在不冲突的情况下,本说明书实施例以及实施例中的技术特征可以相互组合。In order to better understand the above technical solutions, the technical solutions of the embodiments of the present specification will be described in detail through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present specification and specific features in the embodiments are the technical solutions of the embodiments of the present specification. The detailed description is not a limitation on the technical solutions of the present specification. In the case of no conflict, the embodiments of the present specification and the technical features in the embodiments can be combined with each other.
本说明书实施例提供的交易设备、交易方法及服务器可以但不仅限应用于图1所示的***。在图1所示的***中,可以使用本说明书实施例提供的专用硬件(交易设备101)实现便捷交易,也可以在移动终端102上通过本说明书实施例提供的方法实现便捷交易。其中,交易既可以是支付,也可以是收款。以使用交易设备101进行支付操作为例,当其开机或者交易开关被触发,该交易设备101的处理器即调用显示屏显示扫码交易页面,以便扫描POS机103上的识别码(或移动终端102上的识别码或识别码标贴104),通过服务器105完成付款,或者以便POS机102(或移动终端102)扫描该扫码交易页面上的识别码,通过服务器105完成付款。以在移动终端102上使用本说明书实施例提供的方法进行支付操作为例,当该移动终端102上的交易应用被调用,即调用显示屏显示扫码交易页面,以便扫描POS机103上的识别码(或交易设备101上的识别码或或其他移动终端上的识别码或识别码标贴104),通过服务器105完成付款,或者以便POS机102(或交易设备101或其他移动终端)扫描该扫码交易页面上的识别码,通过服务器105完成付款。The transaction equipment, transaction method, and server provided in the embodiments of the present specification can be applied to, but not limited to, the system shown in FIG. 1. In the system shown in FIG. 1, the dedicated hardware (transaction device 101) provided in the embodiment of the present specification may be used to implement convenient transactions, or the mobile terminal 102 may be used to implement the convenient transaction by the method provided in the embodiments of the present specification. Among them, the transaction can be either payment or receipt. Taking the payment operation using the transaction device 101 as an example, when the device is turned on or the transaction switch is triggered, the processor of the transaction device 101 invokes the display screen to display a scanning transaction page, in order to scan the identification code (or mobile terminal) on the POS machine 103 102 or the identification code label 104), to complete the payment through the server 105, or for the POS machine 102 (or the mobile terminal 102) to scan the identification code on the scanning transaction page, and complete the payment through the server 105. Taking the payment operation on the mobile terminal 102 by using the method provided in the embodiment of this specification as an example, when the transaction application on the mobile terminal 102 is called, the display screen is displayed to scan the code scanning transaction page, so as to scan the identification on the POS machine 103 Code (or the identification code on the transaction device 101 or other mobile terminal or identification code label 104), complete the payment through the server 105, or allow the POS machine 102 (or the transaction device 101 or other mobile terminal) to scan the Scan the identification code on the transaction page to complete the payment through the server 105.
其中,服务器105可以包括独立服务器,也可以包括多个服务器组成的服务器组。若包括多个服务器,其拓扑既可以包括集中式服务器组,也可以包括分布式服务器组(例如服务器集群、云服务器等)。The server 105 may include an independent server or a server group composed of multiple servers. If multiple servers are included, the topology may include centralized server groups or distributed server groups (such as server clusters, cloud servers, etc.).
其中,移动终端102可以但不仅限于包括智能手机、掌上电脑、平板电脑等等。The mobile terminal 102 may include, but is not limited to, a smart phone, a palmtop computer, and a tablet computer.
结合图1所示的***场景,第一方面,本说明书实施例提供一种交易设备,请参考图2和图3,该交易设备包括:设备外壳201、存储器202、通信模块203、显示屏204、处理器205。With reference to the system scenario shown in FIG. 1, in the first aspect, an embodiment of this specification provides a transaction device. Please refer to FIG. 2 and FIG. 3. The transaction device includes: a device housing 201, a memory 202, a communication module 203, and a display screen 204. 、 Processor 205.
其中,存储器202安装于设备外壳201内部,用于存储计算机程序;通信模块203安装于设备外壳201内部,用于根据处理器的控制接收或发送数据;显示屏204安装于设备外壳201表面,用于根据处理器的控制进行显示;处理器205安装于设备外壳内部,用于执行计算机程序时实现如下步骤:Among them, the memory 202 is installed inside the device casing 201 and is used to store computer programs; the communication module 203 is installed inside the device casing 201 and is used to receive or send data according to the control of the processor; The display is performed according to the control of the processor; the processor 205 is installed inside the device housing and is used to implement the following steps when executing a computer program:
在交易设备开机或交易开关被触发或交易应用被调用后,调用显示屏204显示扫码交易页面,其中,交易开关可以是安装于设备外壳201表面的硬件开关206,也可以是显示于显示屏204的虚拟开关;After the trading device is turned on or the trading switch is triggered or the trading application is called, the display screen 204 is called to display the scan code transaction page. The trading switch may be a hardware switch 206 installed on the surface of the device housing 201, or it may be displayed on the display screen. 204 virtual switch;
通过通信模块203获取基于扫码交易页面产生的交易结果,并根据该交易结果调用显示屏204显示交易结果页面。The transaction result generated based on the scan code transaction page is acquired through the communication module 203, and the display screen 204 is called to display the transaction result page according to the transaction result.
在实际应用中,计算机程序可以被配置为单一触发条件,即交易设备开机,或交易开关被触发或交易应用被调用;计算机程序也可以被配置为多个触发条件,当满足其中一个触发条件即显示扫码交易页面。In practical applications, the computer program can be configured as a single trigger condition, that is, the trading device is turned on, or the transaction switch is triggered or the transaction application is called; the computer program can also be configured as multiple trigger conditions. When one of the trigger conditions is met, The scan code transaction page is displayed.
其中,可以通过现有实现手段检测交易设备是否开机,可以通过现有实现手段检测交易开关被触发,可以通过现有实现手段检测交易应用被调用,本说明书实施例对此不做限定。Wherein, it is possible to detect whether the transaction device is powered on by an existing implementation method, to detect that a transaction switch is triggered by an existing implementation method, and to detect that a transaction application is invoked by an existing implementation method, which is not limited in the embodiments of the present specification.
其中,交易应用被调用既可以是指交易应用启动,也可以是指交易应用从后台运行切换到前台。Among them, the call of the transaction application may refer to the startup of the transaction application, or the switching of the transaction application from the background to the foreground.
本说明书实施例中,若交易设备仅有上述交易应用一个应用程序,且在交易设备开机后自动启动该交易应用,则“交易设备开机”和“交易应用被调用”这两个触发条件配置其中一个即可。In the embodiment of this specification, if the transaction device has only one application of the above transaction application, and the transaction application is automatically started after the transaction device is powered on, the two trigger conditions of “transaction device startup” and “transaction application called” are configured therein. Just one.
其中,交易结果用来指示交易成功或失败。应当指出的是,根据交易结果显示交易结果页面,并不意味着所有交易结果均需要进行显示。例如,当交易成功,可以默认不进行显示,相应的,当交易结果为交易失败时,显示表示交易失败的交易结果页面。Among them, the transaction result is used to indicate the success or failure of the transaction. It should be noted that displaying a trading results page based on trading results does not mean that all trading results need to be displayed. For example, when the transaction is successful, it may not be displayed by default. Correspondingly, when the transaction result is a transaction failure, a transaction result page indicating a transaction failure is displayed.
其中,存储器202、通信模块203、显示屏204均与处理器205电连接,更具体的,这些模块可以但不仅限于通过***总线与处理器205电连接。The memory 202, the communication module 203, and the display screen 204 are all electrically connected to the processor 205. More specifically, these modules may be, but not limited to, electrically connected to the processor 205 through a system bus.
应当指出的是,图2和图3所示的结构仅为描述上述交易过程所涉及的结构,并不意味着交易设备仅包括这些结构,也不意味着交易设备必然包括上述全部结构,例如,若交易开关为虚拟开关,则交易设备可以不设置硬件开关作为交易开关。It should be noted that the structures shown in Figs. 2 and 3 are only the structures involved in describing the above-mentioned transaction process, which does not mean that the transaction equipment includes only these structures, nor does it mean that the transaction equipment necessarily includes all of the above structures, for example, If the transaction switch is a virtual switch, the transaction device may not be provided with a hardware switch as the transaction switch.
本说明书实施例提供的交易设备,在检测到交易设备开机或者交易开关被触发或者交易应用被调用,显示扫码交易界面。这意味着,只要交易设备开机,或者用户按下交易开关,或者用户打开交易应用,即自动显示扫码交易界面,并显示交易结果。用户无需在交易应用中的众多功能中寻找交易按钮,简化了交易操作,使得交易操作更便捷。In the transaction device provided in the embodiment of the present specification, when it is detected that the transaction device is turned on or a transaction switch is triggered or a transaction application is called, a scan code transaction interface is displayed. This means that as long as the trading device is turned on, or the user presses the trading switch, or the user opens the trading application, the scan code trading interface is automatically displayed and the trading result is displayed. The user does not need to look for the trading buttons in the numerous functions in the trading application, which simplifies the trading operation and makes the trading operation more convenient.
如上所述,交易可分为支付和收款,本说明书实施例提供的交易设备可以仅支持支付功能,也可以既支持支付功能也支持收款功能。As described above, transactions can be divided into payment and payment collection. The transaction devices provided in the embodiments of this specification may only support payment functions, and may support both payment and payment collection functions.
通常,扫码支付可分为“正扫”和“反扫”,扫码收款通常是生成收款识别码页面供付款方扫码,当然也不排除通过扫码的方式实现收款。Generally, scan code payment can be divided into "forward scan" and "reverse scan". Scan code collection is usually to generate a payment identification code page for the payer to scan the code, of course, it is not excluded to realize the payment by scanning the code.
本说明书实施例提供的交易设备可以既支持“正扫”也支持“反扫”,当然也可以仅支持“正扫”或“反扫”。对于“正扫”,需要调用摄像头的拍摄功能,相应的,交易设备还需要包括安装于设备外壳表面的摄像头,用于根据处理器的控制进行拍摄。以扫码支付为例,若交易设备既支持“正扫”也支持“反扫”,为了实现“正扫”、“反扫”的切换,可以设置两个交易开关,即第一交易开关和第二交易开关;也可以仅设置一个交易开关,通过该交易开关不同的触发方式实现“正扫”、“反扫”的切换。下面结合附图进行具体说明:The transaction equipment provided in the embodiments of the present specification may support both “forward scan” and “reverse scan”, and of course, it may only support “forward scan” or “reverse scan”. For the “positive scan”, the shooting function of the camera needs to be called. Correspondingly, the transaction device also needs to include a camera mounted on the surface of the device casing for shooting according to the control of the processor. Take scan code payment as an example, if the transaction equipment supports both “forward scan” and “reverse scan”, in order to realize the switch between “forward scan” and “reverse scan”, two transaction switches can be set, namely the first transaction switch and The second trading switch; it is also possible to set only one trading switch, and realize the switch of "forward scan" and "anti-scan" through different triggering modes of the transaction switch. Detailed description is given below with reference to the drawings:
切换实现方式一:Switching method one:
设置两个交易开关,第一交易开关用于调用正扫功能,第二交易开关用于调用反扫功能。当检测到第一交易开关被触发,调用摄像头进行拍摄,并调用显示屏显示根据拍摄结果生成的扫码页面;当检测到第二交易开关被触发,调用显示屏显示交易码页面。Set two trading switches, the first trading switch is used to call the forward scanning function, and the second trading switch is used to call the anti-scanning function. When it is detected that the first transaction switch is triggered, the camera is called for shooting, and the display screen is called to display the scan code page generated according to the shooting result; when it is detected that the second transaction switch is triggered, the display screen is called to display the transaction code page.
应当指出的是,第一交易开关和第二交易开关并非调用正扫功能和反扫功能的唯一手段。假设配置的触发条件有两个:交易设备开机和交易开关被触发,默认交易设备开机后显示扫码页面,那么,当检测到交易设备开机,显示扫码页面,当检测到第二交易开关被触发,则切换到交易码页面,当检测到第一交易开关被触发,则再一次切换到扫码页面。It should be noted that the first transaction switch and the second transaction switch are not the only means to invoke the forward scan function and the reverse scan function. Assume that there are two trigger conditions configured: the trading device is turned on and the trading switch is triggered. By default, the scan code page is displayed after the trading device is turned on. Then, when the trading device is detected to be turned on, the code scanning page is displayed. When the second trading switch is detected When triggered, it switches to the transaction code page. When it is detected that the first transaction switch is triggered, it switches to the code scanning page again.
其中,交易码页面用于显示支付码(也称支付识别码)和/或收款码(也称收款识别码)。The transaction code page is used to display a payment code (also called a payment identification code) and / or a payment code (also called a payment identification code).
第一交易开关和第二交易开关可以是显示于显示屏204的虚拟开关,为了进一步简化操作,第一交易开关和第二交易开关也可以是硬件开关。The first transaction switch and the second transaction switch may be virtual switches displayed on the display screen 204. In order to further simplify the operation, the first transaction switch and the second transaction switch may also be hardware switches.
若交易设备既支持支付功能,又支持收款功能,收款方式可以是扫码收款,也可以是显示收款码收款。那么,可以不增加新的交易开关,仍然是第一交易开关用于调用正扫功能,通过扫描并解析识别码判断是支付还是收款,并进行相应的操作;仍然是第二交易开关用于反扫功能,既显示付款码也显示收款码;还可以不增加新的交易开关,仍然是第一交易开关用于调用正扫功能,通过第一交易开关的不同触发方式判断是支付还 是收款,并进行相应的操作,以硬件开关为例,不同的触发方式可以是长按与短按的区别,也可以是按下次数的区别,等等,以虚拟开关为例,不同的触发方式可以但不仅限于是将交易开关拖拽到不同的功能区域;还可以增加新的交易开关以实现收款功能。If the transaction device supports both the payment function and the payment collection function, the payment method can be either scanning the code to receive the payment, or displaying the payment code to receive the payment. Then, it is not necessary to add a new transaction switch. The first transaction switch is still used to call the positive scan function. By scanning and parsing the identification code, it is determined whether to pay or receive money and perform the corresponding operation. The second transaction switch is still used to Anti-scan function, which displays both payment code and receipt code; it is not necessary to add a new transaction switch, and it is still the first transaction switch for calling the positive scan function. It is determined by different triggering methods of the first transaction switch whether to pay or receive. And perform corresponding operations. Take hardware switches as examples. Different trigger methods can be the difference between long and short presses, or the number of presses. Etc. Take virtual switches as examples, different trigger methods. You can, but are not limited to, dragging the trading switch to different functional areas; you can also add new trading switches to achieve the function of receiving money.
更进一步的,为了操作更加简单、便捷,上述显示屏204可以包括第一显示屏和第二显示屏,其中,第一显示屏用于显示扫码页面,第二显示屏用于显示交易码页面。Furthermore, in order to make the operation simpler and more convenient, the display screen 204 may include a first display screen and a second display screen, wherein the first display screen is used to display a code scanning page, and the second display screen is used to display a transaction code page. .
为了避免误操作,提高交易过程的稳定性,可以在扫码页面被调用时,关闭第二显示屏或交易码页面,以两个开关为例,在第一交易开关被触发后,关闭第二显示屏或关闭交易码页面;以交易开关的不同触发状态为例,在检测到交易开关的第一触发状态时,关闭第二显示屏或关闭交易码页面。相应的,在交易码页面被调用时,关闭第一显示屏或交易码页面,其实现方式可参照上述描述,此处不再赘述。In order to avoid misoperation and improve the stability of the transaction process, when the scan code page is called, the second display screen or the transaction code page can be closed. Take two switches as an example. After the first transaction switch is triggered, the second switch is closed. The display screen or the transaction code page is closed. Taking different trigger states of the transaction switch as examples, when the first trigger state of the transaction switch is detected, the second display screen is closed or the transaction code page is closed. Correspondingly, when the transaction code page is called, the first display screen or the transaction code page is closed. For implementation manners, refer to the foregoing description, and details are not described herein again.
本说明书实施例中,两个显示屏可以设置在设备外壳的同一表面。为了进一步避免误操作,优选地,两个显示屏分别设置在设备外壳相对的平面上,相应的,若有两个交易开关,则如图4a所示第一交易开关2061与第一显示屏2041同面(称为设备外壳201的正面),如图4b所示第二交易开关与第二显示屏同面(称为设备外壳201的背面)。In the embodiment of the present specification, the two display screens may be disposed on the same surface of the device casing. In order to further avoid misoperation, preferably, the two display screens are respectively disposed on the opposite planes of the device shell. Correspondingly, if there are two transaction switches, the first transaction switch 2061 and the first display screen 2041 are shown in FIG. 4a. On the same side (referred to as the front side of the device case 201), as shown in FIG. 4b, the second transaction switch is on the same side as the second display screen (referred to as the back side of the device case 201).
切换实现方式二:Switching implementation method two:
交易开关可分为不同的触发方式,例如,“正扫”对应第一触发方式,“反扫”对应第二触发方式。若交易开关为硬件开关,不同的触发方式可以是长按与短按的区别,也可以是按下次数的区别,等等。若交易开关为虚拟开关,如图5所示,不同的触发方式可以但不仅限于是将交易开关拖拽到不同的功能区域。Trading switches can be divided into different triggering methods. For example, "forward scan" corresponds to the first trigger mode, and "reverse scan" corresponds to the second trigger mode. If the transaction switch is a hardware switch, the different trigger methods can be the difference between a long press and a short press, or the number of presses, and so on. If the transaction switch is a virtual switch, as shown in FIG. 5, different triggering methods can be, but are not limited to, dragging the transaction switch to different functional areas.
在检测到交易开关的第一触发方式后,调用摄像头进行拍摄,并调用显示屏显示根据拍摄结果生成的扫码页面;在检测到交易开关的第二触发方式后,调用显示屏显示交易码页面。After the first trigger mode of the transaction switch is detected, the camera is called for shooting, and the display screen is called to display the scan code page generated according to the shooting result; after the second trigger mode of the transaction switch is detected, the display screen is called to display the transaction code page. .
若交易设备仅支持支付功能,则交易码页面显示支付码。If the transaction device only supports the payment function, the transaction code page displays the payment code.
若交易设备既支持支付功能,又支持收款功能。那么,在调用正扫功能后,可以通过扫描并解析识别码判断是支付还是收款,并进行相应的操作,在调用反扫功能后,既显示付款码也显示收款码;或者,增加交易开关的触发方式,以实现收款功能。If the transaction device supports both the payment function and the payment collection function. Then, after calling the forward scan function, you can scan and analyze the identification code to determine whether to pay or receive money, and perform the corresponding operation. After calling the reverse scan function, both the payment code and the receipt code are displayed; or, add a transaction The trigger mode of the switch to realize the payment function.
在该实现方式中,为了操作更加简单、便捷,上述显示屏204也可以包括第一显示屏和第二显示屏,其中,第一显示屏用于显示扫码页面,第二显示屏用于显示交易码页面。In this implementation manner, in order to make the operation easier and more convenient, the display screen 204 may also include a first display screen and a second display screen, wherein the first display screen is used to display a code scanning page and the second display screen is used to display Transaction code page.
为了避免误操作,提高交易过程的稳定性,可以在扫码页面被调用时,关闭第二显示屏或交易码页面,以交易开关的不同触发状态为例,在检测到交易开关的第一触发状态时,关闭第二显示屏或关闭交易码页面。相应的,在交易码页面被调用时,关闭第一显示屏或交易码页面,其实现方式可参照上述描述,此处不再赘述。In order to avoid misoperation and improve the stability of the transaction process, when the code scanning page is called, the second display screen or the transaction code page can be closed. Taking different trigger states of the transaction switch as examples, the first trigger of the transaction switch is detected. In the status, close the second display or close the transaction code page. Correspondingly, when the transaction code page is called, the first display screen or the transaction code page is closed. For implementation manners, refer to the foregoing description, and details are not described herein again.
本说明书实施例中,两个显示屏可以设置在设备外壳的同一表面。为了进一步避免误操作,优选地,两个显示屏分别设置在设备外壳相对的平面上。In the embodiment of the present specification, the two display screens may be disposed on the same surface of the device casing. In order to further avoid misoperation, preferably, the two display screens are respectively disposed on opposite planes of the device casing.
基于上述任意设备实施例,交易设备进行交易所使用的交易账户可以是使用交易设备的用户所拥有的独立账户。随着支付场景的增加,出现了共享支付功能,例如亲密付、亲情付等等,相应的,交易设备进行交易所使用的交易账户也可以是向使用交易设备的用户提供资金的资金提供者的账户。为了提高交易的安全性、隔离性,优选地,本说明书实施例为交易设备建立交易账户,该交易账户与资金提供者的主账户关联。相应的,上述处理器还用于执行上述计算机程序时实现如下步骤:调用显示屏显示交易设备的设备识别码,设备识别码中携带交易设备的标识信息,用于根据所述交易设备的标识信息建立与主账户关联的所述交易设备的交易账户。Based on any of the above device embodiments, the transaction account used by the transaction device for the exchange may be a separate account owned by the user using the transaction device. With the increase of payment scenarios, shared payment functions have appeared, such as intimate payment, family payment, etc. Correspondingly, the transaction account used by the transaction device for the exchange can also be a fund provider who provides funds to users who use the transaction device. Account. In order to improve the security and isolation of the transaction, preferably, the embodiment of the present specification establishes a transaction account for the transaction device, and the transaction account is associated with the main account of the fund provider. Correspondingly, the processor is further configured to implement the following steps when executing the computer program: calling a display screen to display the device identification code of the transaction device, and the device identification code carries the identification information of the transaction device, and is configured to be based on the identification information of the transaction device. A trading account of the trading device associated with a master account is established.
更具体的,在主账户所在的交易***中为交易设备建立交易账户。例如,主账户为支付宝账户,则在支付宝中为交易设备建立交易账户。更进一步的,可以在主账户所在的交易***中为交易设备建立独立的交易账户,也可以在主账户所在的交易***中为交易设备在主账户下建立子账户。More specifically, a trading account is established for a trading device in the trading system where the main account is located. For example, if the main account is an Alipay account, a transaction account is set up for the transaction device in Alipay. Furthermore, an independent trading account can be established for the trading device in the trading system where the main account is located, or a sub-account can be established under the main account for the trading device in the trading system where the main account is located.
相应的,对于“正扫”,调用所述显示屏显示扫码交易页面(即扫码页面)后,根据扫码结果获取待交易金额数据;发送交易确认消息,所述交易确认消息中携带表示同意或拒绝交易的信息,所述交易确认消息用于在携带表示同意交易的信息时,由服务器对上述交易账户进行交易操作。Correspondingly, for "forward scanning", after calling the display screen to display the code scanning transaction page (that is, the code scanning page), the data of the amount to be traded is obtained according to the code scanning result; a transaction confirmation message is sent, and the transaction confirmation message carries an indication Information for agreeing or rejecting the transaction. The transaction confirmation message is used by the server to perform a transaction operation on the above-mentioned transaction account when carrying information indicating that the transaction is approved.
相应的,对于“反扫”,所述扫码交易页面显示交易码,所述交易码包括上述交易账户的信息,用于服务器对所述交易账户进行交易操作。Correspondingly, for "anti-scanning", the scan code transaction page displays a transaction code, and the transaction code includes information of the foregoing transaction account, and is used by the server to perform a transaction operation on the transaction account.
下面结合具体应用场景,对本说明书实施例提供的交易设备结构及业务流程进行具体说明。The following specifically describes the structure of a transaction device and the business process provided by the embodiments of the present specification in combination with specific application scenarios.
如图3和图4a、4b所示,本实施例中,交易设备包括设备外壳201、设置于设备外壳内的存储器202、通信模块203和处理器205,设置于外壳第一表面(本实施例中称为正面)的第一显示屏2041、第一交易开关2061、确认按键207和取消按键208,设置 于与第一表面相对的第二表面(本实施例中称为反面)的第二显示屏2042、第二交易开关2062、更新按键209和摄像头210。As shown in FIGS. 3 and 4a and 4b, in this embodiment, the transaction device includes a device housing 201, a memory 202, a communication module 203, and a processor 205 provided in the device housing, and is provided on the first surface of the housing (this embodiment The first display screen 2041, the first transaction switch 2061, the confirmation button 207, and the cancel button 208 are provided on the second display opposite to the first surface (referred to as the reverse surface in this embodiment). Screen 2042, second transaction switch 2062, update button 209, and camera 210.
在该实施例中,交易设备所采用的支付方式为共享支付,即为该交易设备创建交易账户,并将该交易账户与资金提供方的主账户进行绑定,通过主账户向交易账户充值,交易设备进行的交易通过交易账户进行支付或收款。In this embodiment, the payment method adopted by the transaction device is shared payment, that is, creating a transaction account for the transaction device, binding the transaction account with the main account of the fund provider, and recharging the transaction account through the main account. Transactions made by the trading device are paid or received through the trading account.
其中,绑定过程如图6所示,包括如下操作:The binding process is shown in Figure 6, and includes the following operations:
步骤601、交易设备开机。Step 601: The trading device is turned on.
步骤602、交易设备初始化后连接网络;Step 602: Connect the network after the transaction device is initialized.
其中,可以***SIM卡并通过GPRS方式连接网络,也可以绑定手机蓝牙的方式连接网络,还可以通过WIFI连接网络,或者通过其他方式连接网络。Among them, you can insert a SIM card and connect to the network through GPRS, you can also connect to the network with a mobile phone's Bluetooth, you can also connect to the network through WIFI, or connect to the network through other methods.
步骤603、交易设备检测到初次使用该设备,在背面的第二显示屏上显示交易设备的唯一识别码(即设备识别码);Step 603: The transaction device detects that the device is used for the first time, and displays a unique identification code of the transaction device (ie, a device identification code) on a second display screen on the back;
其中,初次使用设备可以是指设备出厂后首次使用,也可以是指设备格式化之后首次使用。Among them, the first use of the device may refer to the first use of the device after leaving the factory, or the first use of the device after formatting.
其中,该步骤也可以是交易设备检测到未创建交易账户,或者收到绑定新的主账户的指令后,显示交易设备的唯一识别码。The step may also be that the transaction device displays the unique identification code of the transaction device after detecting that the transaction account has not been created, or after receiving an instruction to bind a new master account.
应当指出的是,交易设备的唯一识别码还可以印刷或粘贴在交易设备的表面。It should be noted that the unique identification code of the transaction device can also be printed or pasted on the surface of the transaction device.
步骤604、资金提供方打开手机支付宝app,使用扫一扫功能扫描交易设备的唯一识别码。Step 604: The fund provider opens the mobile Alipay app and uses the scan function to scan the unique identification code of the transaction device.
步骤605、手机支付宝app提示资金提供方确认绑定交易设备。Step 605: The mobile Alipay app prompts the fund provider to confirm the binding of the transaction device.
步骤606、手机支付宝获取资金提供方输入圈存的充值金额、选择支付工具。Step 606: The mobile phone Alipay obtains the fund provider to input the recharge amount of the deposit, and selects a payment tool.
步骤607、服务器完成支付,并推送信息到交易设备完成绑定。Step 607: The server completes the payment and pushes the information to the transaction device to complete the binding.
其中,所谓圈存即交易设备的账户,服务器可以为交易设备建立独立的支付宝账户,并将交易设备的唯一识别码、交易设备的支付宝账户的账户信息和资金提供方的支付宝账户(主账户)的账户信息关联保存;也可以在资金提供方的支付宝账户中建立子账户条目,该子账户条目与交易设备的唯一识别码绑定。Among them, the so-called roll-over is the account of the trading device. The server can establish an independent Alipay account for the trading device, and the unique identification number of the trading device, the account information of the Alipay account of the trading device, and the Alipay account (main account) of the fund provider The account information is stored in association with each other; sub-account entries can also be established in the Alipay account of the fund provider, and the sub-account entries are bound to the unique identification code of the transaction device.
步骤608、交易设备显示可用金额。Step 608: The transaction device displays the available amount.
其中,支付过程如图7所示,包括如下步骤:The payment process is shown in Figure 7 and includes the following steps:
步骤701、交易设备开机。Step 701: The trading device is turned on.
步骤702、交易设备初始化后设备连接网络。Step 702: After the transaction device is initialized, the device connects to the network.
步骤703、根据第一交易开关、第二交易开关的触发情况调用第一显示屏显示扫码页面或者调用第二显示屏显示支付页面。Step 703: Call the first display screen to display the code scanning page or call the second display screen to display the payment page according to the trigger conditions of the first transaction switch and the second transaction switch.
即选择正扫或反扫。That is, select forward scan or reverse scan.
如果选择正扫,执行步骤704、在扫描完后展示付款金额。If a positive scan is selected, step 704 is performed, and the payment amount is displayed after the scan is completed.
步骤705、用户通过按下确认键确认付款后扣减圈存资金余额完成支付。Step 705: The user completes the payment by deducting the balance of the deposited funds after confirming the payment by pressing the confirmation key.
其中,如果余额不足,则提示支付失败。Among them, if the balance is insufficient, the payment fails.
其中,具体是由交易设备向服务器发送付款请求,服务器从交易设备的支付宝账户或者资金提供方的主账户下、交易设备对应的子账户中扣减付款金额。Specifically, the transaction device sends a payment request to the server, and the server deducts the payment amount from the Alipay account of the transaction device or the main account of the fund provider and the sub-account corresponding to the transaction device.
如果选择反扫,执行步骤706、调用第二显示屏展示付款码和可用余额。If reverse scanning is selected, step 706 is executed to call the second display screen to display the payment code and available balance.
商家扫码后,扣减圈存资金余额完成支付。After the merchant scans the code, the balance of the deposited funds is reduced to complete the payment.
步骤707、在资金提供方的主账户的支付宝账单中记录这笔交易。Step 707: Record the transaction in the Alipay bill of the main account of the fund provider.
上述圈存方案,可进一步支持重复充值,在出资人支付宝app中可保留该圈存账户。当余额不足时,可选择圈存新的资金用于支付。如果发生交易设备丢失,可在出资人支付宝app选择设备解绑或者将圈存资金进行转出。The above-mentioned loading scheme can further support recharge, and the loading account can be retained in the investor's Alipay app. When the balance is insufficient, you can choose to deposit new funds for payment. If the transaction equipment is lost, you can choose the device to unbind or transfer the deposited funds in the Alipay app of the investor.
通过硬件操作实现支付,用户无需注册支付宝等交易应用的账户即可进行交易,其操作方式较之软件操作简单、便捷。Payment is realized through hardware operation, and users can perform transactions without registering for an account of a transaction application such as Alipay. The operation method is simpler and more convenient than software operation.
由于本实施例提供的交易设备的交易账户与其他账户隔离,保证了其他账户的资金安全,特别适用于金融抗风险意识和金融风险教育普遍较弱的中老年、青少年等双端人群;又由于其操作的便捷性,特别适用于中老年人群。Since the trading account of the trading device provided in this embodiment is isolated from other accounts, the safety of funds of other accounts is guaranteed, and it is particularly suitable for the double-ended population such as middle-aged and elderly people and young people with generally weak financial risk awareness and financial risk education; The convenience of operation is especially suitable for the elderly.
第二方面,基于同一发明构思,本说明书实施例提供一种交易方法,如图8所示,包括:In the second aspect, based on the same inventive concept, an embodiment of the present specification provides a transaction method, as shown in FIG. 8, including:
步骤801、在交易设备开机或交易开关被触发或交易应用被调用后,显示扫码交易页面,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关。Step 801: After the trading device is turned on or a trading switch is triggered or a trading application is called, a code scanning trading page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application.
步骤803、获取基于所述扫码交易页面产生的交易结果,并根据所述交易结果显示交易结果页面。Step 803: Obtain a transaction result generated based on the scan code transaction page, and display a transaction result page according to the transaction result.
应当指出的是,本说明书实施例提供的方法不仅适用于上述交易设备,也可以通过移动终端中的应用程序实现。It should be noted that the methods provided in the embodiments of the present specification are not only applicable to the above-mentioned transaction equipment, but also can be implemented by an application in a mobile terminal.
若本说明书实施例提供的方法应用于上述交易设备,该方法的具体实现方式可以参照上述交易设备侧的描述,此处不再赘述。If the method provided in the embodiment of the present specification is applied to the above-mentioned transaction device, the specific implementation of the method may refer to the description on the above-mentioned transaction device side, which is not repeated here.
若本说明书实施例提供的方法应用于移动终端上的应用程序,那么,在该应用程序被调用后,显示扫码交易页面。更具体的,该应用程序被调用后,在显示界面上可以显示第一交易开关和第二交易开关;在所述第一交易开关被触发后,调用所述交易设备的摄像头进行拍摄;上述步骤801中具体显示的是根据拍摄结果生成的扫码页面;在所述第二交易开关被触发后,上述步骤801中具体显示的是交易码页面。If the method provided in the embodiment of the present specification is applied to an application program on a mobile terminal, then after the application program is called, a scan code transaction page is displayed. More specifically, after the application is called, the first transaction switch and the second transaction switch can be displayed on the display interface; after the first transaction switch is triggered, the camera of the transaction device is called for shooting; the above steps In 801, the code scanning page generated according to the shooting result is specifically displayed; after the second transaction switch is triggered, the transaction code page is specifically displayed in the above step 801.
又或者,该应用程序被调用后,在显示界面上可以显示交易开关,且该交易开关具有不同的触发方式,在检测到所述交易开关的第一触发方式后,调用所述交易设备的摄像头进行拍摄,上述步骤801中具体显示的是根据拍摄结果生成的扫码页面;在检测到所述交易开关的第二触发方式后,上述步骤801中具体显示交易码页面。Or, after the application is called, a transaction switch can be displayed on the display interface, and the transaction switch has a different triggering method. After the first triggering method of the transaction switch is detected, the camera of the transaction device is called. During shooting, the code scanning page generated according to the shooting result is specifically displayed in the above step 801. After the second triggering mode of the transaction switch is detected, the transaction code page is specifically displayed in the above step 801.
若采用共享支付方式,更进一步的,还需要绑定资金提供方的主账户。具体的,显示所述交易设备的设备识别码,所述设备识别码中携带所述交易设备的标识信息,用于根据所述交易设备的标识信息在主账户下建立与所述交易设备关联的附属账户。If the shared payment method is adopted, further, the main account of the fund provider needs to be bound. Specifically, a device identification code of the transaction device is displayed, and the device identification code carries identification information of the transaction device, and is used to establish a connection with the transaction device under a master account according to the identification information of the transaction device. Subsidiary account.
对于正扫,显示扫码交易页面后,根据扫码结果获取待交易金额数据;发送交易确认消息,所述交易确认消息中携带表示同意或拒绝交易的信息,所述交易确认消息用于在携带表示同意交易的信息时,由服务器对所述附属账户进行交易操作。For forward scan, after scanning the code scanning transaction page, obtain the data of the amount to be traded according to the code scanning result; send a transaction confirmation message, the transaction confirmation message carries information indicating approval or rejection of the transaction, and the transaction confirmation message is used to carry When the information representing the transaction is approved, the server performs a transaction operation on the subsidiary account.
对于反扫,所述扫码交易页面显示交易码,所述交易码包括交易账户的信息,用于服务器对所述附属账户进行交易操作。For anti-scanning, the scan code transaction page displays a transaction code, and the transaction code includes information of a transaction account, which is used by the server to perform a transaction operation on the subsidiary account.
基于与方法同样的发明构思,第三方面,本说明书实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:Based on the same inventive concept as the method, in a third aspect, an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
在交易设备开机或交易开关被触发或交易应用被调用后,显示扫码交易页面,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关;After the trading device is turned on or the trading switch is triggered or the trading application is called, a scan code transaction page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application;
获取基于所述扫码交易页面产生的交易结果,并根据所述交易结果显示交易结 果页面。Obtain a transaction result generated based on the scan code transaction page, and display a transaction result page according to the transaction result.
可选的,所述交易开关包括第一交易开关和第二交易开关,所述计算机程序被处理器执行时还实现如下步骤:在所述第一交易开关被触发后,调用所述交易设备的摄像头进行拍摄;所述扫码交易页面包括扫码页面和交易码页面,所述在所述共享交易设备开机或交易开关被触发或交易应用被调用后,所述显示扫码交易页面的步骤包括:在所述第一交易开关被触发后,显示根据拍摄结果生成的扫码页面;在所述第二交易开关被触发后,显示交易码页面。Optionally, the transaction switch includes a first transaction switch and a second transaction switch, and when the computer program is executed by the processor, the following steps are implemented: after the first transaction switch is triggered, the transaction device is called. The camera performs photographing; the scan-code transaction page includes a scan-code page and a transaction code page, and the step of displaying the scan-code transaction page after the shared transaction device is turned on or a transaction switch is triggered or a transaction application is invoked includes: : After the first transaction switch is triggered, display a code scanning page generated according to the shooting result; after the second transaction switch is triggered, display a transaction code page.
可选的,所述交易设备包括第一显示屏和第二显示屏,所述计算机程序被处理器执行时还实现如下步骤:Optionally, the transaction device includes a first display screen and a second display screen, and when the computer program is executed by a processor, the following steps are further implemented:
在所述第一交易开关被触发后,关闭用于显示交易码页面的第二显示屏或关闭所述交易码页面;After the first transaction switch is triggered, closing a second display screen for displaying a transaction code page or closing the transaction code page;
在所述第二交易开关被触发后,关闭用于显示扫码页面的第一显示屏或关闭所述扫码页面。After the second transaction switch is triggered, the first display screen for displaying the code scanning page is turned off or the code scanning page is turned off.
可选的,所述计算机程序被处理器执行时还实现如下步骤:在检测到所述交易开关的第一触发方式后,调用所述交易设备的摄像头进行拍摄;所述扫码交易页面包括扫码页面和交易码页面,所述在所述共享交易设备开机或交易开关被触发或交易应用被调用后,显示扫码交易页面的步骤包括:在检测到所述交易开关的第一触发方式后,显示根据拍摄结果生成的扫码页面;在检测到所述交易开关的第二触发方式后,显示交易码页面。Optionally, when the computer program is executed by the processor, the following steps are further implemented: after detecting the first trigger mode of the transaction switch, calling the camera of the transaction device for shooting; the scan code transaction page includes scanning Code page and transaction code page, the step of displaying the scan code transaction page after the shared transaction device is turned on or a transaction switch is triggered or a transaction application is invoked includes: after detecting a first trigger mode of the transaction switch , Displaying a code scanning page generated according to the shooting result; after detecting the second triggering mode of the transaction switch, displaying a transaction code page.
基于上述任意计算机可读存储介质实施例,可选的,所述计算机程序被处理器执行时还实现如下步骤:Based on any of the foregoing computer-readable storage medium embodiments, optionally, when the computer program is executed by a processor, the following steps are further implemented:
显示所述交易设备的设备识别码,所述设备识别码中携带所述交易设备的标识信息,用于根据所述交易设备的标识信息在主账户下建立与所述交易设备关联的附属账户。Displaying a device identification code of the transaction device, where the device identification code carries identification information of the transaction device, and is used to establish a subsidiary account associated with the transaction device under a master account according to the identification information of the transaction device.
可选的,显示扫码交易页面后,所述计算机程序被处理器执行时还实现如下步骤:Optionally, after the code scanning transaction page is displayed, when the computer program is executed by the processor, the following steps are further implemented:
根据扫码结果获取待交易金额数据;Obtain the data of the amount to be traded according to the scanning result;
发送交易确认消息,所述交易确认消息中携带表示同意或拒绝交易的信息,所 述交易确认消息用于在携带表示同意交易的信息时,由服务器对所述附属账户进行交易操作。A transaction confirmation message is sent, where the transaction confirmation message carries information indicating approval or rejection of the transaction, and the transaction confirmation message is used to carry out a transaction operation on the subsidiary account by the server when carrying the information indicating approval of the transaction.
可选的,所述扫码交易页面显示交易码,所述交易码包括交易账户的信息,用于服务器对所述附属账户进行交易操作。Optionally, the scan code transaction page displays a transaction code, where the transaction code includes information of a transaction account, and is used by the server to perform a transaction operation on the subsidiary account.
第四方面,本说明书实施例提供一种交易方法,该方法应用于服务器侧,如图9所示,包括如下步骤:In a fourth aspect, an embodiment of the present specification provides a transaction method, which is applied to a server side, as shown in FIG. 9, and includes the following steps:
步骤901、获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述第一交易设备的硬件开关或者为所述交易应用中的虚拟开关。Step 901: Obtain a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is displayed by the first transaction device after the device is turned on or a transaction switch is triggered or a transaction application is called The transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application.
其中,第一交易设备是指本说明书实施例提供的交易设备,也可以是指使用上述本说明书实施例提供的方法的交易设备。The first transaction device refers to a transaction device provided in an embodiment of the present specification, and may also refer to a transaction device using the method provided in the embodiment of the present specification.
第二交易设备是指与第一交易设备进行交易的设备,如POS机、移动终端等等。The second transaction device refers to a device that performs transactions with the first transaction device, such as a POS machine, a mobile terminal, and the like.
步骤903、根据所述支付请求进行交易操作,并发送交易结果。Step 903: Perform a transaction operation according to the payment request, and send a transaction result.
若采用共享支付方式,相应的,还需要为第一交易设备绑定资金提供方的主账户。具体的,接收所述第一交易设备或者主账户发送的绑定请求,所述绑定请求包括所述第一交易设备的标识信息和所述主账户的账户信息;根据所述第一交易设备的标识信息和所述主账户的账户信息,为第一交易设备建立与主账户关联的交易账户。If the shared payment method is adopted, the primary account of the fund provider needs to be bound to the first transaction device accordingly. Specifically, a binding request sent by the first trading device or a master account is received, where the binding request includes identification information of the first trading device and account information of the master account; according to the first trading device The identification information and account information of the primary account establish a transaction account associated with the primary account for the first transaction device.
本说明书中,主账户是资金提供方的账户,是相对于第一交易设备的交易账户而言的。In this specification, the main account is the account of the fund provider, which is relative to the trading account of the first trading device.
相应的,根据所述支付请求进行交易操作具体可以是:根据所述支付请求查找所述交易账户;在确认所述交易账户的余额不小于所述支付请求指示的待交易金额后,从所述交易账户进行扣款操作,并生成表示交易成功的交易结果;在确认所述交易账户的余额小于所述支付请求指示的待交易金额后,生成表示交易失败的交易结果。Correspondingly, performing a transaction operation according to the payment request may specifically include: finding the transaction account according to the payment request; after confirming that the balance of the transaction account is not less than the amount to be traded indicated by the payment request, from the payment request, The transaction account performs a debit operation and generates a transaction result indicating that the transaction is successful; after confirming that the balance of the transaction account is less than the amount to be traded indicated by the payment request, generating a transaction result indicating that the transaction has failed.
其中,支付请求中可以携带交易账户的信息,也可以携带交易设备的信息。Wherein, the payment request may carry information of the transaction account and information of the transaction equipment.
采用这种交易操作方式,可以将交易账户与主账户隔离,确保了主账户资金的安全性。具体的,交易设备的交易只能通过交易账户进行,若交易账户余额不足,无法从主账户扣款。With this transaction operation method, the trading account can be isolated from the main account, ensuring the security of the main account funds. Specifically, the transaction of the trading equipment can only be performed through the trading account. If the balance of the trading account is insufficient, the main account cannot be debited.
第五方面,本说明书实施例提供一种交易装置,如图10所示,包括:In a fifth aspect, an embodiment of the present specification provides a transaction device, as shown in FIG. 10, including:
支付请求获取模块1001,用于获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关;A payment request obtaining module 1001 is configured to obtain a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is triggered or traded by the first transaction device when it is turned on or a transaction switch is turned on It is displayed after the application is called that the transaction switch is a hardware switch installed on the transaction device or a virtual switch in the transaction application;
交易操作模块1002,用于根据所述支付请求进行交易操作;A transaction operation module 1002, configured to perform a transaction operation according to the payment request;
交易结果发送模块1003,用于发送交易结果。The transaction result sending module 1003 is configured to send a transaction result.
可选的,所述装置还包括账户绑定模块,用于接收所述第一交易设备或者主账户发送的绑定请求,所述绑定请求包括所述第一交易设备的标识信息和所述主账户的账户信息;根据所述第一交易设备的标识信息和所述主账户的账户信息,在所述主账户下建立与所述第一交易设备关联的附属账户。Optionally, the apparatus further includes an account binding module for receiving a binding request sent by the first trading device or a master account, where the binding request includes identification information of the first trading device and the Account information of the main account; and according to the identification information of the first transaction device and the account information of the main account, a subsidiary account associated with the first transaction device is established under the main account.
可选的,所述交易操作模块用于:Optionally, the transaction operation module is used for:
根据所述支付请求查找所述附属账户;Find the subsidiary account according to the payment request;
在确认所述附属账户的余额不小于所述支付请求指示的待交易金额后,从所述附属账户进行扣款操作,并生成表示交易成功的交易结果;After confirming that the balance of the subsidiary account is not less than the amount to be traded indicated by the payment request, performing a debit operation from the subsidiary account and generating a transaction result indicating that the transaction is successful;
在确认所述附属账户的余额小于所述支付请求指示的待交易金额后,生成表示交易失败的交易结果。After confirming that the balance of the subsidiary account is less than the amount to be traded indicated by the payment request, a transaction result indicating that the transaction has failed is generated.
第六方面,本说明书实施例还提供一种服务器,包括:In a sixth aspect, an embodiment of the present specification further provides a server, including:
存储器,用于存储计算机程序;Memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如下步骤:A processor configured to implement the following steps when executing the computer program:
获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述第一交易设备的硬件开关或者为所述交易应用中的虚拟开关;Obtaining a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is displayed by the first transaction device after being turned on or a transaction switch is triggered or a transaction application is called, The transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application;
根据所述支付请求进行交易操作,并发送交易结果。Perform a transaction operation according to the payment request, and send a transaction result.
可选的,所述处理器还用于执行所述计算机程序时实现如下步骤:Optionally, the processor is further configured to implement the following steps when the computer program is executed:
接收所述第一交易设备或者主账户发送的绑定请求,所述绑定请求包括所述第 一交易设备的标识信息和所述主账户的账户信息;Receiving a binding request sent by the first trading device or a master account, where the binding request includes identification information of the first trading device and account information of the master account;
根据所述第一交易设备的标识信息和所述主账户的账户信息,在所述主账户下建立与所述第一交易设备关联的附属账户。According to the identification information of the first transaction device and the account information of the master account, a subsidiary account associated with the first transaction device is established under the master account.
可选的,所述根据所述支付请求进行交易操作的步骤包括:Optionally, the step of performing a transaction operation according to the payment request includes:
根据所述支付请求查找所述附属账户;Find the subsidiary account according to the payment request;
在确认所述附属账户的余额不小于所述支付请求指示的待交易金额后,从所述附属账户进行扣款操作,并生成表示交易成功的交易结果;After confirming that the balance of the subsidiary account is not less than the amount to be traded indicated by the payment request, performing a debit operation from the subsidiary account and generating a transaction result indicating that the transaction is successful;
在确认所述附属账户的余额小于所述支付请求指示的待交易金额后,生成表示交易失败的交易结果。After confirming that the balance of the subsidiary account is less than the amount to be traded indicated by the payment request, a transaction result indicating that the transaction has failed is generated.
第七方面,本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:In a seventh aspect, an embodiment of the present specification further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述第一交易设备的硬件开关或者为所述交易应用中的虚拟开关;Obtaining a payment request generated by a first transaction device or a second transaction device based on a scan code transaction page, where the scan code transaction page is displayed by the first transaction device after being turned on or a transaction switch is triggered or a transaction application is called, The transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application;
根据所述支付请求进行交易操作,并发送交易结果。Perform a transaction operation according to the payment request, and send a transaction result.
可选的,所述计算机程序被处理器执行时实现如下步骤:Optionally, when the computer program is executed by a processor, the following steps are implemented:
接收所述第一交易设备或者主账户发送的绑定请求,所述绑定请求包括所述第一交易设备的标识信息和所述主账户的账户信息;Receiving a binding request sent by the first trading device or a master account, where the binding request includes identification information of the first trading device and account information of the master account;
根据所述第一交易设备的标识信息和所述主账户的账户信息,在所述主账户下建立与所述第一交易设备关联的附属账户。According to the identification information of the first transaction device and the account information of the master account, a subsidiary account associated with the first transaction device is established under the master account.
可选的,所述根据所述支付请求进行交易操作的步骤包括:Optionally, the step of performing a transaction operation according to the payment request includes:
根据所述支付请求查找所述附属账户;Find the subsidiary account according to the payment request;
在确认所述附属账户的余额不小于所述支付请求指示的待交易金额后,从所述附属账户进行扣款操作,并生成表示交易成功的交易结果;After confirming that the balance of the subsidiary account is not less than the amount to be traded indicated by the payment request, performing a debit operation from the subsidiary account and generating a transaction result indicating that the transaction is successful;
在确认所述附属账户的余额小于所述支付请求指示的待交易金额后,生成表示交易失败的交易结果。After confirming that the balance of the subsidiary account is less than the amount to be traded indicated by the payment request, a transaction result indicating that the transaction has failed is generated.
本说明书实施例有益效果如下:The beneficial effects of the embodiments of this specification are as follows:
在检测到交易设备开机或者交易开关被触发或者交易应用被调用,显示扫码交易界面。这意味着,只要交易设备开机,或者用户按下交易开关,或者用户打开交易应用,即自动显示扫码交易界面,并显示交易结果。用户无需在交易应用中的众多功能中寻找交易按钮,简化了交易操作,使得交易操作更便捷。When it is detected that the transaction equipment is turned on or the transaction switch is triggered or the transaction application is called, the scan code transaction interface is displayed. This means that as long as the trading device is turned on, or the user presses the trading switch, or the user opens the trading application, the scan code trading interface is automatically displayed and the trading result is displayed. The user does not need to look for the trading buttons in the numerous functions in the trading application, which simplifies the trading operation and makes the trading operation more convenient.
本说明书实施例中所述支付涉及的技术载体,例如可以包括近场通信(Near Field Communication,NFC)、WIFI、3G/4G/5G,POS机刷卡技术、二维码扫码技术、条形码扫码技术、蓝牙、红外、短消息(Short Message Service,SMS)、多媒体消息(Multimedia Message Service,MMS)等。The technical carriers involved in the payment described in the embodiments of this specification may include, for example, Near Field Communication (NFC), WIFI, 3G / 4G / 5G, POS machine card technology, QR code scanning technology, barcode scanning Technology, Bluetooth, infrared, Short Message (SMS), Multimedia Message (MMS), etc.
本说明书是参照根据本说明书实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的设备。This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the specification. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate instructions A device for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令设备的制造品,该指令设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
尽管已描述了本说明书的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本说明书范围的所有变更和修改。Although the preferred embodiments of the present specification have been described, those skilled in the art can make other changes and modifications to these embodiments once they know the basic inventive concepts. Therefore, the following claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of this description.
显然,本领域的技术人员可以对本说明书进行各种改动和变型而不脱离本说明书的精神和范围。这样,倘若本说明书的这些修改和变型属于本说明书权利要求及其等 同技术的范围之内,则本说明书也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this specification without departing from the spirit and scope of this specification. In this way, if these modifications and variations of this specification belong to the scope of the claims of the specification and the equivalent technology, this specification is also intended to include these modifications and variations.
Claims (24)
- 一种交易设备,其特征在于,包括:A transaction device, comprising:设备外壳;Equipment shell安装于所述设备外壳内部的存储器,用于存储计算机程序;A memory installed inside the casing of the device for storing a computer program;安装于所述设备外壳内部的通信模块,用于根据处理器的控制接收或发送数据;A communication module installed inside the equipment casing, configured to receive or send data according to the control of the processor;安装于所述设备外壳表面的显示屏,用于根据处理器的控制进行显示;A display screen installed on the surface of the casing of the device for displaying according to the control of the processor;安装于所述设备外壳内部的处理器,用于执行所述计算机程序时实现如下步骤:A processor installed inside the device casing is used to implement the following steps when executing the computer program:在所述交易设备开机或交易开关被触发或交易应用被调用后,调用所述显示屏显示扫码交易页面,所述交易开关安装于所述设备外壳表面或者是显示于所述显示屏的虚拟开关;After the trading device is turned on or a trading switch is triggered or a trading application is called, the display screen is called to display a scan-code transaction page, and the trading switch is installed on the surface of the device shell or is a virtual display on the display screen. switch;通过所述通信模块获取基于扫码交易页面产生的交易结果,并根据所述交易结果调用所述显示屏显示交易结果页面。The transaction result generated based on the scan code transaction page is acquired through the communication module, and the display screen is called to display the transaction result page according to the transaction result.
- 根据权利要求1所述的设备,其特征在于,所述交易设备还包括安装于所述设备外壳表面的摄像头,用于根据处理器的控制进行拍摄;The device according to claim 1, wherein the transaction device further comprises a camera mounted on a surface of the casing of the device, for taking pictures according to the control of the processor;所述设备外壳表面设置有第一交易开关和第二交易开关;A first transaction switch and a second transaction switch are provided on the surface of the device casing;所述处理器还用于执行所述计算机程序时实现如下步骤:在所述第一交易开关被触发后,调用所述摄像头进行拍摄;The processor is further configured to implement the following steps when the computer program is executed: after the first transaction switch is triggered, call the camera for shooting;所述扫码交易页面包括扫码页面和交易码页面,所述在所述共享交易设备开机或交易开关被触发或交易应用被调用后,调用所述显示屏显示扫码交易页面的步骤包括:The code scanning transaction page includes a code scanning page and a transaction code page. After the shared transaction device is turned on or a transaction switch is triggered or a transaction application is called, the step of calling the display screen to display the code scanning transaction page includes:在所述第一交易开关被触发后,调用所述显示屏显示根据拍摄结果生成的扫码页面;After the first transaction switch is triggered, calling the display screen to display a code scanning page generated according to the shooting result;在所述第二交易开关被触发后,调用所述显示屏显示交易码页面。After the second transaction switch is triggered, the display screen is called to display a transaction code page.
- 根据权利要求2所述的设备,其特征在于,所述显示屏包括第一显示屏和第二显示屏;所述处理器还用于执行所述计算机程序时实现如下步骤:The device according to claim 2, wherein the display screen comprises a first display screen and a second display screen; and the processor is further configured to implement the following steps when the computer program is executed:在所述第一交易开关被触发后,关闭用于显示交易码页面的第二显示屏或关闭所述交易码页面;After the first transaction switch is triggered, closing a second display screen for displaying a transaction code page or closing the transaction code page;在所述第二交易开关被触发后,关闭用于显示扫码页面的第一显示屏或关闭所述扫码页面。After the second transaction switch is triggered, the first display screen for displaying the code scanning page is turned off or the code scanning page is turned off.
- 根据权利要求3所述的设备,其特征在于,所述第一显示屏和第一交易开关安装于所述设备外壳的第一表面,所述第二显示屏和第二交易开关安装于与所述第一表面相对的所述设备外壳的第二表面。The device according to claim 3, wherein the first display screen and the first transaction switch are installed on a first surface of the device case, and the second display screen and the second transaction switch are installed on a first surface of the device. The first surface is opposite the second surface of the device housing.
- 根据权利要求1所述的设备,其特征在于,所述交易设备还包括安装于所述设 备外壳表面的摄像头,用于根据处理器的控制进行拍摄;The device according to claim 1, wherein the transaction device further comprises a camera mounted on a surface of the casing of the device, and is configured to perform shooting according to control of a processor;所述处理器还用于执行所述计算机程序时实现如下步骤:在检测到所述交易开关的第一触发方式后,调用所述摄像头进行拍摄;The processor is further configured to implement the following steps when the computer program is executed: after detecting the first trigger mode of the transaction switch, calling the camera for shooting;所述扫码交易页面包括扫码页面和交易码页面,所述在所述共享交易设备开机或交易开关被触发或交易应用被调用后,调用所述显示屏显示扫码交易页面步骤包括:The code scanning transaction page includes a code scanning page and a transaction code page. After the shared transaction device is turned on or a transaction switch is triggered or a transaction application is invoked, calling the display screen to display the code scanning transaction page includes:在检测到所述交易开关的第一触发方式后,调用所述显示屏显示根据拍摄结果生成的扫码页面;After detecting the first trigger mode of the transaction switch, calling the display screen to display a code scanning page generated according to the shooting result;在检测到所述交易开关的第二触发方式后,调用所述显示屏显示码页面。After the second trigger mode of the transaction switch is detected, the display screen code page is called.
- 根据权利要求1~5任一项所述的设备,其特征在于,所述处理器还用于执行所述计算机程序时实现如下步骤:The device according to any one of claims 1 to 5, wherein the processor is further configured to implement the following steps when the computer program is executed:调用所述显示屏显示所述交易设备的设备识别码,所述设备识别码中携带所述交易设备的标识信息,用于根据所述交易设备的标识信息建立与主账户关联的所述交易设备的交易账户。Invoking the display screen to display a device identification code of the transaction device, where the device identification code carries identification information of the transaction device, and is used to establish the transaction device associated with the main account according to the identification information of the transaction device Trading account.
- 根据权利要求6所述的设备,其特征在于,调用所述显示屏显示扫码交易页面后,所述处理器还用于执行所述计算机程序时实现如下步骤:The device according to claim 6, characterized in that, after calling the display screen to display a code scanning transaction page, the processor is further configured to implement the following steps when executing the computer program:根据扫码结果获取待交易金额数据;Obtain the data of the amount to be traded according to the scanning result;发送交易确认消息,所述交易确认消息中携带表示同意或拒绝交易的信息,所述交易确认消息用于在携带表示同意交易的信息时,由服务器对所述交易账户进行交易操作。A transaction confirmation message is sent, where the transaction confirmation message carries information indicating approval or rejection of the transaction, and the transaction confirmation message is used to carry out a transaction operation on the transaction account by the server when carrying the information indicating consent to the transaction.
- 根据权利要求6所述的设备,其特征在于,所述扫码交易页面显示交易码,所述交易码包括附属账户的信息,用于服务器对所述交易账户进行交易操作。The device according to claim 6, wherein the scan code transaction page displays a transaction code, and the transaction code includes information of an affiliated account, and is used by the server to perform a transaction operation on the transaction account.
- 一种交易方法,其特征在于,包括:A trading method, comprising:在交易设备开机或交易开关被触发或交易应用被调用后,显示扫码交易页面,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关;After the trading device is turned on or the trading switch is triggered or the trading application is called, a scan code transaction page is displayed, where the trading switch is a hardware switch installed on the trading device or a virtual switch in the trading application;获取基于所述扫码交易页面产生的交易结果,并根据所述交易结果显示交易结果页面。Acquiring a transaction result generated based on the scan code transaction page, and displaying a transaction result page according to the transaction result.
- 根据权利要求9所述的方法,其特征在于,所述交易开关包括第一交易开关和第二交易开关,该方法还包括:在所述第一交易开关被触发后,调用所述交易设备的摄像头进行拍摄;The method according to claim 9, wherein the transaction switch comprises a first transaction switch and a second transaction switch, and the method further comprises: after the first transaction switch is triggered, invoking the transaction device Camera for shooting;所述扫码交易页面包括扫码页面和交易码页面,所述在所述共享交易设备开机或交易开关被触发或交易应用被调用后,所述显示扫码交易页面包括:The code scanning transaction page includes a code scanning page and a transaction code page. After the shared transaction device is turned on or a transaction switch is triggered or a transaction application is invoked, the displaying the code scanning transaction page includes:在所述第一交易开关被触发后,显示根据拍摄结果生成的扫码页面;After the first transaction switch is triggered, displaying a code scanning page generated according to a shooting result;在所述第二交易开关被触发后,显示交易码页面。After the second transaction switch is triggered, a transaction code page is displayed.
- 根据权利要求10所述的方法,其特征在于,所述交易设备包括第一显示屏和第二显示屏,该方法还包括:The method according to claim 10, wherein the transaction device comprises a first display screen and a second display screen, and the method further comprises:在所述第一交易开关被触发后,关闭用于显示交易码页面的第二显示屏或关闭所述交易码页面;After the first transaction switch is triggered, closing a second display screen for displaying a transaction code page or closing the transaction code page;在所述第二交易开关被触发后,关闭用于显示扫码页面的第一显示屏或关闭所述扫码页面。After the second transaction switch is triggered, the first display screen for displaying the code scanning page is turned off or the code scanning page is turned off.
- 根据权利要求9所述的方法,其特征在于,该方法还包括:在检测到所述交易开关的第一触发方式后,调用所述交易设备的摄像头进行拍摄;The method according to claim 9, further comprising: after detecting the first triggering mode of the transaction switch, calling a camera of the transaction device for shooting;所述扫码交易页面包括扫码页面和交易码页面,所述在所述共享交易设备开机或交易开关被触发或交易应用被调用后,显示扫码交易页面包括:The code scanning transaction page includes a code scanning page and a transaction code page. After the shared transaction device is turned on or a transaction switch is triggered or a transaction application is invoked, displaying the code scanning transaction page includes:在检测到所述交易开关的第一触发方式后,显示根据拍摄结果生成的扫码页面;After detecting the first trigger mode of the transaction switch, displaying a code scanning page generated according to the shooting result;在检测到所述交易开关的第二触发方式后,显示交易码页面。After detecting the second trigger mode of the transaction switch, a transaction code page is displayed.
- 根据权利要求9~12任一项所述的方法,其特征在于,该方法还包括:The method according to any one of claims 9 to 12, wherein the method further comprises:显示所述交易设备的设备识别码,所述设备识别码中携带所述交易设备的标识信息,用于根据所述交易设备的标识信息建立与主账户关联的所述交易设备的交易账户。Displaying a device identification code of the transaction device, where the device identification code carries identification information of the transaction device, and is used to establish a transaction account of the transaction device associated with a main account according to the identification information of the transaction device.
- 根据权利要求13所述的方法,其特征在于,显示扫码交易页面后,该方法还包括:The method according to claim 13, further comprising: after displaying the scanning transaction page, the method further comprises:根据扫码结果获取待交易金额数据;Obtain the data of the amount to be traded according to the scanning result;发送交易确认消息,所述交易确认消息中携带表示同意或拒绝交易的信息,所述交易确认消息用于在携带表示同意交易的信息时,由服务器对所述交易账户进行交易操作。A transaction confirmation message is sent, where the transaction confirmation message carries information indicating approval or rejection of the transaction, and the transaction confirmation message is used to carry out a transaction operation on the transaction account by the server when carrying the information indicating consent to the transaction.
- 根据权利要求13所述的方法,其特征在于,所述扫码交易页面显示交易码,所述交易码包括交易账户的信息,用于服务器对所述交易账户进行交易操作。The method according to claim 13, wherein the scan code transaction page displays a transaction code, and the transaction code includes information of a transaction account, and is used by a server to perform a transaction operation on the transaction account.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求9~15中任一项所述的方法的步骤。A computer-readable storage medium having stored thereon a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 9 to 15 are implemented.
- 一种交易方法,其特征在于,包括:A trading method, comprising:获取第一交易设备或与所述第一交易设备进行交易的第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述第一交易设备的硬件开关或者为所述交易应用中的虚拟开关;Obtain a payment request generated by a first transaction device or a second transaction device that conducts a transaction with the first transaction device based on a scan-code transaction page, the scan-code transaction page being triggered by the first transaction device being turned on or a transaction switch Or it is displayed after the transaction application is called that the transaction switch is a hardware switch installed on the first transaction device or a virtual switch in the transaction application;根据所述支付请求进行交易操作,并发送交易结果。Perform a transaction operation according to the payment request, and send a transaction result.
- 根据权利要求17所述的方法,其特征在于,该方法还包括:The method according to claim 17, further comprising:接收所述第一交易设备或者主账户发送的绑定请求,所述绑定请求包括所述第一交易设备的标识信息和所述主账户的账户信息;Receiving a binding request sent by the first trading device or a master account, where the binding request includes identification information of the first trading device and account information of the master account;根据所述第一交易设备的标识信息和所述主账户的账户信息,建立与主账户关联的第一交易设备的交易账户。According to the identification information of the first transaction device and the account information of the main account, a transaction account of the first transaction device associated with the main account is established.
- 根据权利要求18所述的方法,其特征在于,所述根据所述支付请求进行交易操作,包括:The method according to claim 18, wherein the performing a transaction operation according to the payment request comprises:根据所述支付请求查找所述交易账户;Searching the transaction account according to the payment request;在确认所述交易账户的余额不小于所述支付请求指示的待交易金额后,从所述交易账户进行扣款操作,并生成表示交易成功的交易结果;After confirming that the balance of the transaction account is not less than the amount to be traded indicated by the payment request, performing a debit operation from the transaction account, and generating a transaction result indicating a successful transaction;在确认所述交易账户的余额小于所述支付请求指示的待交易金额后,生成表示交易失败的交易结果。After confirming that the balance of the transaction account is less than the amount to be traded indicated by the payment request, a transaction result indicating that the transaction has failed is generated.
- 一种交易装置,其特征在于,包括:A trading device, comprising:支付请求获取模块,用于获取第一交易设备或第二交易设备基于扫码交易页面生成的支付请求,所述扫码交易页面由所述第一交易设备在开机或者交易开关被触发或者交易应用被调用后显示,所述交易开关为安装于所述交易设备的硬件开关或者为所述交易应用中的虚拟开关;A payment request obtaining module, configured to obtain a payment request generated by a first transaction device or a second transaction device based on a scan-code transaction page, where the scan-code transaction page is triggered by the first transaction device when it is turned on or a transaction switch or a transaction application After being called, it is displayed that the transaction switch is a hardware switch installed on the transaction device or a virtual switch in the transaction application;交易操作模块,用于根据所述支付请求进行交易操作;A transaction operation module, configured to perform a transaction operation according to the payment request;交易结果发送模块,用于发送交易结果。The transaction result sending module is used to send transaction results.
- 根据权利要求20所述的装置,其特征在于,所述装置还包括账户绑定模块,用于接收所述第一交易设备或者主账户发送的绑定请求,所述绑定请求包括所述第一交易设备的标识信息和所述主账户的账户信息;根据所述第一交易设备的标识信息和所述主账户的账户信息,建立与主账户关联的第一交易设备的交易账户。The apparatus according to claim 20, wherein the apparatus further comprises an account binding module, configured to receive a binding request sent by the first transaction device or a master account, where the binding request includes the first Identification information of a transaction device and account information of the main account; and establishing a transaction account of the first transaction device associated with the main account according to the identification information of the first transaction device and account information of the main account.
- 根据权利要求21所述的装置,其特征在于,所述交易操作模块用于:The device according to claim 21, wherein the transaction operation module is configured to:根据所述支付请求查找所述交易账户;Searching the transaction account according to the payment request;在确认所述附属账户的余额不小于所述支付请求指示的待交易金额后,从所述交易账户进行扣款操作,并生成表示交易成功的交易结果;After confirming that the balance of the subsidiary account is not less than the amount to be traded indicated by the payment request, performing a debit operation from the trade account and generating a transaction result indicating that the transaction is successful;在确认所述交易账户的余额小于所述支付请求指示的待交易金额后,生成表示交易失败的交易结果。After confirming that the balance of the transaction account is less than the amount to be traded indicated by the payment request, a transaction result indicating that the transaction has failed is generated.
- 一种服务器,其特征在于,包括:A server is characterized in that it includes:存储器,用于存储计算机程序;Memory for storing computer programs;处理器,用于执行所述计算机程序时实现权利要求17~19任一项所述方法的步骤。A processor, configured to implement the steps of the method according to any one of claims 17 to 19 when executing the computer program.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求17~19中任一项所述的方法的步骤。A computer-readable storage medium having stored thereon a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 17 to 19 are implemented.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811015733.7A CN109389391A (en) | 2018-08-31 | 2018-08-31 | A kind of traction equipment, method, apparatus, server and storage medium |
CN201811015733.7 | 2018-08-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020042794A1 true WO2020042794A1 (en) | 2020-03-05 |
Family
ID=65418701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/096283 WO2020042794A1 (en) | 2018-08-31 | 2019-07-17 | Transaction device, method, and apparatus, server, and storage medium |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN109389391A (en) |
TW (1) | TW202011308A (en) |
WO (1) | WO2020042794A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109389391A (en) * | 2018-08-31 | 2019-02-26 | 阿里巴巴集团控股有限公司 | A kind of traction equipment, method, apparatus, server and storage medium |
CN110009837B (en) * | 2019-04-03 | 2021-04-02 | 深圳市品生科技有限公司 | Mobile payment equipment |
CN110264332A (en) * | 2019-05-06 | 2019-09-20 | 阿里巴巴集团控股有限公司 | The method, apparatus and electronic equipment that account is entered an item of expenditure in the accounts |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140209672A1 (en) * | 2009-11-06 | 2014-07-31 | Mastercard International Incorporated | Methods for risk management in payment-enabled mobile device |
CN105741110A (en) * | 2016-03-15 | 2016-07-06 | 宣颖骥 | Electronic payment method and electronic payment equipment |
CN106980975A (en) * | 2017-02-24 | 2017-07-25 | 济南汉泰信息科技有限公司 | A kind of method of payment, system and intelligent terminal |
CN109389391A (en) * | 2018-08-31 | 2019-02-26 | 阿里巴巴集团控股有限公司 | A kind of traction equipment, method, apparatus, server and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105205662A (en) * | 2015-11-09 | 2015-12-30 | 联想(北京)有限公司 | Electronic equipment and payment method |
CN107085488A (en) * | 2017-03-17 | 2017-08-22 | 深圳市全智达科技有限公司 | The quick application method and device of a kind of application program common function |
CN107633391A (en) * | 2017-09-27 | 2018-01-26 | 深圳市万通顺达科技股份有限公司 | Screen Quick Response Code consumption system and its Quick Response Code consuming method |
-
2018
- 2018-08-31 CN CN201811015733.7A patent/CN109389391A/en active Pending
-
2019
- 2019-06-27 TW TW108122544A patent/TW202011308A/en unknown
- 2019-07-17 WO PCT/CN2019/096283 patent/WO2020042794A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140209672A1 (en) * | 2009-11-06 | 2014-07-31 | Mastercard International Incorporated | Methods for risk management in payment-enabled mobile device |
CN105741110A (en) * | 2016-03-15 | 2016-07-06 | 宣颖骥 | Electronic payment method and electronic payment equipment |
CN106980975A (en) * | 2017-02-24 | 2017-07-25 | 济南汉泰信息科技有限公司 | A kind of method of payment, system and intelligent terminal |
CN109389391A (en) * | 2018-08-31 | 2019-02-26 | 阿里巴巴集团控股有限公司 | A kind of traction equipment, method, apparatus, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109389391A (en) | 2019-02-26 |
TW202011308A (en) | 2020-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10872342B2 (en) | Method and apparatus for offline payment, service processing, and payment processing | |
US11928664B2 (en) | Systems and methods for processing cardless transactions | |
US11727381B2 (en) | Method, server, and readable storage medium for processing payment in offline scenario | |
WO2020042794A1 (en) | Transaction device, method, and apparatus, server, and storage medium | |
US20090313147A1 (en) | Alternative payment implementation for electronic retailers | |
US11410146B2 (en) | Order processing | |
US11074577B1 (en) | Systems and methods for making person-to-person payments via mobile client application | |
WO2019218745A1 (en) | Tax refund method, system and device, mobile terminal and service server | |
CN111709836A (en) | Method and device for realizing bank account revocation | |
US11989718B2 (en) | Context-aware peer-to-peer transfers of items | |
US20220164781A1 (en) | ATM-Based Electronic Payment Conversion Systems, Methods, and User Interfaces | |
CN110874728A (en) | Online payment system, online payment method, device, medium and server | |
CN101702255A (en) | POS providing additional earmark service for electronic purse in transaction and method | |
WO2016026381A1 (en) | Method and device for numerical value information transfer | |
WO2015101057A1 (en) | Data processing method and related device and system | |
US11144901B1 (en) | Systems, methods, and interfaces to facilitate use of a retail point of sale machine to fund an electronic payment pending with an electronic payment system | |
CN111192036A (en) | Account resource updating method and device, computer equipment and storage medium | |
CN108156206B (en) | Data transfer method, server, client and system | |
CN110570183A (en) | checking method and system for secret-free payment transaction | |
TW201939389A (en) | Mobile communication devices and electronic payment methods | |
CN113656415B (en) | Payment method, payment device, payment apparatus, and storage medium | |
KR102442526B1 (en) | Method, termibal unit and server for payment | |
US20230394467A1 (en) | System and method for providing restricted token usage during an onboarding phase | |
CN117010874A (en) | Transaction processing method, device, equipment and storage medium | |
CN115131010A (en) | Transaction method, device, medium and electronic equipment based on digital currency |
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: 19853382 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: 19853382 Country of ref document: EP Kind code of ref document: A1 |