CN113112327B - Commodity payment transaction data processing method and device - Google Patents

Commodity payment transaction data processing method and device Download PDF

Info

Publication number
CN113112327B
CN113112327B CN202110371406.0A CN202110371406A CN113112327B CN 113112327 B CN113112327 B CN 113112327B CN 202110371406 A CN202110371406 A CN 202110371406A CN 113112327 B CN113112327 B CN 113112327B
Authority
CN
China
Prior art keywords
data
order
commodity
preferential
price
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
CN202110371406.0A
Other languages
Chinese (zh)
Other versions
CN113112327A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110371406.0A priority Critical patent/CN113112327B/en
Publication of CN113112327A publication Critical patent/CN113112327A/en
Application granted granted Critical
Publication of CN113112327B publication Critical patent/CN113112327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a commodity payment transaction data processing method and a device, which relate to the field of finance, wherein the method comprises the following steps: acquiring transaction data of commodities in an order to be paid; the transaction data includes: price data of goods in the order and preferential data of the current order; transmitting the preferential data of the current order to a distributed message queue to acquire preferential detail data of commodities in the order; and determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order. According to the commodity payment transaction data processing method, based on the distributed message queue, decoupling of discount deduction and order cost amortization is achieved, the response efficiency of payment transaction is guaranteed, discount amortization according to commodity dimensions is achieved, and a new idea is provided for a large-scale electronic commerce platform to improve efficiency in a payment scene.

Description

Commodity payment transaction data processing method and device
Technical Field
The invention relates to a data processing technology, in particular to a commodity payment transaction data processing method and device.
Background
In the age of rapid development of internet finance, the points and coupons are taken as important means of guest-making, guest-obtaining and guest-gluing, and are widely used in a multi-commodity combined payment scene of a large-scale electronic commerce platform, and the time consumption of payment transaction is necessarily increased along with the increase of payment modes. With the explosive growth of traffic in the e-commerce field, the need for shortening transaction response time is becoming urgent. The preferential distribution of points for one order involves multiple goods, which can result in a slow payment rate and thus form a system bottleneck.
Under the traditional payment scene, when a plurality of commodities are contained in an order, particularly commodities of a plurality of different merchants, preferential amortization is carried out on the commodities one by one according to a certain amortization algorithm during payment, and after the actual payment amount of each merchant is calculated, the amount to be paid can be summarized and submitted. Although the method can be used for spreading the fees of the orders in real time, the method has the defects of lower efficiency, long time consumption of payment transaction and the like, and the system response time in high concurrency is tired.
Disclosure of Invention
In order to overcome at least one problem in the payment scene in the prior art, the invention provides a commodity payment transaction data processing method, which comprises the following steps:
acquiring transaction data of commodities in an order to be paid; wherein the transaction data comprises: price data of goods in the order and preferential data of the current order;
transmitting the preferential data of the current order to a distributed message queue to acquire preferential detail data of the commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order;
and determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order.
In the embodiment of the invention, the preferential data comprises: coupon data used by the current order and/or loyalty deduction amount data of the current order.
In the embodiment of the invention, the price data of the commodity in the order comprises: commodity price data and commodity total price data.
In the embodiment of the present invention, the sending the offer data of the current order to the distributed message queue to obtain the offer detail data of the goods in the order determined according to the price data of the goods in the order and the offer data of the current order includes:
transmitting the preferential data of the current order to a distributed message queue;
and the distributed message queue determines preferential detail data of the commodity in the order according to the commodity unit price data, the commodity total price data and the order preferential data.
In the embodiment of the present invention, the determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order includes:
and determining the payment amount of the order according to the commodity total price data and the preferential data of the current order.
Meanwhile, the invention also provides a commodity payment transaction data processing device, which comprises:
the transaction data acquisition module is used for acquiring transaction data of commodities in an order to be paid; wherein the transaction data comprises: price data of goods in the order and preferential data of the current order;
the detail data acquisition module is used for sending the preferential data of the current order to a distributed message queue to acquire the preferential detail data of the commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order;
and the payment amount determining module is used for determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order.
In the embodiment of the invention, the price data of the commodity in the order comprises: commodity price data and commodity total price data.
In an embodiment of the present invention, the detail data acquisition module includes:
the sending unit is used for sending the preferential data of the current order to the distributed message queue;
and the receiving unit is used for receiving the distributed message queue and determining the preferential detail data of the commodity in the order according to the commodity unit price data, the commodity total price data and the order preferential data.
The invention also provides a computer device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the method.
Meanwhile, the invention also provides a computer readable storage medium which stores a computer program for executing the method.
According to the commodity payment transaction data processing method, the preferential data of the order are sent to a distributed message queue to obtain preferential detail data of commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order; the order payment amount is determined according to the price data of the commodity in the order and the preferential data of the current order, and based on the distributed message queue, decoupling of discount deduction and order cost amortization is achieved, so that the response efficiency of payment transaction is guaranteed, preferential amortization according to commodity dimension is achieved, and a new idea is provided for the large-scale electronic commerce platform to improve efficiency in a payment scene.
The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular description of preferred embodiments, as illustrated in the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for processing commodity payment transaction data provided by the present invention;
FIG. 2 is a flow chart of an embodiment of the present invention;
FIG. 3 is a flow chart of an embodiment of the present invention;
FIG. 4 is a flow chart of an embodiment of the present invention;
FIG. 5 is a block diagram of a commodity payment transaction data processing apparatus provided by the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In a payment scenario in the prior art, for example, a payment scenario using point payment and coupon payment, when a plurality of commodities, especially a plurality of commodities of different merchants, are contained in one order, the commodities are required to be subjected to preferential amortization one by one or coupons according to a certain amortization algorithm during payment, and after the actual payment amount of each merchant is calculated, the amount to be paid can be summarized and submitted. Although the method can be used for spreading the fees of the orders in real time, the method has the defects of lower efficiency, long time consumption of payment transaction and the like, and the system response time in high concurrency is tired.
Aiming at the problems in the prior art, the invention introduces the technology of a distributed message queue, completes order payment through real-time online, and then performs integral preferential amortization of the order according to an asynchronous message queue. The scheme greatly improves the payment efficiency. As shown in fig. 1, the commodity payment transaction data processing method provided by the invention includes:
step S101, acquiring transaction data of commodities in an order to be paid; wherein the transaction data comprises: price data of goods in the order and preferential data of the current order;
step S102, the preferential data of the current order is sent to a distributed message queue to obtain preferential detail data of the commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order;
and step S103, determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order.
As shown in fig. 2, which is a prior art payment process, for a plurality of items in a shopping cart, the total order amount is calculated according to the unit price and the quantity. If the electronic coupon deduction is involved, the electronic coupon discount amount used by each commodity is calculated according to the ratio of the commodity price in the total order amount, so that the actual payment amount of each commodity is obtained, the actual payment amounts of all commodities are accumulated finally, the actual payment amount of the order can be calculated, and the payment of the order is completed according to the calculated actual payment amount. Because of the problem of incomplete division of commodity price and total order amount ratio, preferential scores are required to be integrated according to a certain score algorithm, and the gradual scores lead to low calculation efficiency.
The invention realizes decoupling of customer discount deduction or point expense amortization based on the asynchronous distributed message queue, not only ensures the response efficiency of payment transaction, but also realizes the discount amortization of points according to commodity dimension, and provides a new thought for improving the efficiency of a large-scale electronic commerce platform in a point payment scene.
In the embodiment of the invention, the preferential data comprises: coupon data used by the current order and/or loyalty deduction amount data of the current order.
Fig. 3 shows a payment process after optimization based on a multi-commodity integral payment process according to an embodiment of the present invention.
The payment flow based on multiple commodity points in this embodiment is described as follows:
1. the two actions of paying the customer link and the score preferential stall of the commodity in the order are decoupled, and the decoupling is realized through a distributed kafka message queue. The distributed message queue in this embodiment includes: distributed kafka message queues.
2. The customer pays attention to the total amount of the order and the amount of the credit deduction, and the two online real-time calculation and order payment are completed.
3. And pushing the information such as unit price, quantity, deductible integral denomination and the like of each commodity to a distributed message queue in an asynchronous mode.
4. And asynchronously reading data in the distributed message queue, and performing preferential amortization of integration on each commodity. The preferential amortization algorithm of the points is shown in figure 3.
5. The result of the score is registered in an internal score list, and the score of the score in the line is completed accordingly.
FIG. 3 illustrates an example of a preferential shakeout algorithm for points in an embodiment of the present invention, where points are generally equally shakeout in terms of their proportion to the total order amount during use. However, considering that some proportions cannot be divided completely, the segments need to be carried out according to a certain algorithm.
Ignoring the situation that the stall of individual commodity is not strictly balanced, the stall efficiency can be improved. For example, 3 commodity prices are 1 yuan (100 points) respectively, and 100 points are used to cover 1 yuan (point conversion ratio: 1 yuan=100 points, i.e., 1 point=1 point). According to the scheme of balanced split, each commodity can be split into 33.33333 scores, and since 'one score' is the minimum unit, rounding processing is needed for the remainder after the division, and the score number of each commodity is calculated. Because the rounding process exists in the front, in order to correct the deviation of the amortization, the last commodity cannot be continuously rounded, but the point exchange number of the last commodity can be obtained by subtracting all the deducted points in the front through the total exchange point number. Therefore, commodity A and commodity B are rounded into the rule of scores, each score is 33 scores, and the preferential deduction amount is 33 scores according to the conversion ratio of 1 score=1 score. The amortization of commodity C has a score of 100-33-33, which is 34 scores, and the preferential deduction amount is 34 scores according to the conversion ratio of 1 score=1 score. The actual payment amount of the commodity A and the commodity B is 67 minutes, the actual payment amount of the commodity C is 66 minutes, and the total of three commodities pays 67+67+66=200 minutes (2 yuan). The total order is 3 yuan, 1 yuan of points are deducted (1 yuan = 100 points), and the customer actually pays 2 yuan. The related amortization result is consistent with the online real-time deduction of the amount of the customer, so the amortization is correct. Table 1 shows the commodity calculation details in this example.
TABLE 1
Unit price (coin) The points should be amortized The amount of the actual amortization of the points Actual payment amount
Commodity armor 100 100*100/300=33.33333 33 67
Commodity B 100 100*100/300=33.33333 33 67
Commodity C 100 100*100/300=33.33333 100-33-33=34 66
Table 2 shows the effect alignment before and after improvement:
the average time taken for the optimized payment transaction is reduced from 110 milliseconds to 60 milliseconds. Under the condition of keeping 100 concurrency numbers unchanged, TPS (Transactions Per Second, transaction number/second) of the device is lifted from 909 to 1666, the efficiency lifting rate reaches 83.27%, and the optimized lifting effect is obvious.
TABLE 2
Number of concurrency Payment transaction time consuming (millisecond) Transaction number/second (TPS)
Before optimization 100 110 909
After optimization 100 60 1666
The method and the device are based on asynchronous distributed message queues, decoupling of customer point preferential deduction and in-line point expense amortization is achieved, response efficiency of payment transaction is guaranteed, preferential amortization of points according to commodity dimensions is achieved, and a new idea is provided for a large-scale electronic commerce platform to improve efficiency in a point payment scene.
In the embodiment of the invention, the price data of the commodity in the order comprises: commodity price data and commodity total price data.
In the embodiment of the present invention, the sending the offer data of the current order to the distributed message queue to obtain the offer detail data of the goods in the order determined according to the price data of the goods in the order and the offer data of the current order includes:
transmitting the preferential data of the current order to a distributed message queue;
and the distributed message queue determines preferential detail data of the commodity in the order according to the commodity unit price data, the commodity total price data and the order preferential data.
In the embodiment of the present invention, the determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order includes:
and determining the payment amount of the order according to the commodity total price data and the preferential data of the current order.
FIG. 4 illustrates an example of a coupon algorithm for an order use in an embodiment of the present invention. During the use of the electronic ticket, the electronic ticket is uniformly amortized according to the proportion of the electronic ticket to the total order amount. However, considering that some proportions cannot be divided completely, the segments need to be carried out according to a certain algorithm.
Ignoring the situation that the stall of individual commodity is not strictly balanced, the stall efficiency can be improved. For example, 3 products each have a unit price of 1 element (100 points), and there is a full 3 element minus 1 element coupon. According to the scheme of balanced amortization, the preferential amount of the electronic coupon for each commodity amortization is 33.33333 minutes, and the electronic coupon amount for each commodity amortization is calculated by rounding off the remainder after the division is completed because the score is the minimum amount unit. Because the rounding process exists in the front, in order to correct the deviation of the amortization, the last commodity cannot be rounded continuously, but all the preferential amounts in the front are subtracted through the total preferential amount, so that the preferential amortization amount of the electronic coupon of the last merchant can be obtained. Therefore, the coupon discount amount of the commodity A and the commodity B is 33 minutes according to the rounding and rounding, and the coupon discount amount of the commodity C is 34 minutes by 100-33-33. The actual payment amount of the commodity A and the commodity B is 67 minutes, the actual payment amount of the commodity C is 66 minutes, and the total of three commodities is 67+67+66=200 minutes (2 yuan). The total order is 3 yuan, 1 yuan of electronic coupons are deducted, and the customer actually pays 2 yuan. The related amortization result is consistent with the online real-time deduction of the amount of the customer, so the amortization is correct. Table 3 shows details of calculation of the electronic ticket payment order in the present embodiment.
TABLE 3 Table 3
Unit price (score) The electronic ticket should be amortized Electronic ticket actual amortization amount Actual payment amount
Commodity armor 100 100*100/300=33.33333 33 67
Commodity B 100 100*100/300=33.33333 33 67
Commodity C 100 100*100/300=33.33333 100-33-33=34 66
Table 4 shows that the average time-consuming comparison for the payment transactions before and after optimization was reduced from 120 milliseconds to 70 milliseconds. Under the condition of keeping 150 concurrency numbers unchanged, the TPS is lifted from 1250 to 2142, the efficiency lifting rate reaches 71.36%, and the optimized lifting effect is very obvious.
TABLE 4 Table 4
Number of concurrency Payment transaction time consuming (millisecond) Transaction number/second (TPS)
Before optimization 150 120 1250
After optimization 150 70 2142
The embodiment of the invention realizes decoupling of the discount deduction of the electronic ticket of the passenger and the expense amortization of the electronic ticket in the line based on the asynchronous distributed message queue, not only ensures the response efficiency of the payment transaction, but also realizes the discount amortization of the electronic ticket according to the commodity dimension, and provides a new idea for the large-scale electronic commerce platform to improve the efficiency under the multi-commodity electronic ticket payment scene.
Meanwhile, the invention also provides a commodity payment transaction data processing device, as shown in fig. 5, comprising:
a transaction data acquisition module 501, configured to acquire transaction data of goods in an order to be paid; wherein the transaction data comprises: price data of goods in the order and preferential data of the current order;
the detail data obtaining module 502 is configured to send the offer data of the current order to a distributed message queue to obtain the offer detail data of the goods in the order determined according to the price data of the goods in the order and the offer data of the current order;
the payment amount determining module 503 is configured to determine an order payment amount according to the price data of the commodity in the order and the preference data of the current order.
The detail data acquisition module 502 includes:
the sending unit is used for sending the preferential data of the current order to the distributed message queue;
and the receiving unit is used for receiving the distributed message queue and determining the preferential detail data of the commodity in the order according to the commodity unit price data, the commodity total price data and the order preferential data.
The implementation manner of the commodity payment transaction data processing device provided by the present invention can be clearly known to those skilled in the art through the foregoing description of the embodiments, and will not be repeated herein.
It should be noted that the method and apparatus for commodity payment transaction data processing device of the present disclosure may be used for processing commodity payment transaction data in the financial field, and may also be used for processing commodity payment transaction data in any field other than the financial field, and the application field of the method and apparatus for commodity payment transaction data processing device of the present disclosure is not limited.
The present embodiment also provides an electronic device, which may be a desktop computer, a tablet computer, a mobile terminal, or the like, and the present embodiment is not limited thereto. In this embodiment, the electronic device may refer to the embodiments of the foregoing method and apparatus, and the content thereof is incorporated herein, and the repetition is not repeated.
Fig. 6 is a schematic block diagram of a system configuration of an electronic device 600 according to an embodiment of the present invention. As shown in fig. 6, the electronic device 600 may include a central processor 100 and a memory 140; memory 140 is coupled to central processor 100. Notably, the diagram is exemplary; other types of structures may also be used in addition to or in place of the structures to implement telecommunications functions or other functions.
In one embodiment, the merchandise payment transaction data processing functions may be integrated into the central processor 100. Wherein the central processor 100 may be configured to control as follows:
acquiring transaction data of commodities in an order to be paid; wherein the transaction data comprises: price data of goods in the order and preferential data of the current order;
transmitting the preferential data of the current order to a distributed message queue to acquire preferential detail data of the commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order;
and determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order.
In another embodiment, the commodity payment transaction data processing apparatus may be configured separately from the central processor 100, for example, the commodity payment transaction data processing apparatus may be configured as a chip connected to the central processor 100, and the commodity payment transaction data processing function is implemented by control of the central processor.
As shown in fig. 6, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processing unit 130, a display 160, a power supply 170. It is noted that the electronic device 600 need not include all of the components shown in fig. 6; in addition, the electronic device 600 may further include components not shown in fig. 6, to which reference is made to the prior art.
As shown in fig. 6, the central processor 100, also sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, which central processor 100 receives inputs and controls the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information about failure may be stored, and a program for executing the information may be stored. And the central processor 100 can execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides an input to the central processor 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used for displaying display objects such as images and characters. The display may be, for example, but not limited to, an LCD display.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), random Access Memory (RAM), SIM card, or the like. But also a memory which holds information even when powered down, can be selectively erased and provided with further data, an example of which is sometimes referred to as EPROM or the like. Memory 140 may also be some other type of device. Memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage 142, the application/function storage 142 for storing application programs and function programs or a flow for executing operations of the electronic device 600 by the central processor 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, address book applications, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. A communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, etc., may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and to receive audio input from the microphone 132 to implement usual telecommunication functions. The audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 130 is also coupled to the central processor 100 so that sound can be recorded locally through the microphone 132 and so that sound stored locally can be played through the speaker 131.
The embodiment of the present invention also provides a computer-readable program, wherein the program, when executed in an electronic device, causes the computer to execute the commodity payment transaction data processing method as described in the above embodiment in the electronic device.
The embodiment of the present invention also provides a storage medium storing a computer-readable program, wherein the computer-readable program causes a computer to execute the commodity payment transaction data processing described in the above embodiment in an electronic device.
According to the commodity payment transaction data processing method, the preferential data of the order are sent to a distributed message queue to obtain preferential detail data of commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order; the order payment amount is determined according to the price data of the commodity in the order and the preferential data of the current order, and based on the distributed message queue, decoupling of discount deduction and order cost amortization is achieved, so that the response efficiency of payment transaction is guaranteed, preferential amortization according to commodity dimension is achieved, and a new idea is provided for the large-scale electronic commerce platform to improve efficiency in a payment scene.
Preferred embodiments of the present invention are described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments which fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principles and embodiments of the present invention have been described in detail with reference to specific examples, which are provided to facilitate understanding of the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. A method of processing merchandise payment transaction data, said method comprising:
acquiring transaction data of commodities in an order to be paid; wherein the transaction data comprises: price data of goods in the order and preferential data of the current order; the price data of the commodity in the order comprises: commodity price data and commodity total price data;
transmitting the preferential data of the current order to a distributed message queue to acquire preferential detail data of the commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order;
determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order;
the step of sending the preferential data of the current order to a distributed message queue to obtain preferential detail data of the commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order comprises the following steps:
completing order payment according to the price data of the commodity in the order and the preferential data of the current order, and sending the price data of the commodity in the order and the preferential data of the current order to a distributed message queue in an asynchronous mode;
and asynchronously reading the data in the distributed message queue, and determining the preferential detail data of the commodity in the order according to the commodity unit price data, the commodity total price data and the preferential data of the current order.
2. A method of processing merchandise payment transaction data according to claim 1, wherein said offer data comprises: coupon data used by the current order and/or loyalty deduction amount data of the current order.
3. The commodity payment transaction data processing method according to claim 1, wherein said determining an order payment amount based on price data of the commodity in the order and offer data of the current order comprises:
and determining the payment amount of the order according to the commodity total price data and the preferential data of the current order.
4. A merchandise payment transaction data processing device, said device comprising:
the transaction data acquisition module is used for acquiring transaction data of commodities in an order to be paid; wherein the transaction data comprises: price data of goods in the order and preferential data of the current order; the price data of the commodity in the order comprises: commodity price data and commodity total price data;
the detail data acquisition module is used for sending the preferential data of the current order to a distributed message queue to acquire the preferential detail data of the commodities in the order determined according to the price data of the commodities in the order and the preferential data of the current order;
the payment amount determining module is used for determining the payment amount of the order according to the price data of the commodity in the order and the preferential data of the current order;
the detail data acquisition module is specifically used for:
completing order payment according to the price data of the commodity in the order and the preferential data of the current order, and sending the price data of the commodity in the order and the preferential data of the current order to a distributed message queue in an asynchronous mode;
and asynchronously reading the data in the distributed message queue, and determining the preferential detail data of the commodity in the order according to the commodity unit price data, the commodity total price data and the preferential data of the current order.
5. A commodity payment transaction data processing apparatus according to claim 4, wherein the detail data acquisition module comprises:
the sending unit is used for sending the preferential data of the current order to the distributed message queue;
and the receiving unit is used for receiving the distributed message queue and determining the preferential detail data of the commodity in the order according to the commodity unit price data, the commodity total price data and the order preferential data.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 3 when executing the computer program.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1 to 3.
CN202110371406.0A 2021-04-07 2021-04-07 Commodity payment transaction data processing method and device Active CN113112327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110371406.0A CN113112327B (en) 2021-04-07 2021-04-07 Commodity payment transaction data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110371406.0A CN113112327B (en) 2021-04-07 2021-04-07 Commodity payment transaction data processing method and device

