CN109741069B - Transaction data processing method and device, electronic equipment and readable storage medium - Google Patents

Transaction data processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN109741069B
CN109741069B CN201811615600.3A CN201811615600A CN109741069B CN 109741069 B CN109741069 B CN 109741069B CN 201811615600 A CN201811615600 A CN 201811615600A CN 109741069 B CN109741069 B CN 109741069B
Authority
CN
China
Prior art keywords
transaction information
verified
server
unverified
verification
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.)
Active
Application number
CN201811615600.3A
Other languages
Chinese (zh)
Other versions
CN109741069A (en
Inventor
李昕蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811615600.3A priority Critical patent/CN109741069B/en
Publication of CN109741069A publication Critical patent/CN109741069A/en
Application granted granted Critical
Publication of CN109741069B publication Critical patent/CN109741069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure provides a transaction data processing method and device, electronic equipment and a readable storage medium, and relates to the technical field of data processing. The method comprises the following steps: when a commodity purchase request of a user is received, determining whether the transaction information which is not verified exists in the temporary cache, if so, verifying the transaction information which is not verified, and if not, processing the commodity purchase request. According to the technical scheme, when a commodity purchase request of a user is received, the unverified transaction information in the temporary cache can be automatically verified, the influence of the unverified transaction information on subsequent possible transactions is prevented, the success rate of the transactions is improved, and the use experience of the user is improved.

Description

Transaction data processing method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing transaction data, an electronic device, and a readable storage medium.
Background
The In App Purchases (IAP) is an intelligent mobile terminal application program payment mode and is correspondingly realized In various intelligent mobile terminal operating systems.
When a user uses an IAP for payment, the transaction needs to be verified in the transaction process, but due to the fact that the use scene is complex, abnormal conditions such as abnormal exit of an application, network failure and the like can occur, the transaction verification can be failed, subsequent transactions are affected, and the use experience of the user is poor.
Disclosure of Invention
The present disclosure aims to solve at least one of the above technical drawbacks, and provides a method and an apparatus for processing transaction data, an electronic device, and a readable storage medium. The technical scheme is as follows:
in a first aspect, a method for processing transaction information is provided, the method including:
when a commodity purchase request of a user is received, determining whether unverified transaction information exists in the temporary cache or not;
if the transaction information which is not verified exists in the temporary cache, verifying the transaction information which is not verified;
and if the unverified transaction information does not exist in the temporary cache, processing the commodity purchase request.
Optionally, the processing the goods purchase request includes:
sending the commodity purchase request to a first server, and receiving a first order number returned by the first server based on the commodity purchase request;
based on the first order number, sending a corresponding transaction payment request to a second server, and receiving first payment information returned by the second server based on the transaction payment request;
sending the transaction information to be verified to a first server so that the first server verifies the transaction information to be verified, wherein the transaction information to be verified comprises a first order number and first payment information;
obtaining a verification result of the transaction information to be verified returned by the first server;
if the verification result of the transaction information to be verified is successful, sending a verification success notification of the transaction information to be verified to the second server so that the second server deletes the transaction information to be verified corresponding to the verification success notification;
and if the transaction information to be verified exits abnormally in the verification process, receiving unverified transaction information sent by the second server after restarting and caching the unverified transaction information into a temporary cache, wherein the unverified transaction information comprises the transaction information to be verified.
Optionally, verifying the unverified transaction information comprises:
sending the unverified transaction information to a first server so that the first server verifies the unverified transaction information, wherein the unverified transaction information comprises a second order number and second payment information;
and acquiring a verification result of the unverified transaction information returned by the first server.
Optionally, after receiving the first payment information returned by the second server based on the transaction payment request, the method further includes:
and storing the transaction information to be verified as the unverified transaction information into a temporary cache.
Optionally, after obtaining the verification result of the transaction information to be verified returned by the first server, or when obtaining the verification result of the transaction information to be verified returned by the first server and the verification result of the transaction information to be verified is successful, the method further includes:
and deleting the transaction information to be verified in the temporary cache.
Optionally, sending the transaction information to be verified to the first server includes:
and sending the transaction information to be verified to the first server until the sending times reach preset retry times or obtaining a verification result of the transaction information to be verified of the first server.
Optionally, the obtaining of the verification result of the transaction information to be verified, which is returned by the first server, includes:
inquiring a verification result of the transaction information to be verified from the first server in a polling mode;
and/or the presence of a gas in the gas,
before sending the transaction information to be verified to the first server, the method further includes:
determining that the transaction information to be verified does not have a verification state mark, wherein the verification state mark is used for identifying that the transaction information to be verified is in a verification state;
after the transaction information to be verified is sent to the first server, the method further includes:
setting a verification state mark of the transaction information to be verified;
after the verification result of the transaction information to be verified of the first server is obtained, the method further comprises the following steps: and deleting the verification state mark of the transaction information to be verified.
In a second aspect, there is provided a transaction information processing apparatus, the apparatus comprising:
the system comprises an unverified transaction information confirming module, a temporary cache and a verification module, wherein the unverified transaction information confirming module is used for determining whether unverified transaction information exists in the temporary cache or not when a commodity purchasing request of a user is received;
the verification module is used for verifying the unverified transaction information when the unverified transaction information exists in the temporary cache;
and the commodity purchase request processing module is used for processing the commodity purchase request when the unverified transaction information does not exist in the temporary cache.
Optionally, the article purchase request processing module includes:
the order number receiving module is used for sending the commodity purchase request to the first server when the unverified transaction information does not exist in the temporary cache, and receiving a first order number returned by the first server based on the commodity purchase request;
the payment information receiving module is used for sending a corresponding transaction payment request to the second server based on the first order number and receiving first payment information returned by the second server based on the transaction payment request;
the system comprises a to-be-verified transaction information sending module, a first server and a second server, wherein the to-be-verified transaction information sending module is used for sending the to-be-verified transaction information to the first server so that the first server verifies the to-be-verified transaction information, and the to-be-verified transaction information comprises a first order number and first payment information;
the verification result acquisition module is used for acquiring a verification result of the transaction information to be verified, which is returned by the first server;
the verification success notification sending module is used for sending a verification success notification of the transaction information to be verified to the second server when the verification result of the transaction information to be verified is verification success, so that the second server deletes the transaction information to be verified corresponding to the verification success notification;
and the abnormal exit processing module is used for receiving the unverified transaction information sent by the second server after restarting and caching the unverified transaction information into a temporary cache when abnormal exit occurs in the verification process of the transaction information to be verified, wherein the unverified transaction information comprises the transaction information to be verified.
Optionally, when the verification module is used to verify the unverified transaction information, the verification module is specifically configured to:
sending the unverified transaction information to a first server so that the first server verifies the unverified transaction information, wherein the unverified transaction information comprises a second order number and second payment information;
and acquiring a verification result of the unverified transaction information returned by the first server.
Optionally, the apparatus further comprises:
and the unverified transaction information caching module is used for storing the transaction information to be verified as unverified transaction information into the temporary cache after receiving the first payment information returned by the second server based on the transaction payment request.
Optionally, the apparatus further comprises:
and the to-be-verified transaction information deleting module is used for deleting the to-be-verified transaction information in the temporary cache after the verification result of the to-be-verified transaction information returned by the first server is obtained, or when the verification result of the to-be-verified transaction information returned by the first server is obtained and the verification result of the to-be-verified transaction information is successful.
Optionally, when the to-be-verified transaction information sending module sends the to-be-verified transaction information to the first server, the to-be-verified transaction information sending module is specifically configured to:
sending the transaction information to be verified to a first server until the sending times reach preset retry times or obtaining a verification result of the transaction information to be verified of the first server;
and/or the presence of a gas in the gas,
the verification result obtaining module is specifically configured to:
and inquiring the verification result of the transaction information to be verified from the first server in a polling mode.
Optionally, the apparatus further includes a verification flag processing module, where the verification status flag processing module is configured to:
before the transaction information to be verified is sent to the first server, determining that the transaction information to be verified does not have a verification state mark, wherein the verification state mark is used for identifying that the transaction information to be verified is in a verification state;
after the transaction information to be verified is sent to the first server, a verification state mark of the transaction information to be verified is set;
and deleting the verification state mark of the transaction information to be verified after the verification result of the transaction information to be verified of the first server is obtained.
In a third aspect, an electronic device is provided, which includes:
a processor and a memory;
a memory for storing operating instructions;
the processor is used for executing the processing method of the transaction information as shown in any implementation mode of the first aspect of the disclosure by calling the operation instruction.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method for processing transaction information as shown in any implementation manner of the first aspect of the present disclosure.
The technical scheme provided by the disclosure has the following beneficial effects:
according to the technical scheme, when a commodity purchase request of a user is received, the unverified transaction information in the temporary cache can be automatically verified, the influence of the unverified transaction information on subsequent possible transactions is prevented, the success rate of the transactions is improved, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments of the present disclosure will be briefly described below.
Fig. 1 is a schematic flow chart illustrating a transaction data processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram illustrating an alternative embodiment of an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a device for processing transaction data according to yet another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to yet another embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of illustrating the present disclosure and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
In one embodiment, a method for processing transaction data is provided, as shown in fig. 1, the method includes:
step S101: when a commodity purchase request of a user is received, determining whether unverified transaction information exists in the temporary cache or not;
step S102: and if the transaction information which is not verified exists in the temporary cache, verifying the transaction information which is not verified.
In this embodiment, when the user uses the IAP for payment, the usage scenario is complex, and abnormal situations, such as abnormal exit of the application, network failure, etc., may occur, which may result in failure of transaction verification. The transaction information which is not verified can be transaction information which causes transaction verification failure when abnormal conditions occur in the transaction process, and the transaction information which is not verified is stored in a temporary cache of the terminal equipment, so that the transaction information which is not verified is convenient to read, and a foundation can be provided for verifying the transaction information which is not verified again in time.
In this embodiment, when the client receives a commodity purchase request of the user, it indicates that the user is likely to need to purchase subsequently, and at this time, if the unverified transaction information exists in the temporary cache, the purchase may be affected, and in order to avoid that the existing unverified transaction information affects subsequent transactions, the unverified transaction information may be preferentially verified.
Step S103: and if the unverified transaction information does not exist in the temporary cache, processing the commodity purchase request.
In this embodiment, when it is determined that the unverified transaction information does not exist in the temporary cache, no operation other than processing the received commodity purchase request of the user may be performed.
The transaction data processing method provided by the embodiment of the disclosure can automatically verify the unverified transaction information in the temporary cache when a commodity purchase request of a user is received, so that the unverified transaction information is prevented from influencing subsequent possible transactions, the transaction success rate is improved, and the use experience of the user is improved.
In an optional embodiment of the present disclosure, the processing of the commodity purchase request may include:
sending the commodity purchase request to a first server, and receiving a first order number returned by the first server based on the commodity purchase request;
based on the first order number, sending a corresponding transaction payment request to a second server, and receiving first payment information returned by the second server based on the transaction payment request;
sending the transaction information to be verified to a first server so that the first server verifies the transaction information to be verified, wherein the transaction information to be verified comprises a first order number and first payment information;
and acquiring a verification result of the transaction information to be verified returned by the first server.
In this embodiment, the first server may be a server corresponding to the client and providing a service to the user, and specifically, the service provided by the first server to the client may include providing the commodity information, processing a commodity purchase request, and providing verification of the transaction information to be verified. The first server can verify the transaction information to be verified based on the first order number and the first payment information.
The second server may be a server providing payment service, such as an apple server, in which commodity information such as a commodity name, a consumption type, a commodity price, and a commodity identifier is pre-stored, and can provide support for a client payment order and generate corresponding payment information after payment is completed.
The specific process of correspondingly processing the commodity purchase request may be as follows:
the client sends the purchase request to the first server, the first server generates a corresponding order based on the purchase request, and sends a first order number of the order to the client.
The client sends the transaction payment request to the second server, the second server returns the first payment information to the client after the client completes payment, and the second server also stores the first order number correspondingly.
And the client sends the transaction information to be verified to the first server for verifying the transaction information to be verified.
Specifically, a first order number is stored in the first server, an order corresponding to the transaction information to be verified is determined according to the first order number, and the first payment information is checked with the order, so that the verification of the transaction information to be verified is realized.
And if the transaction information to be verified is successfully verified, finishing corresponding processing of the received commodity purchase request.
And if the verification result of the transaction information to be verified is successful, sending a verification success notification of the transaction information to be verified to the second server, so that the second server deletes the transaction information to be verified corresponding to the verification success notification.
In this embodiment, after the verification of the transaction information to be verified is successful, a verification success notification is sent to the second server, and after the second server receives the verification success notification of the transaction information to be verified, the corresponding transaction information to be verified is not sent to the client after the application is restarted.
And if the transaction information to be verified exits abnormally in the verification process, receiving unverified transaction information sent by the second server after restarting and caching the unverified transaction information into a temporary cache, wherein the unverified transaction information comprises the transaction information to be verified.
In this embodiment, the verification process of the transaction information to be verified refers to a process between the client sending the transaction information to be verified to the first server and the client obtaining the verification result of the transaction information to be verified by the first server. If abnormal exit occurs in the verification process, such as abnormal exit of an application program, system restart and the like, the current transaction information to be verified in the verification process is lost, if the transaction information to be verified is stored in the temporary cache, the transaction information to be verified in the temporary cache is also lost, the transaction information to be verified sent by the second server can be received again after the application is restarted, and the client stores the transaction information to be verified in the temporary cache after receiving the transaction information to be verified so as to verify again when receiving a commodity purchase request of a user. The unverified transaction information sent by the second server at this time may include information to be verified which is not verified before, in addition to the current information to be verified.
In this embodiment, when the verification process exits abnormally, the client may receive the unverified transaction information sent by the second server again, so that the success rate of the transaction can be improved, and the use experience of the user can be improved.
In this embodiment, the terminal device may store therein commodity information provided by the first server and commodity information provided by the second server, so that the commodity purchase request may be generated based on the commodity information provided by the first server, and the payment request may be generated based on the commodity information provided by the second server. For the same commodity, the commodity information of the commodity provided by the first server and the second server is different, so that the commodity information can be acquired from the first server and the second server by the client respectively.
In this embodiment, the client may obtain and cache the commodity information provided by the second server from the second server in advance, so as to provide a basis for sending the transaction payment request to the server, but in practical applications, there may be a case that the commodity information provided by the second server corresponding to the purchase request does not exist in the temporary cache, which affects normal generation of the transaction payment request, and the client may determine whether the commodity information provided by the second server corresponding to the purchase request is cached when the user sends the purchase request; and if not, obtaining and caching from the second server.
In an optional embodiment of the present disclosure, the verifying the unverified transaction information may include:
sending the unverified transaction information to a first server so that the first server verifies the unverified transaction information, wherein the unverified transaction information comprises a second order number and second payment information;
and acquiring a verification result of the unverified transaction information returned by the first server.
In this embodiment, the first server may refer to the verification method for the transaction information to be verified, and verify the unverified transaction information based on the second order number and the second payment information, which is not described herein again.
In practical application, if multiple pieces of unverified transaction information may exist at the same time, the multiple pieces of unverified transaction information can be verified in sequence, and in order to ensure processing efficiency, each piece of unverified transaction information can be verified once each time a client receives a commodity purchase request, so that subsequent verification or transaction can be timely performed even if verification fails.
After the verification result of the unverified transaction information is obtained, the processing can be performed according to the processing mode of the verification result of the transaction information to be verified.
In an optional embodiment of the disclosure, after receiving the first payment information returned by the second server based on the transaction payment request, the method further includes:
and storing the transaction information to be verified as the unverified transaction information into a temporary cache.
In this embodiment, after receiving the transaction information to be verified, the transaction information to be verified may be stored in the temporary cache as the unverified transaction information, so that the unverified transaction information stored in the temporary cache may be verified again after the verification of the transaction information to be verified is not completed or the verification fails.
In an optional embodiment of the present disclosure, after obtaining the verification result of the transaction information to be verified, which is returned by the first server, or when obtaining the verification result of the transaction information to be verified, which is returned by the first server, and the verification result of the transaction information to be verified is successful, the method may further include:
and deleting the transaction information to be verified in the temporary cache.
In this embodiment, when the verification result of the unverified transaction information returned by the first server is received, it may be considered that the verification of the transaction information to be verified has been completed, and the transaction information to be verified in the temporary cache may be deleted.
Specifically, after the verification result of the transaction information to be verified is successful, the second unverified transaction information in the temporary cache can be deleted, so that the space of the temporary cache is not occupied; after the verification result of the transaction information to be verified is verification failure, the corresponding unverified transaction information of the transaction information to be verified in the temporary cache can be reserved so as to verify the unverified transaction information again.
In practical application, after the verification of the transaction information to be verified is completed, only the transaction information to be verified, the verification result of which is verification failure, is stored in the temporary cache, and when a commodity purchase request of a user is received, the verification is performed again.
In an optional embodiment of the present disclosure, the sending the transaction information to be verified to the first server may include:
sending the transaction information to be verified to a first server until the sending times reach preset retry times or obtaining a verification result of the transaction information to be verified of the first server;
and/or the presence of a gas in the gas,
the obtaining of the verification result of the transaction information to be verified returned by the first server may include:
and inquiring the verification result of the transaction information to be verified from the first server in a polling mode.
In practical application, the transaction information to be verified may fail to be sent to the first server due to network failure and the like, for the problem, the transaction information to be verified may be sent to the first server multiple times according to a preset time interval, that is, retransmission may be performed until a verification result of the transaction information to be verified of the first server is obtained, which indicates that the sending of the transaction information to be unverified is successful, or retry may be performed until the retry number reaches a preset retry number, at this time, it may be considered that the transaction information to be verified cannot be sent at present, retry continuation may be abandoned, and a specific value of the preset retry number may be set according to actual needs.
In this embodiment, when querying the first server for the verification result of the transaction information to be verified, a polling manner may be adopted, where a polling time interval is kept increasing when the polling frequency is not greater than a preset value, and is kept unchanged when the polling frequency is not less than the preset value, so as to ensure polling efficiency, for example, the interval time is 1s, 2s, 3s, 4s, 5s, and 5 s.
In an optional embodiment of the present disclosure, before sending the transaction information to be verified to the first server, the method may further include:
determining that the transaction information to be verified does not have a verification state mark, wherein the verification state mark is used for identifying that the transaction information to be verified is in a verification state;
after the transaction information to be verified is sent to the first server, the method may further include:
setting a verification state mark of the transaction information to be verified;
after the verification result of the transaction information to be verified by the first server is obtained, the method may further include:
and deleting the verification state mark of the transaction information to be verified.
In this embodiment, if the user is in the preset condition again in the verification process of the information to be verified, repeated verification of the information to be verified may be caused, and to avoid the repeated verification, the transaction information to be verified entering the verification process may be marked as a verification state, before the verification of the transaction information to be verified, it is determined whether the transaction information to be verified is in the verification state, if not, the verification is performed, and if the transaction information to be verified is in the verification state, the processing may be performed after the current verification process is completed. And deleting the verification state mark of the transaction information to be verified after the obtained verification result of the transaction information to be verified.
Fig. 2 shows a schematic flow diagram of an optional specific implementation of an embodiment of the present disclosure, which may include:
when the client receives a commodity purchase request of a user, determining whether the commodity information is cached, and if the commodity information is not cached, requesting the commodity information from the second server and caching; if the commodity information is cached, determining whether the temporary cache has unverified transaction information, if the temporary cache does not have the unverified transaction information, sending a commodity purchase request to the first server, receiving a first order number returned by the first server, and sending a corresponding transaction payment request to the second server based on the first order number; receiving first payment information returned by the second server based on the transaction payment request; storing the transaction information to be verified (i.e. the transaction information to be verified corresponding to the first order number and the first payment information) as unverified transaction information into a temporary cache, wherein the transaction information to be verified is unverified transaction information, performing verification state marking on the unverified transaction information, sending the unverified transaction information to a first server, inquiring a verification result of the unverified transaction information from the first server, after the verification result is inquired, namely after the verification result of the unverified transaction information is obtained by the first server, indicating that the verification of the unverified transaction information is completed, and deleting the verification state marking of the unverified transaction information, wherein at the moment, if the verification result is successful, the unverified transaction information verification success notification can be sent to a second server, and the unverified transaction information which is verified successfully is deleted from the temporary cache, ending the current flow; if the verification result is verification failure, a prompt of the verification failure is sent to the user; if the client is abnormally quitted in the verification process, the client receives the unverified transaction information sent by the second server after being restarted again, and stores the received unverified transaction information into the temporary cache.
When a client receives a commodity purchase request of a user, if unverified transaction information exists in a temporary cache, the client can be prompted to have the unverified transaction information, whether the unverified transaction information has a verification state mark or not is determined, if the unverified transaction information has the verification state mark, the unverified transaction information is in a verification process, namely the terminal device is executing the verification process of the unverified transaction information, and at the moment, the current process can be ended, namely other operations except the verification process of the unverified transaction information can not be executed; and if the unverified transaction information does not have the verification state mark, reading the unverified transaction information from the temporary cache, and sending the unverified transaction information to the first server so that the first server verifies the unverified transaction information, wherein the verification mode of the unverified transaction information is basically the same as the operation of verifying the transaction information to be verified.
One embodiment of the present disclosure provides a transaction information processing apparatus, as shown in fig. 3, the transaction information processing apparatus 20 may include:
an unverified transaction information confirmation module 201, configured to determine whether unverified transaction information exists in the temporary cache when a commodity purchase request of a user is received;
the verification module 202 is configured to verify the unverified transaction information when the unverified transaction information exists in the temporary cache;
and the commodity purchase request processing module 203 is used for processing the commodity purchase request when the unverified transaction information does not exist in the temporary cache.
The transaction data processing device provided by the embodiment of the disclosure can automatically verify the unverified transaction information in the temporary cache when receiving a commodity purchase request of a user, so as to prevent the unverified transaction information from influencing subsequent possible transactions, improve the success rate of the transactions, and improve the use experience of the user.
Alternatively, the article purchase request processing module 203 includes:
the order number receiving module is used for sending the commodity purchase request to the first server when the unverified transaction information does not exist in the temporary cache, and receiving a first order number returned by the first server based on the commodity purchase request;
the payment information receiving module is used for sending a corresponding transaction payment request to the second server based on the first order number and receiving first payment information returned by the second server based on the transaction payment request;
the system comprises a to-be-verified transaction information sending module, a first server and a second server, wherein the to-be-verified transaction information sending module is used for sending the to-be-verified transaction information to the first server so that the first server verifies the to-be-verified transaction information, and the to-be-verified transaction information comprises a first order number and first payment information;
the verification result acquisition module is used for acquiring a verification result of the transaction information to be verified, which is returned by the first server;
the verification success notification sending module is used for sending a verification success notification of the transaction information to be verified to the second server when the verification result of the transaction information to be verified is verification success, so that the second server deletes the transaction information to be verified corresponding to the verification success notification;
and the abnormal exit processing module is used for receiving the unverified transaction information sent by the second server after restarting and caching the unverified transaction information into a temporary cache when abnormal exit occurs in the verification process of the transaction information to be verified, wherein the unverified transaction information comprises the transaction information to be verified.
Optionally, when the verification module is used to verify the unverified transaction information, the verification module is specifically configured to:
sending the unverified transaction information to a first server so that the first server verifies the unverified transaction information, wherein the unverified transaction information comprises a second order number and second payment information;
and acquiring a verification result of the unverified transaction information returned by the first server.
Optionally, the apparatus further comprises:
and the unverified transaction information caching module is used for storing the transaction information to be verified as unverified transaction information into the temporary cache after receiving the first payment information returned by the second server based on the transaction payment request.
Optionally, the apparatus further comprises:
and the to-be-verified transaction information deleting module is used for deleting the to-be-verified transaction information in the temporary cache after the verification result of the to-be-verified transaction information returned by the first server is obtained, or when the verification result of the to-be-verified transaction information returned by the first server is obtained and the verification result of the to-be-verified transaction information is successful.
Optionally, when the to-be-verified transaction information sending module sends the to-be-verified transaction information to the first server, the to-be-verified transaction information sending module is specifically configured to:
sending the transaction information to be verified to a first server until the sending times reach preset retry times or obtaining a verification result of the transaction information to be verified of the first server;
and/or the presence of a gas in the gas,
the verification result obtaining module is specifically configured to:
and inquiring the verification result of the transaction information to be verified from the first server in a polling mode.
Optionally, the apparatus further includes a verification flag processing module, where the verification status flag processing module is configured to:
before the transaction information to be verified is sent to the first server, determining that the transaction information to be verified does not have a verification state mark, wherein the verification state mark is used for identifying that the transaction information to be verified is in a verification state;
after the transaction information to be verified is sent to the first server, a verification state mark of the transaction information to be verified is set;
and deleting the verification state mark of the transaction information to be verified after the verification result of the transaction information to be verified of the first server is obtained.
The transaction information processing apparatus of this embodiment can execute the transaction information processing method shown in any of the above embodiments of the present disclosure, and the implementation principles thereof are similar and will not be described herein again.
The disclosed embodiment also provides an electronic device, which comprises a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the transaction information processing method by calling the operation instruction.
The disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the above-mentioned transaction information processing method.
Referring now to fig. 4, a schematic diagram of an electronic device 800 (e.g., a terminal device for performing the transaction information processing method shown in fig. 1) suitable for implementing an embodiment of the disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer 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 of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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. In the present disclosure, a computer 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. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either 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 computer readable signal medium may also be any computer readable medium that is not a computer 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, 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 computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (9)

1. A transaction information processing method is executed by a client and applied to a scene of internal payment of an application program, and comprises the following steps:
when a commodity purchase request of a user is received, determining whether unverified transaction information exists in the temporary cache or not;
if the transaction information which is not verified exists in the temporary cache, verifying the transaction information which is not verified;
if the transaction information which is not verified does not exist in the temporary cache, processing the commodity purchase request;
the verifying the unverified transaction information includes:
sending the unverified transaction information to a first server so that the first server verifies the unverified transaction information, wherein the unverified transaction information comprises a second order number and second payment information, and the first server is a server corresponding to the client;
and acquiring a verification result of the unverified transaction information returned by the first server.
2. The method for processing transaction information according to claim 1, wherein processing the merchandise purchase request includes:
sending the commodity purchase request to the first server, and receiving a first order number returned by the first server based on the commodity purchase request;
based on the first order number, sending a corresponding transaction payment request to a second server, and receiving first payment information returned by the second server based on the transaction payment request;
sending transaction information to be verified to the first server so that the first server verifies the transaction information to be verified, wherein the transaction information to be verified comprises the first order number and the first payment information;
obtaining a verification result of the transaction information to be verified returned by the first server;
if the verification result of the transaction information to be verified is successful, sending a verification success notification of the transaction information to be verified to the second server, so that the second server deletes the transaction information to be verified corresponding to the verification success notification;
and if the transaction information to be verified exits abnormally in the verification process, receiving unverified transaction information sent by the second server after restarting and caching the unverified transaction information into a temporary cache, wherein the unverified transaction information comprises the transaction information to be verified.
3. The method for processing transaction information according to claim 2, further comprising, after receiving the first payment information returned by the second server based on the transaction payment request:
and storing the transaction information to be verified as unverified transaction information into a temporary cache.
4. The method for processing the transaction information according to claim 3, wherein after obtaining the verification result of the transaction information to be verified returned by the first server, or when obtaining the verification result of the transaction information to be verified returned by the first server and the verification result of the transaction information to be verified is successful, the method further comprises:
and deleting the transaction information to be verified in the temporary cache.
5. The transaction information processing method according to any one of claims 2 to 4, wherein the sending the transaction information to be verified to the first server includes:
sending the transaction information to be verified to a first server until the sending times reach preset retry times or obtaining a verification result of the transaction information to be verified of the first server;
and/or the presence of a gas in the gas,
the obtaining of the verification result of the transaction information to be verified returned by the first server includes:
and inquiring the verification result of the transaction information to be verified from the first server in a polling mode.
6. The method for processing the transaction information according to any one of claims 2 to 4, wherein before the sending the transaction information to be verified to the first server, the method further comprises:
determining that the transaction information to be verified does not have a verification state mark, wherein the verification state mark is used for identifying that the transaction information to be verified is in a verification state;
after the to-be-verified transaction information is sent to the first server, the method further comprises the following steps:
setting a verification state mark of the transaction information to be verified;
after the verification result of the first server on the transaction information to be verified is obtained, the method further comprises the following steps:
and deleting the verification state mark of the transaction information to be verified.
7. An apparatus for processing transaction information, the apparatus being applied in an application internal payment scenario of a client, the apparatus comprising:
the system comprises an unverified transaction information confirming module, a temporary cache and a verification module, wherein the unverified transaction information confirming module is used for determining whether unverified transaction information exists in the temporary cache or not when a commodity purchasing request of a user is received;
the verification module is used for verifying the unverified transaction information when the unverified transaction information exists in the temporary cache;
the commodity purchase request processing module is used for processing the commodity purchase request when the unverified transaction information does not exist in the temporary cache;
the verification module is specifically configured to, when being used for verifying the unverified transaction information:
sending the unverified transaction information to a first server so that the first server verifies the unverified transaction information, wherein the unverified transaction information comprises a second order number and second payment information; and acquiring a verification result of the unverified transaction information returned by a first server, wherein the first server is a server corresponding to the client.
8. An electronic device, characterized in that the electronic device comprises:
a processor and a memory;
the memory is used for storing operation instructions;
the processor is used for executing the transaction information processing method of any one of the claims 1 to 6 by calling the operation instruction.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of processing transaction information according to any one of claims 1 to 6.
CN201811615600.3A 2018-12-27 2018-12-27 Transaction data processing method and device, electronic equipment and readable storage medium Active CN109741069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811615600.3A CN109741069B (en) 2018-12-27 2018-12-27 Transaction data processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811615600.3A CN109741069B (en) 2018-12-27 2018-12-27 Transaction data processing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109741069A CN109741069A (en) 2019-05-10
CN109741069B true CN109741069B (en) 2020-12-18

Family

ID=66361484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811615600.3A Active CN109741069B (en) 2018-12-27 2018-12-27 Transaction data processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109741069B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053028A (en) * 2020-07-24 2020-12-08 长沙市到家悠享家政服务有限公司 Order allocation method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325038A (en) * 2012-03-19 2013-09-25 董建飞 System for realizing electronic payment through mobile terminals according to shopping lists provided by sale terminals and method thereof
CN102708485B (en) * 2012-05-17 2015-07-22 东信和平科技股份有限公司 Things protection method of mobile phone payment card transactions and mobile phone payment card
GB2533333A (en) * 2014-12-16 2016-06-22 Visa Europe Ltd Transaction authorisation
CN105933266B (en) * 2015-08-20 2019-07-12 中国银联股份有限公司 A kind of verification method and server
CN107330683A (en) * 2017-06-29 2017-11-07 广东舜联通信科技有限公司 Bank based on UTK cards withholds method and system

Also Published As

Publication number Publication date
CN109741069A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN108920257B (en) Transaction processing method, device, equipment and storage medium
CN112184196B (en) Data processing method, device, server and storage medium
US20220094758A1 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN111432001A (en) Method, apparatus, electronic device, and computer-readable medium for jumping scenes
CN110618768B (en) Information presentation method and device
CN110620806B (en) Information generation method and device
CN109902726B (en) Resume information processing method and device
CN109741069B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN109685508B (en) Transaction data processing method and device, electronic equipment and readable storage medium
CN110619101B (en) Method and apparatus for processing information
CN112230969A (en) Method and equipment for formatting user space storage area in firmware upgrading process
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN111798251A (en) Verification method and device of house source data and electronic equipment
CN111626802A (en) Method and apparatus for processing information
CN113079085B (en) Business service interaction method, business service interaction device, business service interaction equipment and storage medium
CN110083283B (en) Method, device and system for managing information
CN109933556B (en) Method and apparatus for processing information
CN114116247A (en) Redis-based message processing method, device, system, server and medium
CN111897620A (en) Interaction method and device and electronic equipment
CN112256654A (en) Document sharing method and device
CN113807854B (en) Method, apparatus, system, electronic device and medium for electronic payment
CN111652694B (en) Order processing method and device and electronic equipment
CN109005084B (en) Method, electronic device, and computer-readable medium for verifying network connection
CN110781523B (en) Method and apparatus for processing information

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
GR01 Patent grant
GR01 Patent grant