CN114119000A - Offline transaction method and device, storage medium and electronic equipment - Google Patents
Offline transaction method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114119000A CN114119000A CN202111406540.6A CN202111406540A CN114119000A CN 114119000 A CN114119000 A CN 114119000A CN 202111406540 A CN202111406540 A CN 202111406540A CN 114119000 A CN114119000 A CN 114119000A
- Authority
- CN
- China
- Prior art keywords
- information
- order
- payment
- encrypted
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000012795 verification Methods 0.000 claims description 27
- 238000001514 detection method Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 241000531116 Blitum bonus-henricus Species 0.000 description 1
- 235000008645 Chenopodium bonus henricus Nutrition 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 235000013361 beverage Nutrition 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 235000011888 snacks Nutrition 0.000 description 1
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/08—Payment architectures
- G06Q20/18—Payment architectures involving self-service terminals [SST], vending machines, kiosks or multimedia terminals
-
- 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/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The disclosure provides an offline transaction method, an offline transaction device, a storage medium and electronic equipment, which overcome the problem that a self-service terminal cannot perform transactions in an offline state. An off-line transaction method is provided, which comprises: acquiring order information of a target order; encrypting the order information to obtain encrypted order information; generating and presenting a first graphic code based on the encrypted order information and the payment address of the target order; obtaining the order payment information of the encrypted target order by scanning the second graphic code; decrypting the encrypted order payment information to obtain order information of the target order, information of the server side equipment and a payment result of the target order; authenticating the order information of the target order, the information of the server-side equipment and the payment result to obtain an authentication result; and determining whether the target order is successfully traded according to the authentication result. The embodiment of the disclosure can improve the probability of successful transaction of the self-service terminal.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an offline transaction method, an offline transaction apparatus, a storage medium, and an electronic device.
Background
With the development of computer technology, the types and functions of self-service terminals are more and more. Current terminals can be classified into two categories according to whether they have interactive capabilities or not. The simple terminal without the interaction capability mainly takes terminals such as carousel advertisements and the like as representatives; the terminal with interactive capability identifies user information by means of readable IC (Integrated Circuit) card, two-dimensional code and the like, and provides commodity (such as microchip card, snack beverage and the like) service according to user requirements. Mobile payment has become the mainstream transaction mode in various shopping scenes due to convenience and safety. In mobile payment, a consumer generally provides a two-dimensional code generated immediately to a self-service terminal, or scans the two-dimensional code provided by the self-service terminal, and the payment is completed through networking. In the transaction process, the self-service terminal needs to be networked to check whether the user successfully pays. However, the self-service terminal is located in various places of the city based on the convenience characteristics, the network state is different, and the situation of no network connection may exist. Therefore, how the self-service terminal completes the transaction smoothly in an off-line state becomes a problem to be solved.
Disclosure of Invention
The disclosure provides an offline transaction method, an offline transaction device, a storage medium and an electronic device, which at least overcome the problem that a self-service terminal in the related art cannot perform transactions in an offline state to a certain extent.
According to a first aspect of the present disclosure, there is provided an offline transaction method applied to a self-service terminal, the method including: acquiring order information of a target order; encrypting the order information to obtain encrypted order information; generating and presenting a first graphic code based on the encrypted order information and the payment address of the target order; obtaining encrypted order payment information of the target order by scanning a second graphic code; decrypting the encrypted order payment information to obtain order information of the target order, information of server-side equipment and a payment result of the target order; authenticating the order information of the target order, the information of the server-side equipment and the payment result to obtain an authentication result; and determining whether the target order is successfully traded according to the authentication result.
Optionally, the method further includes: and before encrypting the order information to obtain the encrypted order information, performing network detection on the self-service terminal, and if the self-service terminal has no network connection, determining that the self-service terminal performs off-line transaction based on the order information.
Optionally, the self-service terminal stores encryption algorithm information for encrypting the order information, decryption algorithm information for decrypting the encrypted order payment information, and a payment address of the commodity.
According to a second aspect of the present disclosure, there is provided an offline transaction method applied to a user terminal, the method including: the method comprises the steps that order information and a payment address of an encrypted target order are obtained by scanning a first graphic code presented on a self-service terminal; sending the order information of the encrypted target order to server side equipment according to the payment address; and carrying out payment operation according to the information to be paid from the server-side equipment.
Optionally, the method further includes: and after payment operation is carried out according to the information to be paid from the server side equipment, a second graphic code sent by the server side equipment is obtained and presented, wherein the second graphic code comprises encrypted information of the server side equipment, the order information and a payment result of the target order.
According to a third aspect of the present disclosure, there is provided an offline transaction method applied to a server device, the method including: acquiring order information of an encrypted target order from the user terminal; decrypting the encrypted order information to obtain decrypted order information; verifying the decrypted order information to obtain a verification result; if the verification result shows that the verification is passed, sending a message to be paid of the target order to the user terminal; acquiring payment information of the user terminal on the target order; encrypting information of server equipment, order information of the target order and the payment information; generating a second graphic code by using the encrypted information of the server-side equipment, the encrypted order information of the target order and the encrypted payment information; and sending the second graphic code to the user terminal.
According to a fourth aspect of the present disclosure, there is provided an offline transaction apparatus applied to a self-service terminal, the apparatus comprising: the first acquisition module is used for acquiring order information of a target order; the first encryption module is used for encrypting the order information to obtain encrypted order information; the first generating module is used for generating and presenting a first graphic code based on the encrypted order information and the payment address of the target order; the first scanning module is used for scanning the second graphic code to obtain the encrypted order payment information of the target order; the first decryption module is used for decrypting the encrypted order payment information to obtain order information of the target order, information of the server side equipment and a payment result of the target order; the authentication module is used for authenticating the order information of the target order, the information of the server-side equipment and the payment result to obtain an authentication result; and the determining module is used for determining whether the target order is successfully traded according to the authentication result.
According to a fifth aspect of the present disclosure, there is provided an offline transaction apparatus applied to a user terminal, the apparatus including: the second scanning module is used for scanning the first graphic code presented on the self-service terminal to obtain the encrypted order information and the payment address of the target order; the first sending module is used for sending the order information of the encrypted target order to the server-side equipment according to the payment address; the payment module is used for carrying out payment operation according to the information to be paid from the server-side equipment; and the presentation module is used for acquiring and presenting a second graphic code sent by the server device, wherein the second graphic code comprises encrypted information of the server device, the order information and a payment result of the target order.
According to a sixth aspect of the present disclosure, there is provided an offline transaction apparatus applied to a server device, the apparatus including: the second acquisition module is used for acquiring the order information of the encrypted target order from the user terminal; the second decryption module is used for decrypting the encrypted order information to obtain decrypted order information; the verification module is used for verifying the decrypted order information to obtain a verification result; the second sending module is used for sending the message to be paid of the target order to the user terminal if the verification result shows that the verification is passed; the third acquisition module is used for acquiring payment information of the user terminal on the target order; the second encryption module is used for encrypting the information of the server equipment, the order information of the target order and the payment information; the second generating module is used for generating a second graphic code from the encrypted information of the server-side equipment, the encrypted order information of the target order and the encrypted payment information; and the third sending module is used for sending the second graphic code to the user terminal.
According to a seventh aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the offline transaction methods provided by the embodiments of the present disclosure via execution of the executable instructions.
According to an eighth aspect of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing any one of the offline transaction methods provided by the embodiments of the present disclosure.
According to the offline transaction method, the offline transaction device, the storage medium and the electronic equipment in one or more embodiments of the disclosure, after the order information of the target order is obtained, the order information is encrypted, and the first graphic code is generated and presented based on the encrypted order information and the payment address of the target order, so that the self-service terminal can present the order information and the payment address in the form of the first graphic code in an offline state. And then, the order payment information of the encrypted target order is obtained by scanning the second graphic code, so that the payment information of the encrypted target order is further obtained by scanning the second graphic code in an off-line state of the self-service terminal, the self-service terminal can decrypt the encrypted order payment information, authenticate the order payment information obtained by decryption, determine whether the target order is successfully traded according to an authentication result, complete the trading of the target order, and improve the probability of successful trading of the self-service terminal.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 is a flow diagram of a method of off-line transactions according to one or more embodiments of the present disclosure;
FIG. 2 is a flow diagram of a method of off-line transactions according to one or more embodiments of the present disclosure;
FIG. 3 is a flow diagram of a method of offline transactions according to one or more embodiments of the present disclosure;
FIG. 4 is a flow diagram of a method of off-line transactions according to one or more embodiments of the present disclosure;
FIG. 5 is a schematic illustration of an offline transaction method according to one or more embodiments of the present disclosure;
FIG. 6 is a schematic illustration of an offline transaction method according to one or more embodiments of the present disclosure;
fig. 7 is a schematic structural diagram of an offline transaction apparatus according to one or more embodiments of the present disclosure;
FIG. 8 is a schematic diagram of an offline transaction device, according to one or more embodiments of the present disclosure;
FIG. 9 is a schematic diagram of an offline transaction device, according to one or more embodiments of the present disclosure; and
fig. 10 is a schematic structural diagram of an electronic device according to one or more embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 is a flowchart of an offline transaction method applied to a self-service terminal, for example, executable by the self-service terminal, according to one or more embodiments of the present disclosure, the method including:
step S102: acquiring order information of a target order;
in one or more embodiments of the present disclosure, the self-service terminal may provide the goods, display the goods information, and acquire and display the order information. A user can select a commodity needing to be placed by operating the self-service terminal, and the self-service terminal can respond to the user operation and obtain order information of a target order.
Step S104: encrypting the order information to obtain encrypted order information;
optionally, the self-service terminal may subscribe an encryption algorithm with a server device (a server device for processing order payment by a user) in advance, the self-service terminal encrypts the order information of the target order by using the encryption algorithm, and when the server device obtains the encrypted order information, the encrypted order information may be decrypted by using a corresponding decryption algorithm, so that it is ensured that the order information is all transmitted in an encrypted form.
Step S106: generating and presenting a first graphic code based on the encrypted order information and the payment address of the target order;
optionally, the payment address of the target order may be presented in the form of a payment link, and the first graphic code including the encrypted order information and the payment link of the target order may be generated after the encrypted order information is attached to the payment link. Illustratively, the first graphic code may be, for example, a two-dimensional code.
Optionally, the self-service terminal may include a display screen, and after the first graphic code is generated, the first graphic code may be presented on the display screen, so that the user terminal may obtain the encrypted order information and the payment address by scanning the first graphic code.
Step S108: obtaining encrypted order payment information of the target order by scanning a second graphic code;
optionally, the self-service terminal may further include a camera, and the self-service terminal may scan a second graphic code through the camera, where the second graphic code may be presented on a display screen of the user terminal, and the user holds the user terminal by hand to scan before the camera of the self-service terminal, so that the self-service terminal obtains the encrypted order payment information of the target order by scanning the second graphic code.
Step S110: decrypting the encrypted order payment information to obtain order information of the target order, information of server-side equipment and a payment result of the target order;
optionally, the second graphic code may be provided by the server device, and may include encrypted order information of the target order, information of the server device, and a payment result of the target order. The self-service terminal can decrypt the encrypted order payment information obtained by scanning the codes by using a decryption algorithm corresponding to the encryption algorithm to obtain the order information of the decrypted target order, the information of the server-side equipment and the payment result of the target order.
Step S112: authenticating the order information of the target order, the information of the server-side equipment and the payment result to obtain an authentication result;
optionally, the self-service terminal may respectively authenticate whether the order information of the target order is consistent with the previously stored order information, authenticate whether the information of the server device is consistent with the previously stored information of the server, and authenticate whether the payment result of the target order is successful according to the information already stored by the self-service terminal. The information of the server device may be, for example, identity information of the server device.
Step S114: and determining whether the target order is successfully traded according to the authentication result.
Optionally, if the self-service terminal determines that the order information of the target order is consistent with the previously stored order information according to the stored information, it determines that the information of the authentication server device is consistent with the previously stored server information, it determines that the payment result of the target order is successful, and it determines that the transaction of the target order is successful.
According to the offline transaction method in one or more embodiments of the disclosure, after the order information of the target order is acquired, the order information is encrypted, and a first graphic code is generated and presented based on the encrypted order information and the payment address of the target order, so that the self-service terminal can present the order information and the payment address in the form of the first graphic code in an offline state. And then, the order payment information of the encrypted target order is obtained by scanning the second graphic code, so that the payment information of the encrypted target order is further obtained by scanning the second graphic code in an off-line state of the self-service terminal, the self-service terminal can decrypt the encrypted order payment information, authenticate the order payment information obtained by decryption, determine whether the target order is successfully traded according to an authentication result, complete the trading of the target order, and improve the probability of successful trading of the self-service terminal.
The embodiment of the disclosure can also solve the problem that the network signal of the position of the self-service terminal is unstable when the self-service terminal is flexibly placed; or the self-service terminal network fails and cannot provide service normally.
Fig. 2 is a flowchart of an offline transaction method according to one or more embodiments of the present disclosure, as shown in fig. 2, the method may further include, on the basis of fig. 1:
step S202: and before encrypting the order information to obtain the encrypted order information, performing network detection on the self-service terminal, and if the self-service terminal has no network connection, determining that the self-service terminal performs off-line transaction based on the order information. Optionally, after performing offline transaction based on the order information, performing network detection on the self-service terminal again, and if the self-service terminal recovers network connection, switching the self-service terminal from an offline transaction mode to an online transaction mode; and if the self-service terminal still has no network connection, enabling the self-service terminal to still be in an offline transaction mode until the self-service terminal recovers the network connection.
It should be noted that the operation of performing network detection on the self-service terminal may be performed before step S102, or may be performed after step S102.
In one or more embodiments of the present disclosure, the order information may include: the self-service terminal identification, the order number, the order content and the order amount. The self-service terminal identification can be a code of the self-service terminal or a character string for uniquely identifying one self-service terminal; the order number is used for uniquely identifying one order; the order content can comprise information such as the name and the quantity of the commodity purchased by the user; the order amount may represent an amount that the user is to pay for the target order. Optionally, the identifier of the self-service terminal may be stored in the self-service terminal, and the order number, the order content, and the order amount may be generated by the self-service terminal according to the operation of placing an order by the user.
In one or more embodiments of the present disclosure, the self-service terminal stores therein encryption algorithm information for encrypting the order information, decryption algorithm information for decrypting the encrypted order payment information, and a payment address of the commodity. Optionally, the encryption algorithm information stored in the self-service terminal for encrypting the order information may include a key of an encryption algorithm, or may include the encryption algorithm itself; the decryption algorithm information used to decrypt the encrypted order payment information may include a key of the decryption algorithm, or may include the decryption algorithm itself. The payment address of the goods may for example comprise the payment addresses corresponding to all goods entered in the self-service terminal, which may be provided in the form of a link.
Fig. 3 is a flowchart of an offline transaction method applied to a user terminal, for example, which may be executed by the user terminal, according to one or more embodiments of the present disclosure, as shown in fig. 3, the method includes:
step S302: the method comprises the steps that order information and a payment address of an encrypted target order are obtained by scanning a first graphic code presented on a self-service terminal;
optionally, since the operation flow of the offline transaction method according to the embodiment of the present disclosure is different from the operation flow of the conventional online transaction, a corresponding prompt message may be presented on the self-service terminal to guide the user to operate. Optionally, the self-service terminal may also present a prompt message while presenting the first graphic code, so as to prompt the user to obtain order information through scanning.
Step S304: sending the order information of the encrypted target order to server side equipment according to the payment address;
optionally, the payment address may be provided in the form of a payment link, and after the user terminal scans the first graphic code, the user terminal may access the payment link and send the encrypted order information of the target order to the server device, that is, the remote server device.
Step S306: and carrying out payment operation according to the information to be paid from the server-side equipment.
Optionally, after receiving the information to be paid from the server device, the user terminal may present a corresponding payment page on the user terminal, and the user may complete a payment operation on the payment page and send a payment message to the server device. The information to be paid may include an amount to be paid by the target order.
In one or more embodiments of the present disclosure, the offline transaction method may further include:
and after payment operation is carried out according to the information to be paid from the server side equipment, a second graphic code sent by the server side equipment is obtained and presented, wherein the second graphic code comprises encrypted information of the server side equipment, the order information and a payment result of the target order.
The offline transaction method of one or more embodiments of the present disclosure uses the user terminal as a medium, transmits encrypted order related data, and solves the offline transaction problem through mutual authentication and identity verification between the self-service terminal and the remote service terminal, and is simple in operation, and can quickly complete the offline transaction without increasing the complexity.
Optionally, after the payment information sent by the user terminal is acquired, the server device may encrypt the payment information and generate a second graphic code, so that the payment information, the information of the server device, and the order information of the target order are presented in the second graphic code in an encrypted form. After the user terminal acquires the second graphic code, the second graphic code can be displayed on a display screen for the terminal, so that the self-service terminal in an offline state can obtain the encrypted order information of the target order, the payment information of the target order and the information of the server-side equipment by scanning the second graphic code, and whether the target order is successfully traded can be determined by authenticating the information.
In one or more embodiments of the present disclosure, the order information may include: the self-service terminal identification, the order number, the order content and the order amount. Since the order information is described in detail above, it is not described herein again.
Fig. 4 is a flowchart of an offline transaction method applied to a server device according to one or more embodiments of the present disclosure, where the method may be performed by a server device, as shown in fig. 4, and the method includes:
step S402: acquiring order information of an encrypted target order from the user terminal;
step S404: decrypting the encrypted order information to obtain decrypted order information;
optionally, the server-side device may store an encryption algorithm and a decryption algorithm stored in the self-service terminal, or may store a key of the encryption algorithm and a key of the decryption algorithm stored in the self-service terminal, so that the server-side device may decrypt the order information of the encrypted target order from the user terminal to obtain decrypted order information.
Step S406: verifying the decrypted order information to obtain a verification result;
optionally, the server device may check the decrypted order information to determine whether the order information is correct, and if the order information is correct, determine that the verification result passes, otherwise, determine that the verification result does not pass. Illustratively, the order information may include an identifier of the self-service terminal, an order number, order content, and an order amount, based on which the server device may check whether the identifier of the self-service terminal is really valid, whether the order number is unique, whether the order content exists, and whether the order amount is correct.
Step S408: if the verification result shows that the verification is passed, sending a message to be paid of the target order to the user terminal;
optionally, after determining that the decrypted order information passes verification, the server device may send a message to be paid to the user terminal, where the message to be paid may include information of an amount to be paid and information of an alternative payment method.
Step S410: acquiring payment information of the user terminal on the target order;
optionally, the obtained payment information of the user terminal on the target order may include the amount paid by the user terminal on the target order, and may also include information such as a payment method selected by the user.
Step S412: encrypting information of server equipment, order information of the target order and the payment information;
optionally, after the user terminal completes payment of the target order, information of the server device, such as identity information of the server device, order information of the target order, and payment information, may be encrypted by using an encryption key stored in the server device, so that a subsequent self-service terminal may decrypt the encrypted information by using a corresponding decryption key.
Step S414: generating a second graphic code by using the encrypted information of the server-side equipment, the encrypted order information of the target order and the encrypted payment information;
optionally, in order to facilitate the self-service terminal in the offline state to obtain the encrypted information of the server device by scanning the graphic code, the encrypted information of the server device, the order information of the target order, and the payment information may be generated into a second graphic code, so that the encrypted information may be presented in the second graphic code.
Step S416: and sending the second graphic code to the user terminal.
Optionally, when the generated second graphic code is sent to the user terminal, a prompt message may be sent to the user terminal at the same time to prompt the user to scan the second graphic code on the self-service terminal, so that the user may complete the whole offline transaction process of the target order by self.
In order to facilitate understanding of the offline transaction method according to one or more embodiments of the present disclosure, the method is described below with reference to fig. 5 in terms of information interaction between the self-service terminal, the server device, and the user terminal.
As shown in fig. 5, the self-service terminal 512 encrypts the order information, and generates a two-dimensional code (which is an example of the first graphic code) based on the encrypted order information and the payment link; the user terminal 514 scans the two-dimensional code to obtain a payment link and encrypted order information, and sends the encrypted order information to a remote server (which is an example of the server device) according to the payment link; the remote server 516 decrypts the encrypted order information, verifies the decrypted order information, returns information to be paid to the user terminal 514 after the verification is passed, encrypts the order payment information, the information of the remote server and the order information and generates a two-dimensional code after the user terminal 514 completes payment, and sends the generated two-dimensional code to the user terminal 514; the user terminal 514 scans the received two-dimensional code from the remote server 516 on the self-service terminal 512; the self-service terminal 512 scans the two-dimensional code displayed by the user terminal 514 to obtain the encrypted order payment information, the information of the remote server and the order information, decrypts the information, verifies the decrypted information and determines whether the order transaction is completed.
In one or more embodiments of the present disclosure, in order to implement an offline transaction, a self-service terminal, a user terminal, and a server device need to be modified accordingly, as shown in fig. 6, the modifications to each end device are as follows:
an encryption module 6122 and a decryption module 6124 are added to the self-service terminal 612, wherein the encryption module 6122 is used for encrypting messages such as an externally transmitted self-service terminal number (which is an example of the self-service terminal identifier), an order number, an order amount and the like; the decryption module is used for decrypting the incoming messages such as the order number, the payment amount (which is an example of the payment information), the server side equipment number (which is an example of the server side equipment identification) and the like. An information verification module 6126 is added in the self-service terminal 612 to verify the authenticity of data sent back by the server, and determine whether the user payment is successful.
An encryption module 6142 and a decryption module 6144 are added to the remote server 614, wherein the decryption module 6144 is used for decrypting messages such as incoming self-service terminal numbers, order amounts and the like, and the encryption module 6142 is used for encrypting messages such as outgoing order numbers, server numbers, payment data and the like.
Fig. 7 is a schematic structural diagram of an offline transaction apparatus, which may be applied to a self-service terminal, according to one or more embodiments of the present disclosure, as shown in fig. 7, the apparatus 710 includes:
a first obtaining module 712, configured to obtain order information of the target order;
the first encryption module 714 is configured to encrypt the order information to obtain encrypted order information;
a first generating module 716, configured to generate and present a first graphic code based on the encrypted order information and the payment address of the target order;
the first scanning module 718 is configured to obtain encrypted order payment information of the target order by scanning the second graphic code;
the first decryption module 720 is configured to decrypt the encrypted order payment information, so as to obtain order information of the target order, information of the server device, and a payment result of the target order;
the authentication module 722 is configured to authenticate the order information of the target order, the information of the server device, and the payment result to obtain an authentication result;
a determining module 724, configured to determine whether the target order is successfully traded according to the authentication result.
Fig. 8 is a schematic structural diagram of an offline transaction apparatus, which is applied to a user terminal according to one or more embodiments of the present disclosure, and as shown in fig. 8, the apparatus 810 includes:
a second scanning module 812, configured to obtain order information and a payment address of the encrypted target order by scanning the first graphic code presented on the self-service terminal;
a first sending module 814, configured to send the order information of the encrypted target order to a server device according to the payment address;
a payment module 816, configured to perform payment operation according to the information to be paid from the server device;
a presenting module 818, configured to obtain and present a second graphic code sent by the server device, where the second graphic code includes encrypted information of the server device, the order information, and a payment result of the target order.
Fig. 9 is a schematic structural diagram of an offline transaction apparatus, which is applied to a server device according to one or more embodiments of the present disclosure, as shown in fig. 9, the apparatus 910 includes:
a second obtaining module 912, configured to obtain order information of the encrypted target order from the user terminal;
the second decryption module 914 is configured to decrypt the encrypted order information to obtain decrypted order information;
the verification module 916 is configured to verify the decrypted order information to obtain a verification result;
a second sending module 918, configured to send a message to be paid for the target order to the user terminal if the verification result indicates that the verification is passed;
a third obtaining module 920, configured to obtain payment information of the user terminal for the target order;
the second encryption module 922 is configured to encrypt information of the server device, order information of the target order, and the payment information;
a second generating module 924, configured to generate a second graphic code from the encrypted information of the server device, the order information of the target order, and the payment information;
a third sending module 926, configured to send the second graphic code to the user terminal.
An electronic device 1000 according to this embodiment of the invention is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. The components of the electronic device 1000 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, and a bus 1030 that couples various system components including the memory unit 1020 and the processing unit 1010.
Wherein the storage unit stores program code that may be executed by the electronic device 1000 to cause the electronic device 1000 to perform the steps according to various exemplary embodiments of the present invention described in the above section "exemplary method" of the present specification.
The storage unit 1020 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)10201 and/or a cache memory unit 10202, and may further include a read-only memory unit (ROM) 10203.
The memory unit 1020 may also include a program/utility 10204 having a set (at least one) of program modules 10205, such program modules 10205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 1000 may also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 1050. Also, the electronic device 1000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1060. As shown, the network adapter 1060 communicates with the other modules of the electronic device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
A program product for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims (11)
1. An off-line transaction method is applied to a self-service terminal, and comprises the following steps:
acquiring order information of a target order;
encrypting the order information to obtain encrypted order information;
generating and presenting a first graphic code based on the encrypted order information and the payment address of the target order;
obtaining encrypted order payment information of the target order by scanning a second graphic code;
decrypting the encrypted order payment information to obtain order information of the target order, information of server-side equipment and a payment result of the target order;
authenticating the order information of the target order, the information of the server-side equipment and the payment result to obtain an authentication result;
and determining whether the target order is successfully traded according to the authentication result.
2. The method of claim 1, further comprising:
and before encrypting the order information to obtain the encrypted order information, performing network detection on the self-service terminal, and if the self-service terminal has no network connection, determining that the self-service terminal performs off-line transaction based on the order information.
3. The method according to claim 1 or 2, wherein the self-service terminal stores therein encryption algorithm information for encrypting the order information, decryption algorithm information for decrypting the encrypted order payment information, and a payment address of the goods.
4. An off-line transaction method, applied to a user terminal, the method comprising:
the method comprises the steps that order information and a payment address of an encrypted target order are obtained by scanning a first graphic code presented on a self-service terminal;
sending the order information of the encrypted target order to server side equipment according to the payment address;
and carrying out payment operation according to the information to be paid from the server-side equipment.
5. The method of claim 4, further comprising:
and after payment operation is carried out according to the information to be paid from the server side equipment, a second graphic code sent by the server side equipment is obtained and presented, wherein the second graphic code comprises encrypted information of the server side equipment, the order information and a payment result of the target order.
6. An off-line transaction method is applied to a server-side device, and the method comprises the following steps:
acquiring order information of an encrypted target order from the user terminal;
decrypting the encrypted order information to obtain decrypted order information;
verifying the decrypted order information to obtain a verification result;
if the verification result shows that the verification is passed, sending a message to be paid of the target order to the user terminal;
acquiring payment information of the user terminal on the target order;
encrypting the information of the server side equipment, the order information of the target order and the payment information;
generating a second graphic code by using the encrypted information of the server-side equipment, the encrypted order information of the target order and the encrypted payment information;
and sending the second graphic code to the user terminal.
7. An off-line transaction apparatus, for use with a self-service terminal, the apparatus comprising:
the first acquisition module is used for acquiring order information of a target order;
the first encryption module is used for encrypting the order information to obtain encrypted order information;
the first generating module is used for generating and presenting a first graphic code based on the encrypted order information and the payment address of the target order;
the first scanning module is used for scanning the second graphic code to obtain the encrypted order payment information of the target order;
the first decryption module is used for decrypting the encrypted order payment information to obtain order information of the target order, information of the server side equipment and a payment result of the target order;
the authentication module is used for authenticating the order information of the target order, the information of the server-side equipment and the payment result to obtain an authentication result;
and the determining module is used for determining whether the target order is successfully traded according to the authentication result.
8. An off-line transaction apparatus applied to a user terminal, the apparatus comprising:
the second scanning module is used for scanning the first graphic code presented on the self-service terminal to obtain the encrypted order information and the payment address of the target order;
the first sending module is used for sending the order information of the encrypted target order to the server-side equipment according to the payment address;
the payment module is used for carrying out payment operation according to the information to be paid from the server-side equipment;
and the presentation module is used for acquiring and presenting a second graphic code sent by the server device, wherein the second graphic code comprises encrypted information of the server device, the order information and a payment result of the target order.
9. An off-line transaction apparatus, applied to a server device, the apparatus comprising:
the second acquisition module is used for acquiring the order information of the encrypted target order from the user terminal;
the second decryption module is used for decrypting the encrypted order information to obtain decrypted order information;
the verification module is used for verifying the decrypted order information to obtain a verification result;
the second sending module is used for sending the message to be paid of the target order to the user terminal if the verification result shows that the verification is passed;
the third acquisition module is used for acquiring payment information of the user terminal on the target order;
the second encryption module is used for encrypting the information of the server side equipment, the order information of the target order and the payment information;
the second generating module is used for generating a second graphic code from the encrypted information of the server-side equipment, the encrypted order information of the target order and the encrypted payment information;
and the third sending module is used for sending the second graphic code to the user terminal.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the offline transaction method of any of claims 1-8 via execution of the executable instructions.
11. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the offline transaction method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111406540.6A CN114119000A (en) | 2021-11-24 | 2021-11-24 | Offline transaction method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111406540.6A CN114119000A (en) | 2021-11-24 | 2021-11-24 | Offline transaction method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114119000A true CN114119000A (en) | 2022-03-01 |
Family
ID=80372102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111406540.6A Pending CN114119000A (en) | 2021-11-24 | 2021-11-24 | Offline transaction method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114119000A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105825378A (en) * | 2016-03-15 | 2016-08-03 | 腾讯科技(深圳)有限公司 | Order payment method, terminal and server |
CN109961293A (en) * | 2019-03-18 | 2019-07-02 | 深圳市雄帝科技股份有限公司 | Business method of payment, system, device, server and storage medium |
CN110599155A (en) * | 2019-08-05 | 2019-12-20 | 威富通科技有限公司 | Payment method and payment system |
CN113065862A (en) * | 2020-01-02 | 2021-07-02 | 虫极科技(北京)有限公司 | Code scanning payment method, device, system, equipment and computer readable storage medium |
-
2021
- 2021-11-24 CN CN202111406540.6A patent/CN114119000A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105825378A (en) * | 2016-03-15 | 2016-08-03 | 腾讯科技(深圳)有限公司 | Order payment method, terminal and server |
CN109961293A (en) * | 2019-03-18 | 2019-07-02 | 深圳市雄帝科技股份有限公司 | Business method of payment, system, device, server and storage medium |
CN110599155A (en) * | 2019-08-05 | 2019-12-20 | 威富通科技有限公司 | Payment method and payment system |
CN113065862A (en) * | 2020-01-02 | 2021-07-02 | 虫极科技(北京)有限公司 | Code scanning payment method, device, system, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10387873B2 (en) | Systems, methods, and computer program products for integrating third party services with a mobile wallet | |
CN112288429B (en) | Transaction method, terminal device, payment system, merchant system and storage medium | |
US10769597B2 (en) | Data processing method and device, and POS transaction system | |
US20100327054A1 (en) | Secure communication of payment information to merchants using a verification token | |
KR20150026233A (en) | Payment system and method t based on digital card | |
CN109670803A (en) | Method, apparatus, medium and the electronic equipment tested before online trading | |
CN110661814A (en) | Bidding file encryption and decryption method, device, equipment and medium | |
CN113014670B (en) | Method, device, medium and program product for pushing order information | |
EP2476088A2 (en) | Secure communication of payment information to merchants using a verification token | |
US10867296B2 (en) | Method, apparatus and system for processing data | |
JP2004201275A (en) | Transaction system | |
KR102251368B1 (en) | Integrated qr payment method and integrated qr payment system | |
US12041179B2 (en) | Digital signature terminal and secure communication method | |
KR101728163B1 (en) | System and Method for Card Payment Service via Mobile Communication Network and Mobile Communication Terminal Having Card Payment Function | |
CN110601836B (en) | Key acquisition method, device, server and medium | |
CN112712354A (en) | Interaction method of digital currency wallet and digital currency server | |
CN114785560B (en) | Information processing method, device, equipment and medium | |
CN114119000A (en) | Offline transaction method and device, storage medium and electronic equipment | |
CN110544087A (en) | Mobile payment method, device, equipment and computer readable storage medium | |
CN114119003A (en) | Method and device for realizing off-line payment service | |
CN116362726A (en) | Transaction order processing system, method, device, equipment and medium | |
CN113645239B (en) | Application login method and device, user terminal and storage medium | |
CN110659900A (en) | Payment method without application, device, medium and electronic equipment | |
CN117611330B (en) | Credit data processing system, method, device, equipment and medium | |
KR102677097B1 (en) | Did-based signature method and system using bbs+ signature |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |