Transaction processing methods and platforms
The asynchronous write-off technology solves the problems of complexity and long waiting time of the coupon write-off system in the existing technology, achieves faster transaction processing, and improves user experience and system efficiency.
Patent Information
- Application Number
- CN202111193403.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-02-13
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2038-02-13
AI Technical Summary
The existing write-off system has high complexity and long waiting time when processing coupon write-offs for different products, which increases customer service workload and affects user experience.
The asynchronous write-off method is used to generate an issuance voucher after issuing coupons to users. When the write-off conditions are met, the voucher is marked and a write-off request is initiated to reduce waiting time.
It shortens user transaction waiting time, improves user experience, and reduces system complexity and error probability.
Smart Images

Figure CN113902480B
Abstract
Description
[0001] This application is a divisional application of a Chinese patent with an application date of February 13, 2018, application number 201810150893.6, and invention name “Transaction Processing Method and Platform”. Technical Field
[0002] The present invention relates to computer technology, and in particular to a transaction processing method and platform. Background Art
[0003] At present, e-commerce companies often launch promotional activities such as coupons, red envelopes, discounts, vouchers, and free gifts to boost sales. Moreover, in order to prevent customers from maliciously placing orders, users are usually allowed to enjoy corresponding discounts only after the goods they purchased have been verified. For example, if a user buys a computer, the merchant will give him a coupon, but the user will have to wait until the return period has passed before he can get the coupon.
[0004] Since different products have different redemption methods and times, the redemption system needs to support a variety of different preferential products and strategies. This processing method not only puts tremendous pressure on the redemption system, but also increases the complexity of the redemption system, the probability of error is relatively increased, and it takes a long time. If users have to wait for a long time or fail to enjoy the discount during the process of using the discount, it will bring a large number of customer inquiries, which will not only increase the workload of customer service, but also affect the user experience. Summary of the invention
[0005] The present invention provides a transaction processing method and platform to solve the problem that the existing cancellation method makes the system complex and the waiting time long.
[0006] To this end, the present invention provides the following technical solutions:
[0007] A transaction processing method, the method comprising:
[0008] After issuing the coupon to the user, generating a coupon issuance certificate;
[0009] Initiate a coupon redemption request when the coupon redemption conditions are met;
[0010] marking the issuance certificate of the coupon;
[0011] Asynchronously redeem the issuance voucher of the marked coupon.
[0012] Optionally, the method further comprises:
[0013] Receive transaction requests from users;
[0014] Determine the coupon corresponding to this transaction;
[0015] The coupon is issued to the user.
[0016] Optionally, the transaction request includes any one of the following: a request to purchase a coupon, a request to receive a coupon.
[0017] Optionally, determining a coupon corresponding to the transaction includes:
[0018] The coupon corresponding to this transaction is determined based on the pre-set coupon issuance strategy.
[0019] Optionally, the coupon issuance strategy includes:
[0020] A coupon matching the user is selected based on the user-related information and the coupon information.
[0021] Optionally, the user-related information includes any one or more of the following: the user's historical order information, transaction price statistics, and transaction commodity statistics; the coupon information includes any one or more of the following: the coupon limit amount, the applicable commodity types of the coupon, and the coupon discount amount.
[0022] Optionally, generating the coupon issuance certificate includes:
[0023] A voucher number corresponding to the coupon is generated in the voucher management system.
[0024] Optionally, the method further comprises:
[0025] After receiving the user's request to use the coupon, or return the product, or return the coupon, or cancel the transaction, a coupon cancellation request is initiated.
[0026] Optionally, the method further comprises:
[0027] After issuing the coupon to the user, generate coupon instance data and mark the status of the coupon instance data as usable;
[0028] After asynchronously reversing the issuance voucher of the marked coupon, the status of the coupon instance data is marked as reversing.
[0029] A transaction processing platform, comprising: a transaction processing system, a coupon management system, a voucher management system, and a settlement system;
[0030] The coupon management system is used to manage coupons;
[0031] The transaction processing system is used to issue coupons to users, trigger the voucher management system to generate a voucher for issuing the coupons; and initiate a voucher redemption request to the voucher management system when the voucher redemption conditions are met;
[0032] The voucher management system, after receiving the voucher verification request, marks the voucher issuance voucher and returns marking completion information to the transaction processing system;
[0033] The settlement system is used to asynchronously write off the issuance voucher of the marked coupon.
[0034] Optionally, the transaction processing system is further configured to receive a transaction request from a user and call the coupon management system to determine a coupon corresponding to the transaction.
[0035] Optionally, the transaction request includes any one of the following: a request to purchase a coupon, a request to receive a coupon.
[0036] Optionally, the coupon management system determines the coupon corresponding to the transaction according to a preset coupon issuance strategy.
[0037] Optionally, the user-related information includes any one or more of the following: the user's historical order information, transaction price statistics, and transaction commodity statistics; the coupon information includes any one or more of the following: the coupon limit amount, the applicable commodity types of the coupon, and the coupon discount amount.
[0038] Optionally, the transaction processing system initiates a coupon cancellation request after receiving a user's request to use a coupon, or a return request, or a coupon refund request, or a transaction cancellation request.
[0039] Optionally, the transaction processing system is further configured to trigger the coupon management system to generate coupon instance data and mark the status of the coupon instance data as usable after issuing the coupon to the user;
[0040] The settlement system is further used to trigger the coupon management system to mark the status of the coupon instance data as cancelled after asynchronously canceling the issuance voucher of the marked coupon.
[0041] Compared with the prior art, the present invention has the following advantages:
[0042] The transaction processing method and platform provided by the present invention generate an issuance voucher of the coupon after issuing the coupon to the user. After initiating a coupon redemption request, there is no need to wait for the coupon redemption to be completed before executing the operation corresponding to the coupon redemption. Instead, it is only necessary to mark the issuance voucher of the coupon first to execute the operation corresponding to the coupon redemption. The marked issuance voucher of the coupon is asynchronously redeemed, thereby shortening the user transaction waiting time and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a flow chart of the transaction processing method of the present invention;
[0044] Figure 2 is a flow chart of coupon issuance in an embodiment of the present invention;
[0045] Figure 3 It is a structural diagram of the transaction processing platform of the present invention. DETAILED DESCRIPTION
[0046] Many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present invention, so the present invention is not limited to the specific implementation disclosed below.
[0047] like Figure 1 FIG. 1 is a flow chart of a transaction processing method of the present invention, comprising the following steps:
[0048] Step 101, after issuing a coupon to a user, a coupon issuance voucher is generated.
[0049] Specifically, a voucher number corresponding to the coupon is generated in the voucher management system.
[0050] The coupons may be red envelopes, discounts, vouchers, etc., and the carrier may be paper or electronic. The amount and terms of use may be determined by the merchant. In addition, the users to whom the coupons are issued, the types and methods of issuance, etc. are also determined by the merchant, and the present invention does not limit this.
[0051] It should be noted that, in actual applications, after a coupon is issued to a user, coupon instance data corresponding to the coupon will be generated, and the status of the coupon instance data will be marked as usable.
[0052] Step 102: When the coupon redemption conditions are met, a coupon redemption request is initiated.
[0053] For example, when a user uses the coupon or cancels a transaction corresponding to the coupon, the coupon needs to be cancelled. That is, after receiving a user's request to use the coupon, or a return request, or a refund request, or a transaction cancellation request, a coupon cancellation request is initiated.
[0054] Step 103: Mark the coupon issuance certificate.
[0055] Different from the traditional synchronous verification method, in the solution of the present invention, after initiating a coupon verification request, there is no need to wait for the verification to be completed before executing the corresponding operation of the coupon verification. Instead, it is only necessary to mark the issuance voucher of the coupon to execute the corresponding operation of the coupon verification.
[0056] Step 104, asynchronously verify the issuance voucher of the marked coupon.
[0057] After asynchronously reversing the issuance voucher of the marked coupon, the status of the coupon instance data needs to be marked as cancelled.
[0058] The asynchronous verification means that the marking and verification of the issued voucher are not concurrent, but are performed independently. The asynchronous verification method can greatly shorten the user transaction waiting time and improve the user experience.
[0059] The transaction processing method provided in the embodiment of the present invention can be applied to the issuance and redemption of various coupons, such as Figure 2 FIG. 1 is a flow chart of coupon issuance in an embodiment of the present invention, including the following steps:
[0060] Step 201: Receive a transaction request from a user.
[0061] The transaction request may be a request to purchase a coupon, a request to receive a coupon, or other transaction requests.
[0062] Step 202, determine the coupon corresponding to this transaction.
[0063] Specifically, a coupon issuance strategy may be pre-set, and the coupon corresponding to the transaction may be determined according to the strategy, for example, a coupon matching the user may be selected according to the user-related information and the coupon information.
[0064] The user-related information includes any one or more of the following: the user's historical order information, transaction price statistics, and transaction commodity statistics;
[0065] The coupon information includes any one or more of the following: the coupon limit amount, the applicable commodity type of the coupon, and the coupon discount amount.
[0066] It should be noted that the specific matching algorithm can be set by the merchant, and this embodiment of the present invention does not limit this.
[0067] Step 203: issuing the coupon to the user.
[0068] The transaction processing method provided by the present invention generates an issuance voucher of the coupon after issuing the coupon to the user. After initiating a coupon redemption request, there is no need to wait for the coupon redemption to be completed before executing the operation corresponding to the coupon redemption. It is only necessary to mark the issuance voucher of the coupon first to execute the operation corresponding to the coupon redemption, and the marked issuance voucher of the coupon is asynchronously redeemed, thereby shortening the user transaction waiting time and improving the user experience.
[0069] Accordingly, the present invention also provides a transaction processing platform, such as Figure 3 The figure shows a structural diagram of the transaction processing platform.
[0070] In this embodiment, the platform includes: a transaction processing system 301, a coupon management system 302, a voucher management system 303, and a settlement system 304. Among them:
[0071] The coupon management system 302 is used to manage coupons;
[0072] The transaction processing system 301 is used to issue coupons to users, triggering the voucher management system 303 to generate the coupon issuance voucher; when the coupon redemption conditions are met, a coupon redemption request is initiated to the voucher management system 303;
[0073] After receiving the coupon verification request, the voucher management system 303 marks the coupon issuance voucher, specifically, generates a voucher number corresponding to the coupon, and returns marking completion information to the transaction processing system 301;
[0074] The settlement system 304 is used to asynchronously write off the marked coupon issuance voucher. The asynchronous write off operation can be triggered by the voucher management system 303, or can be started regularly by the settlement system 304, which is not limited by the present invention.
[0075] It should be noted that, in actual applications, the coupon management system 302 and the settlement system 304 can be independent systems or integrated into a unified coupon core system, which is not limited in the present invention.
[0076] Combine the following Figure 3 Describe in detail the process of issuing and redeeming coupons.
[0077] The coupon distribution process is as follows:
[0078] 1) A user initiates a transaction request, which may be initiated by the user on a client or a transaction platform, or offline; the transaction request may be a request to purchase a coupon, a request to receive a coupon, or other transaction requests, such as a request to purchase a product that comes with a coupon.
[0079] 2) After receiving the transaction request from the user, the transaction processing system 301 calls the coupon management system 302 to determine the coupon corresponding to this transaction.
[0080] Specifically, a coupon issuance strategy can be pre-set and stored in the coupon management system 302; accordingly, the coupon management system 302 determines the coupon corresponding to this transaction according to the strategy, for example, selecting a coupon that matches the user according to the user-related information and the coupon information. Wherein: the user-related information includes any one or more of the following: the user's historical order information, transaction price statistics, and transaction commodity statistics; the coupon information includes any one or more of the following: the coupon limit amount, the applicable commodity type of the coupon, and the coupon discount amount. The specific matching algorithm can be set by the merchant, and this embodiment of the present invention does not limit this.
[0081] 3) The transaction processing system 301 distributes the coupon corresponding to this transaction to the user.
[0082] The coupons may be red envelopes, discounts, vouchers, etc., and the carrier may be paper or electronic. The amount and terms of use may be determined by the merchant. In addition, the users to whom the coupons are issued, the types and methods of issuance, etc. are also determined by the merchant, and the present invention does not limit this.
[0083] 4) The transaction processing system 301 triggers the voucher management system 303 to generate a voucher corresponding to the coupon.
[0084] 5) The transaction processing system 301 triggers the coupon management system 302 to generate coupon instance data and mark the status of the coupon instance data as usable;
[0085] The specific process of coupon redemption is as follows:
[0086] 1) The user initiates a transaction request that requires the redemption of a coupon.
[0087] For example, when a user uses the coupon or cancels a transaction corresponding to the coupon, the coupon needs to be cancelled.
[0088] 2) The transaction processing system 301 checks whether the coupon redemption conditions are met, and if so, initiates a coupon redemption request to the voucher management system 303 .
[0089] For example, after receiving a user's request to use a coupon, or a return request, or a coupon refund request, or a transaction cancellation request, the transaction processing system 301 initiates a coupon cancellation request to the voucher management system 303 .
[0090] 3) After receiving the coupon verification request, the voucher management system 303 marks the coupon issuance voucher and then returns marking completion information to the transaction processing system 301 .
[0091] 4) After receiving the marking completion information, the transaction processing system 301 performs operations corresponding to the coupon cancellation.
[0092] 5) The settlement system 304 asynchronously cancels the issuance voucher of the marked coupon, and triggers the coupon management system 302 to mark the status of the coupon instance data as cancelled.
[0093] The following further illustrates the process of redeeming coupons by the transaction processing platform of the present invention.
[0094] Example 1: The coupon is a voucher
[0095] The user buys a 50-yuan voucher for KFC and actually pays 40 yuan. After the payment is successful, the transaction processing platform issues the voucher to the user. The specific process is as follows:
[0096] After the transaction processing system 301 receives the user's purchase request and successfully receives the user's payment, the voucher management system 303 issues a voucher to the user. At this time, the voucher management system 303 adds a voucher corresponding to the voucher, and the status is "unused"; the coupon management system 302 adds a voucher instance, and the status is "unused".
[0097] The above user goes to the store to buy a 70 yuan meal, uses a 50 yuan voucher, and pays the remaining 20 yuan, and then enters the voucher redemption process:
[0098] First, the voucher management system 303 queries the corresponding voucher, and after finding that its status is "unused", it directly changes its status to "used but uncancelled voucher", and then returns a message to the transaction processing system 301; the transaction processing system 301 completes the above transaction.
[0099] Secondly, the voucher management system 303 asynchronously wakes up the thread and calls the settlement system 304 to cancel the corresponding voucher instance; the settlement system 304 finds the corresponding voucher type processing method, changes the status of the voucher instance to "used", and records the flow, sends messages and other operations. If the call fails, it will retry. After the cancellation is completed, the voucher management system 303 changes the status of the corresponding voucher to "used and cancelled voucher".
[0100] Example 2: Coupon is a redemption voucher
[0101] When a user buys a 0.1 yuan redemption voucher for KFC, he actually pays 0.1 yuan. After the payment is successful, the transaction processing platform issues the voucher to the user. The specific process is as follows:
[0102] After the transaction processing system 301 receives the user's purchase request and successfully receives the user's payment, the voucher management system 303 issues the exchange voucher to the user. At this time, the voucher management system 303 adds a voucher corresponding to the exchange voucher, and the status is "unused"; the voucher management system 302 adds a voucher instance, and the status is "unused".
[0103] The above user goes to the store to purchase the package on the redemption voucher and enters the voucher redemption process:
[0104] First, the voucher management system 303 queries the corresponding voucher, and after finding that its status is "unused", it directly changes its status to "used but uncancelled voucher", and then returns a message to the transaction processing system 301; the transaction processing system 301 completes the above transaction.
[0105] Secondly, the voucher management system 303 asynchronously wakes up the thread and calls the settlement system 304 to cancel the corresponding voucher instance; the settlement system 304 finds the corresponding voucher processing method, changes the status of the voucher instance to "used", and records the flow, sends messages and other operations. If the call fails, it will be retried. After the cancellation is completed, the voucher management system 303 changes the status of the corresponding voucher to "used and cancelled voucher".
[0106] It can be seen that in the solution of the present invention, after initiating a coupon cancellation request, there is no need to wait for the cancellation operation to be completed before executing the operation corresponding to the coupon cancellation. Instead, the operation corresponding to the coupon cancellation can be executed by simply marking the issuance voucher of the coupon.
[0107] The transaction processing platform provided by the present invention generates an issuance voucher of the coupon after issuing the coupon to the user. After initiating a coupon redemption request, there is no need to wait for the coupon redemption to be completed before executing the operation corresponding to the coupon redemption. It is only necessary to mark the issuance voucher of the coupon first to execute the operation corresponding to the coupon redemption, and the marked issuance voucher of the coupon is asynchronously redeemed, thereby shortening the user transaction waiting time and improving the user experience.
[0108] Although the present invention is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined by the claims of the present invention.
[0109] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0110] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0111] 1. Computer readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include non-transit computer readable media (transit media), such as modulated data signals and carrier waves.
[0112] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims
1. A transaction processing method, It is characterized in that The method comprises: After issuing the coupon to the user, generating an issuance voucher for the coupon, generating coupon instance data and marking the status of the coupon instance data as unused; Initiating a coupon redemption request, including: after receiving a coupon use request from a user, initiating a coupon redemption request; After marking the coupon issuance voucher, completing the transaction requested by the user according to the marked coupon issuance voucher includes: performing the operation corresponding to the coupon cancellation according to the marking completion information of the coupon issuance voucher; the marking of the coupon issuance voucher includes: adjusting the status of the coupon issuance voucher from an unused status to a used but uncancelled voucher status; Asynchronously cancel the marked coupon issuance voucher and mark the status of the coupon instance data as a used and canceled coupon; wherein the asynchronous cancellation is to perform a cancellation operation on the coupon instance data after performing a marking operation on the coupon issuance voucher to complete the transaction requested by the user according to the coupon issuance voucher.
2. The transaction processing method according to claim 1, It is characterized in that The method further comprises: Receive transaction requests from users; Determine the coupon corresponding to this transaction; The coupon is issued to the user.
3. The transaction processing method according to claim 2, It is characterized in that The transaction request includes any one of the following: a request to purchase a coupon, a request to receive a coupon.
4. The transaction processing method according to claim 2, It is characterized in that The determining of the coupon corresponding to the transaction includes: The coupon corresponding to this transaction is determined based on the pre-set coupon issuance strategy.
5. The transaction processing method according to claim 4, It is characterized in that The coupon distribution strategy includes: A coupon matching the user is selected based on the user-related information and the coupon information.
6. The transaction processing method according to claim 4, It is characterized in that The user-related information includes any one or more of the following: the user's historical order information, transaction price statistics, and transaction commodity statistics; The coupon information includes any one or more of the following: the coupon limit amount, the applicable commodity type of the coupon, and the coupon discount amount.
7. The transaction processing method according to claim 1, It is characterized in that The step of generating the coupon issuance certificate includes: A voucher number corresponding to the coupon is generated in the voucher management system.