Publications (2)

Publication Number Publication Date
CN113112327A CN113112327A (en) 2021-07-13
CN113112327B true CN113112327B (en) 2024-03-29

Family

ID=76714574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110371406.0A Active CN113112327B (en) 2021-04-07 2021-04-07 Commodity payment transaction data processing method and device

Country Status (1)

Country Link
CN (1) CN113112327B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420311A (en) * 2008-11-28 2009-04-29 中国移动通信集团四川有限公司 Gateway system for telecommunication stage payment and settlement
CN108446361A (en) * 2018-03-12 2018-08-24 上海哔哩哔哩科技有限公司 Processing method, server and the processing system of transaction data
CN111242661A (en) * 2018-11-29 2020-06-05 北京京东尚科信息技术有限公司 Coupon issuing method and device, computer system and medium
CN111311377A (en) * 2020-03-20 2020-06-19 时时同云科技(成都)有限责任公司 Order processing method, device and system
CN111445322A (en) * 2020-03-25 2020-07-24 中国工商银行股份有限公司 Integral sharing method and device
CN112347111A (en) * 2019-12-05 2021-02-09 北京沃东天骏信息技术有限公司 Data updating method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420311A (en) * 2008-11-28 2009-04-29 中国移动通信集团四川有限公司 Gateway system for telecommunication stage payment and settlement
CN108446361A (en) * 2018-03-12 2018-08-24 上海哔哩哔哩科技有限公司 Processing method, server and the processing system of transaction data
CN111242661A (en) * 2018-11-29 2020-06-05 北京京东尚科信息技术有限公司 Coupon issuing method and device, computer system and medium
CN112347111A (en) * 2019-12-05 2021-02-09 北京沃东天骏信息技术有限公司 Data updating method and device
CN111311377A (en) * 2020-03-20 2020-06-19 时时同云科技(成都)有限责任公司 Order processing method, device and system
CN111445322A (en) * 2020-03-25 2020-07-24 中国工商银行股份有限公司 Integral sharing method and device

Also Published As

Publication number Publication date
CN113112327A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
US10346731B2 (en) Method and apparatus for dynamic interchange pricing
US20200320566A1 (en) Linking an advantage communication system to a pre-existing product
US11379868B1 (en) Dynamically financed customer engagement campaign
US20120101894A1 (en) Real-time point redemption in a merchant redemption network
US8152060B2 (en) System and method for processing closed loop cards and codes
WO2019128062A1 (en) Gift giving method and device on e-commerce platform
CN107944002A (en) Reward voucher checks and writes off method, apparatus and electronic equipment
US20100200654A1 (en) System and method for processing closed loop cards and codes
CN112215611B (en) Block chain-based offer method, seller node equipment, terminal equipment and storage medium
WO2016028889A1 (en) Method and system for processing of a real-time rebate at transaction authorization
US20160019572A1 (en) Method and system for efficiently distributing coupons
AU2018236695A1 (en) Method and system for social network initiated rewards
US20120296722A1 (en) Methods and system to perform wireless financial transactions
US20160012480A1 (en) Targeted Electronic Commerce Based on Historical Purchasing Data
TWM620462U (en) Shopping discount processing system for digital payment tool
CN113112327B (en) Commodity payment transaction data processing method and device
CN112801781A (en) Credit card limit management method and device
US20230325913A1 (en) System and method for localized prepaid gift account program utilizing open loop network systems with local merchant approval and branding
US10817900B2 (en) Method and apparatus for determining an effectiveness of an electronic advertisement
CN111489153A (en) Payment discount information management system and method thereof
TWI780370B (en) Service method for integrating payment discounts
US20210224800A1 (en) Transaction-Based Rewards Points Notification
CN112116353A (en) Account data processing method, device and system
CN112435066A (en) Electronic certificate issuing method, device, terminal and storage medium
CN114092163B (en) Electronic shelf label price changing method and device, electronic equipment and storage medium

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