WO2020133028A1 - Electronic payment transaction system and method - Google Patents

Electronic payment transaction system and method Download PDF

Info

Publication number
WO2020133028A1
WO2020133028A1 PCT/CN2018/124173 CN2018124173W WO2020133028A1 WO 2020133028 A1 WO2020133028 A1 WO 2020133028A1 CN 2018124173 W CN2018124173 W CN 2018124173W WO 2020133028 A1 WO2020133028 A1 WO 2020133028A1
Authority
WO
WIPO (PCT)
Prior art keywords
payment
collection
information
status
management system
Prior art date
Application number
PCT/CN2018/124173
Other languages
French (fr)
Chinese (zh)
Inventor
熊友军
梁晓发
Original Assignee
深圳市优必选科技有限公司
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 深圳市优必选科技有限公司 filed Critical 深圳市优必选科技有限公司
Priority to PCT/CN2018/124173 priority Critical patent/WO2020133028A1/en
Publication of WO2020133028A1 publication Critical patent/WO2020133028A1/en

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

Definitions

  • the invention relates to the technical field of electronic payment, in particular to an electronic payment transaction system and method.
  • the corresponding business system that receives the money can receive the money.
  • some messages cannot be processed, and the receiving business system may not receive the corresponding amount of money, resulting in inconsistent data between the two parties. .
  • An electronic payment transaction system includes:
  • the payment system is used to perform a deduction operation corresponding to the payment request when the payment request is received, and after successful execution of the deduction operation, send payment information to the management system so that the management system
  • the payment information is sent to the corresponding payment system
  • the payment system is also used to send the payment information to the management system, the payment status corresponding to the payment request in the payment message confirmation table is paid by the first payment The status is changed to the second payment status;
  • the collection system is also used to perform a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the payment collection message confirmation table corresponding to the collection information
  • the payment collection status is changed from the first payment collection status to the second payment collection status, and confirmation payment information is sent to the management system;
  • the management system is used to send the confirmed payment information to the payment system, so that the payment system according to the confirmed payment information, the second in the payment message confirmation table corresponding to the payment request
  • the payment status is modified to the third payment status.
  • An electronic payment transaction method includes:
  • the payment system executes the deduction operation corresponding to the payment request when receiving the payment request, and after the deduction operation is successfully executed, sends the collection information to the management system, so that the management system sends the collection information to The corresponding payment system, after sending the payment information to the management system, modify the payment state corresponding to the payment request in the payment message confirmation table from the first payment state to the second payment state;
  • the collection system executes a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the collection status of the collection message corresponding to the collection information in the collection message confirmation table Modify the first collection status to the second collection status, and send confirmation payment information to the management system;
  • the management system sends the confirmation payment information to the payment system, so that the payment system sends the second payment status corresponding to the payment request in the payment message confirmation table according to the confirmation payment information Change to the third payment status.
  • the present invention proposes an electronic payment transaction system and method.
  • the collection system may be down. Even if it is possible to do its best to notify, the corresponding collection operation may not be performed, resulting in One party deducted the payment, the other party did not receive the payment, or the collection system performed the collection operation, but did not notify the payment system, resulting in the payment system thinking that the collection system did not receive the payment, and correspondingly canceled the deduction, thus The data of the payment system and the collection system are inconsistent.
  • the embodiments of the present invention include a payment system, a management system, and a collection system. The payment system and the collection system do not have a direct network connection.
  • the management system can better manage the income and expenditure at the same time.
  • the management system collects the messages sent by the payment system, and then forwards the messages to the collection system, which greatly reduces the business pressure on both sides of the income and expenditure system, thus ensuring the data consistency between the two parties to a certain extent.
  • the payment collection system confirms the payment and revises the payment status, it will send the confirmation payment information to the management system, and then the management system will feed back the confirmation payment information of the payment system to the payment system, so that the payment system can send according to the management system.
  • Confirm the payment information to modify the payment status in the message confirmation table confirm that the collection system has performed the collection operation, and ensure that the data of both parties is consistent, and because the collection system will also confirm the payment message after receiving the payment
  • the payment status is modified in the table, even if it fails to feed back the confirmation payment information to the management system due to a downtime at a certain time, after the system is restored, the confirmation payment information can also be fed back to the management system to inform the management system To the payment system, so as to ensure that the data of both the receipt and payment are consistent.
  • the payment system continues to send the receipt information to the beneficiary because it has not received the confirmed receipt information.
  • the beneficiary receives duplicate receipt information but due to the detection
  • the payment status has changed and no payment operation is performed, that is, even if the payer sends a duplicate message, it can ensure that the data of the two parties are consistent by checking the payment message confirmation table, or, because the payment system is down, the management system receives the payment The request was not successfully sent to the collection system.
  • the payment system confirmed that the payment status in the payment message confirmation table has not changed, and continues to send payment information to the management system until the payment status in the payment message confirmation table changes and confirms
  • the collection system performs the collection operation to ensure that the data on both sides are consistent.
  • FIG. 1 is a schematic diagram of an electronic payment transaction system in an embodiment
  • FIG. 2 is a schematic diagram of an electronic payment transaction system in an embodiment
  • FIG. 3 is a schematic diagram of an electronic payment transaction system in an embodiment
  • FIG. 4 is a schematic diagram of an electronic payment transaction system in an embodiment
  • FIG. 5 is a schematic diagram of an electronic payment transaction system in an embodiment
  • FIG. 6 is a schematic diagram of an implementation process of an electronic payment transaction method in an embodiment
  • FIG. 7 is a schematic diagram of an implementation process of an electronic payment transaction method in an embodiment.
  • an electronic payment transaction system As shown in FIG. 1, in one embodiment, an electronic payment transaction system is provided.
  • the electronic payment transaction system specifically includes:
  • the payment system is used to perform a deduction operation corresponding to the payment request when the payment request is received, and after successful execution of the deduction operation, send payment information to the management system so that the management system
  • the payment information is sent to the corresponding payment system
  • the payment system is also used to send the payment information to the management system, the payment status corresponding to the payment request in the payment message confirmation table is paid by the first payment The status is changed to the second payment status;
  • the collection system is also used to perform a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the payment collection message confirmation table corresponding to the collection information
  • the payment collection status is changed from the first payment collection status to the second payment collection status, and confirmation payment information is sent to the management system;
  • the management system is used to send the confirmed payment information to the payment system, so that the payment system according to the confirmed payment information, the second in the payment message confirmation table corresponding to the payment request
  • the payment status is modified to the third payment status.
  • the payment system is provided on a payment server, the management system is provided on a management server, and the payment collection system is provided on a collection server, as shown in FIG. 2; optionally, the payment system and the payment server
  • the management system is set on the payment server, the payment system is set on the payment server, as shown in FIG. 3; optionally, the payment system is set on the payment server, and the management system and the payment system are set on Payment server, as shown in FIG. 4; optionally, the payment system, management system and payment system are all set on the same server.
  • Both the payment system and the collection system can be a bank system.
  • the payment system is the system of Bank A
  • the collection system is the system of Bank B
  • both the payment system and the collection system are the same bank's system.
  • One of the payment system and the collection system is an application system that can store money, and the other is a bank system.
  • the application that can store money is a WeChat application
  • the payment system is a WeChat application system.
  • the system is the bank's system, or the payment system is the bank's system
  • the collection system is the WeChat application system.
  • the payment system and the collection system are the same application system capable of storing money, for example, both the payment system and the collection system are WeChat application systems.
  • the management system is used to manage the messages on both sides of the revenue and expenditure system.
  • the management system may be a middleware that processes messages, such as RocketMQ.
  • the management system is mainly used to manage messages such as forwarding. It can be designed in the form of a message queue. When a large amount of payment information of the payment system is sent to the management system, the management system forwards it in an orderly manner.
  • the management system can be connected to multiple payment systems and/or collection systems at the same time.
  • the payment request is used to instruct the payment system to complete the deduction operation.
  • the content of the payment request may include, but is not limited to, the deduction system (for example, bank name), the deduction account number (for example, bank card number), deduction Payment amount, deductor's name, collection account number (for example, bank card number), collection system (for example, bank name), payee name and transaction number (uniquely identifies a transaction).
  • the collection information is used to instruct the collection system to complete the collection operation.
  • the content of the collection information may include, but is not limited to, the deduction system, the deduction account number, the name of the deductor, the amount of the collection, the collection Payment account number, payee name and transaction number.
  • the payment message confirmation table records electronic payment transactions, and the payment message confirmation table records the contents of multiple electronic payment transactions.
  • the content of the payment message confirmation table May include but not limited to deduction system, deduction account number, deduction amount, deductor name, collection account number, collection system, payee name, transaction number, creation time of the electronic payment transaction (deduction completed Time), the completion time and payment status of the electronic payment transaction.
  • the payment message confirmation table records electronic payment transactions.
  • the payment message confirmation table records the contents of multiple electronic payment transactions.
  • the payment message confirmation table The recorded content can include, but is not limited to, the deduction system, deduction account number, deduction amount, deductor name, collection account number, collection system, payee name, transaction number, creation time of the electronic payment transaction, The creation time of the electronic payment transaction (the time when the payment message was received), the completion time of the electronic payment transaction (the time when the payment was completed), and the payment status.
  • the first payment status is used to indicate the status of the deduction but has not been notified to the management system;
  • the second payment status is used to indicate the status of the completion of the deduction and the payment information has been sent to the management system;
  • the third payment status is used to instruct the payment system to complete the deduction and the collection system has also completed the collection.
  • the first collection status indicates that the collection information has been received, a corresponding electronic payment transaction record is created in the collection message confirmation table, but the collection status has not yet been received; the second collection status indicates that the collection has been completed Section status.
  • the deduction operation corresponding to the payment request can be Including: querying whether user A's transfer card number is enough for 1000 yuan, if it is enough, then subtract 1000 yuan from the account of user A's transfer card number, and at the same time, the system of bank A will correspond to the payment request in the payment message confirmation table
  • the payment status is set to unsent (if it is less than 1,000 yuan, you can prompt the user "Your bank card balance is insufficient, the transfer fails"), and then the system of Bank A sends the payment information to the management system, and sends the payment to the management system.
  • the system of Bank A changes the payment status corresponding to the payment request in the payment message confirmation form from the unsent state to the sent state.
  • the management system After receiving the payment information sent by the Bank A system, the management system checks the payment The collection system in the information determines to send the collection information to the system of Bank B. After receiving the collection information, the system of Bank B performs the collection operation corresponding to the collection information, for example, the collection operation may be : According to the payment information, set the payment status corresponding to the payment information to the unreceived status in the payment message confirmation table, and transfer the bank card number (that is, transfer information) to the user B according to the transfer amount in the payment information In the payment card number in ), add 1000 yuan, and after the payment operation is successfully performed, modify the payment status corresponding to the payment information in the payment message confirmation table from the unreceived status to the received status, and Send the confirmation payment information to the management system to inform the management system B that the user's bank card number has been successfully increased by 1,000 yuan through the confirmation payment information.
  • the collection operation may be : According to the payment information, set the payment status corresponding to the payment information to the unrece
  • the management system will confirm the receipt after receiving the confirmation payment information sent by the system of Bank B
  • the payment information is sent to Bank A’s system to inform Bank A’s system that the transfer was successful.
  • Bank A’s system After receiving the confirmation payment information sent by the management system, Bank A’s system will send the payment message confirmation form to all
  • the deducted payment status corresponding to the payment request is changed to the transaction completion status.
  • the collection system may be down. Even if the best possible notification may be made, the corresponding collection operation may not be performed, resulting in one party deducting the payment and the other party No payment is received, or the payment system performs the payment operation, but the payment system is not notified, resulting in the payment system thinking that the payment system has not received the payment, and correspondingly canceled the deduction, resulting in the payment system and the payment system
  • the data is inconsistent.
  • the embodiments of the present invention include a payment system, a management system, and a collection system. The payment system and the collection system do not have a direct network connection. By setting the management system, the management system can better manage the income and expenditure at the same time.
  • the management system collects the messages sent by the payment system, and then forwards the messages to the collection system, which greatly reduces the business pressure on both sides of the income and expenditure system, thus ensuring the data consistency between the two parties to a certain extent. Specifically, After the payment collection system confirms the payment and revises the payment status, it will send the confirmation payment information to the management system, and then the management system will feed back the confirmation payment information of the payment system to the payment system, so that the payment system can send according to the management system.
  • Confirm the payment information to modify the payment status in the message confirmation table confirm that the collection system has performed the collection operation, and ensure that the data of both parties is consistent, and because the collection system will also confirm the payment message after receiving the payment
  • the payment status is modified in the table, even if it fails to feed back the confirmation payment information to the management system due to a downtime at a certain time, after the system is restored, the confirmation payment information can also be fed back to the management system to inform the management system To the payment system, so as to ensure that the data of both the receipt and payment are consistent.
  • the payment system continues to send the receipt information to the beneficiary because it has not received the confirmed receipt information.
  • the beneficiary receives duplicate receipt information but due to the detection
  • the payment status has changed and no payment operation is performed, that is, even if the payer sends a duplicate message, it can ensure that the data of the two parties are consistent by checking the payment message confirmation table, or, because the payment system is down, the management system receives the payment The request was not successfully sent to the collection system.
  • the payment system confirmed that the payment status in the payment message confirmation table has not changed, and continues to send payment information to the management system until the payment status in the payment message confirmation table changes and confirms
  • the collection system performs the collection operation to ensure that the data on both sides are consistent.
  • the payment system is further configured to: if the payment status corresponding to the payment request in the payment message confirmation table within the first preset time is the first payment status or the second payment status, then Continue to send the collection information to the management system, so that the management system sends the collection information to the collection system.
  • the collection information includes a transaction number
  • the collection system is also used to determine whether a plurality of collection information is the same collection information according to the transaction number, if it is the same collection information, then according to Perform a corresponding operation in the collection state corresponding to the collection information in the collection message confirmation table, and the corresponding operation includes: if the collection state is the second collection state, send a confirmation to the management system Collection information; if the collection status is the first collection status, the collection operation corresponding to the collection information is executed, and after the collection operation is successfully performed, the collection message confirmation table and the collection information The corresponding payment collection status is modified from the first payment collection status to the second payment collection status, and confirmation payment information is sent to the management system.
  • the payment system is further configured to: if the payment status corresponding to the payment request in the payment message confirmation table in the second preset time is the first payment status or the second payment status, then Generate a rebate request according to the payment request to offset the deduction through the rebate request, and modify the payment state corresponding to the payment request to a fourth payment state.
  • the payment system is further configured to: if the payment status corresponding to the payment request in the payment message confirmation table in the second preset time is the first payment status or the second payment status, then Generate a payment cancellation message according to the payment request, and send the payment cancellation message to the management system; the management system is also used to send the payment cancellation message to the payment system to notify the The collection system does not perform the collection operation corresponding to the collection information.
  • the payment system is also used to send preparation information to the management system when a payment request is received; the management system is also used to send answer information to the payment system based on the preparation information, In order for the payment system to perform the deduction operation corresponding to the payment request according to the answer information.
  • an electronic payment transaction method is provided.
  • the electronic payment transaction method specifically includes the following steps:
  • Step 602 the payment system performs a deduction operation corresponding to the payment request when receiving the payment request, and after successful execution of the deduction operation, sends payment information to the management system so that the management system will collect the payment
  • the information is sent to the corresponding payment collection system, and after the payment collection information is sent to the management system, the payment status corresponding to the payment request in the payment message confirmation table is modified from the first payment status to the second payment status.
  • Step 604 The payment collection system performs a collection operation corresponding to the collection information according to the collection information. After the collection operation is successfully performed, the payment collection message confirmation table corresponds to the collection information The payment collection status is changed from the first payment collection status to the second payment collection status, and the payment confirmation information is sent to the management system.
  • Step 606 The management system sends the confirmed payment information to the payment system, so that the payment system sends the second payment message confirmation table corresponding to the payment request in the payment message confirmation table according to the confirmed payment information.
  • the second payment status is changed to the third payment status.
  • the collection system may be down. Even if the best possible notification may be made, the corresponding collection operation may not be performed, resulting in one party deducting the payment and the other party No payment is received, or the payment system performs the payment operation, but the payment system is not notified, resulting in the payment system thinking that the payment system has not received the payment, and correspondingly canceled the deduction, resulting in the payment system and the payment system
  • the data is inconsistent.
  • the embodiments of the present invention include a payment system, a management system, and a collection system. The payment system and the collection system do not have a direct network connection. By setting the management system, the management system can better manage the income and expenditure at the same time.
  • the management system collects the messages sent by the payment system, and then forwards the messages to the collection system, which greatly reduces the business pressure on both sides of the income and expenditure system, thus ensuring the data consistency between the two parties to a certain extent. Specifically, After the payment collection system confirms the payment and revises the payment status, it will send the confirmation payment information to the management system, and then the management system will feed back the confirmation payment information of the payment system to the payment system, so that the payment system can send according to the management system.
  • Confirm the payment information to modify the payment status in the message confirmation table confirm that the collection system has performed the collection operation, and ensure that the data of both parties is consistent, and because the collection system will also confirm the payment message after receiving the payment
  • the payment status is modified in the table, even if it fails to feed back the confirmation payment information to the management system due to a downtime at a certain time, after the system is restored, the confirmation payment information can also be fed back to the management system to inform the management system To the payment system, so as to ensure that the data of both the receipt and payment are consistent.
  • the payment system continues to send the receipt information to the beneficiary because it has not received the confirmed receipt information.
  • the beneficiary receives duplicate receipt information but due to the detection
  • the payment status has changed and no payment operation is performed, that is, even if the payer sends a duplicate message, it can ensure that the data of the two parties are consistent by checking the payment message confirmation table, or, because the payment system is down, the management system receives the payment The request was not successfully sent to the collection system.
  • the payment system confirmed that the payment status in the payment message confirmation table has not changed, and continues to send payment information to the management system until the payment status in the payment message confirmation table changes and confirms
  • the collection system performs the collection operation to ensure that the data on both sides are consistent.
  • the method further includes:
  • Step 708 If the payment status corresponding to the payment request in the payment message confirmation table is the first payment status or the second payment status within the first preset time, the payment system continues to send to the management system The payment information, so that the management system sends the payment information to the payment system.
  • the payment system will periodically check the payment status in the payment message confirmation table. If the payment status of the electronic payment transaction in the payment message confirmation table is detected within the first preset time, the payment status has always been the first payment status or the second payment status , It indicates that although the payment system has deducted the payment, the collection system has not yet received the corresponding payment, so it continues to send the collection information corresponding to the electronic payment transaction to the management system, prompting the collection system to perform the collection operation to ensure the collection The data of both parties are consistent.
  • the payment status is the first payment status: after the payment system is successfully deducted, due to some reasons, such as the collapse of the management system, the payment information sent to the management system has not been successfully sent, so the payment status remains at The first payment state.
  • the collection system will not receive the collection information, so the payment system needs to continue to send the collection information to the management system, so that the management system will The payment information was sent to the collection system; or, the payment message was successfully sent to the management system, and the management system was also sent to the collection system, but the payment system thought that the payment information was not successfully sent, so the payment status remained at The first payment status.
  • the management system sends confirmation receipt information to the payment system after receiving the payment information, so that the payment system receives the confirmation receipt sent by the management system After the information, the payment status is modified from the first payment status to the second payment status according to the confirmation reception information.
  • the payment system does not receive the confirmation payment information sent by the management system, that is, payment
  • the system is not clear whether the collection system has completed the collection, so at this time, it is also necessary to continue to send collection information to the management system, so that the collection system feeds back to the management system to confirm the collection after receiving the collection information information.
  • the payment information includes a transaction number
  • the payment system continues to send the payment information to the management system, so that the management system sends the payment information to the collection After the payment system, it also includes:
  • Step 710 the collection system determines whether the multiple collection information is the same collection information according to the transaction number, and if the collection information is the same, the collection information corresponding to the collection information in the collection message confirmation table Perform corresponding operations on the payment status.
  • the corresponding operations include: Step 710A, if the payment status is the second payment status, send confirmation payment information to the management system; Step 710B, if the payment status is In the first collection state, the collection operation corresponding to the collection information is executed. After the collection operation is successfully performed, the collection state corresponding to the collection information in the collection message confirmation table is determined by the first collection The status is changed to the second collection status, and confirmation payment information is sent to the management system.
  • the transaction number is used to uniquely identify an electronic payment transaction.
  • the transaction number is composed of numbers and/or characters and/or letters.
  • the transaction number is 512789tyu07k-tagw45-0ooo0.
  • the collection operation includes two cases: 1. The collection system has executed the collection operation according to the previously received payment information, and the collection status is now the second collection status, so it sends a confirmation receipt to the management system Information, in this way, the payment system can know that the payment system has received the payment through the confirmation payment information fed back by the management system. Accordingly, the payment system changes the payment status to the third payment status without sending the payment to the management system. Payment information; 2.
  • the collection system has received the payment information before, but due to some reasons, the payment operation has not been performed, at this time, the payment status is the first payment status, so, according to the payment information, Perform a collection operation corresponding to the collection information, and after the collection operation is successfully performed, modify the collection status corresponding to the collection information in the collection message confirmation table from the first collection status to the second collection Status, sending confirmation payment information to the management system.
  • the method further includes:
  • the payment system If the payment state corresponding to the payment request in the payment message confirmation table within the second preset time is the first payment state or the second payment state, the payment system generates a rebate request according to the payment request, In order to offset the deduction through the repayment request, and modify the payment status corresponding to the payment request to the fourth payment status.
  • the second preset time may be set to a longer time; the fourth payment state indicates the state of deduction and payment has been received, and the fourth payment state can be known that although the deduction has been made, but For some reason, the other party did not receive the payment, so the deduction was added back to the user.
  • the payment system completes the deduction, but due to some reasons, such as the management system (the management system is in a long-term failure, and the payment status is the first payment state at this time), or the payment system (the collection system is long) Is in trouble, and the payment status is the second payment status at this time), the payment operation has not been performed, or the payment operation has been performed, but the payment system has not received the confirmation payment information, so in order not to delay the deduction of the user
  • the use of the funds needs to add the deducted money back to the user, and at the same time modify the payment status corresponding to the payment request to the fourth payment status.
  • the method further includes:
  • the management system sends the collection cancellation message to the collection system to notify the collection system that the collection operation corresponding to the collection information is not to be performed.
  • the collection cancellation message is used to instruct the collection system not to perform the collection operation according to the collection information, or if the collection system has performed the collection operation, instruct the collection system to recover the increased amount again.
  • the content of the payment cancellation message may include, but is not limited to, a deduction system (for example, bank name), a deduction account number (for example, a bank card number), a deduction amount, a deductor's name, and a collection account number (for example, a bank Card number), collection system (for example, bank name), payee name, transaction number (uniquely identifies a transaction), and message identification (indicating the collection system, if the message is received, stop the collection operation or not receive Operation).
  • a deduction system for example, bank name
  • a deduction account number for example, a bank card number
  • a deduction amount for example, a deductor's name
  • a collection account number for example, a bank Card number
  • collection system for example, bank name
  • payee name for example, transaction number (unique
  • the payment system in order to ensure that the payment information of the payment system can be sent to the management system normally, the payment system first sends a preparation message to the management system to check whether the management system is currently in a normal state (whether the system is faulty or Too many messages cannot be processed). If the management system replies to the preparation message, it indicates that the management system is currently normal and can send payment information to it. Specifically, when the payment system receives the payment request, the deduction operation corresponding to the payment request is performed, including:
  • the payment system When receiving the payment request, the payment system sends preparation information to the management system;
  • the management system sends answer information to the payment system according to the preparation information
  • the payment system performs a deduction operation corresponding to the payment request according to the answer information.
  • the preparation message may be composed of numbers and/or characters and/or letters, for example, the preparation message is: zhunbeihaolema-0*0*; the answer message may be composed of numbers and/or characters and/or letters, for example , The preparation message is: zhunbeihaole-0*0*.
  • the payment system After receiving the reply information, the payment system starts to perform the deduction operation corresponding to the payment request.
  • the electronic payment transaction record corresponding to the payment state is deleted to reduce the payment message confirmation table The amount of data.
  • the electronic payment transaction system and the electronic payment transaction method described in the embodiments of the present invention belong to the same inventive concept, and the content in the electronic payment transaction system and the electronic payment transaction method can be mutually applicable.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • RDRAM direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

An electronic payment transaction system and method. The payment system is used for sending bill collection information to a management system, so that the management system sends the bill collection information to a bill collection system; the payment system is also used for modifying the state of a message in a payment message confirmation table from a first payment state to a second payment state after the bill collection information is successfully sent to the management system (S602); the bill collection system sending bill collection confirmation information to the management system after a bill collection operation is successfully executed, and modifying the state of a message in a bill collection message confirmation table from a first bill collection state to a second bill collection state after the bill collection confirmation information is sent to the management system (S604); and the management system is used for sending the bill collection confirmation information to the payment system, so that the payment system modifies the second payment state in the payment message confirmation table to a third payment state according to the bill collection confirmation information (S606). By means of the method, the consistency of data of both a payee and a payer is guaranteed to a certain extent.

Description

电子支付交易系统和方法Electronic payment transaction system and method 技术领域Technical field
本发明涉及电子支付技术领域,尤其涉及一种电子支付交易系统和方法。The invention relates to the technical field of electronic payment, in particular to an electronic payment transaction system and method.
背景技术Background technique
随着支付宝、微信转账业务的不断发展,电子支付已经被大部分人所知悉。相较于纸质的支付,电子支付更为安全,即不存在纸质钱币丢失的可能,同时,电子支付也方便快捷,不需要用户单独拿钱包等放置纸币。但是,电子支付和纸质的交易不同,电子支付是一方的业务系统进行支付,然后相应的另一方的业务系统增加相应数额的钱。With the continuous development of Alipay and WeChat transfer services, electronic payment has been known to most people. Compared with paper payment, electronic payment is more secure, that is, there is no possibility of losing paper money, and at the same time, electronic payment is also convenient and fast, without requiring the user to take a wallet and place paper money. However, electronic payment is different from paper transactions. Electronic payment is a business system of one party to pay, and then the corresponding business system of the other party increases the corresponding amount of money.
技术问题technical problem
通常情况下,一个业务系统支付后,对应的收款的业务系统都能收到钱。但是,在收款的业务系统宕机或者收款的业务系统消息太多导致由于某些情况部分消息没法处理,收款的业务系统可能无法收到对应数额的钱,从而导致业务双方数据不一致。Normally, after a business system pays, the corresponding business system that receives the money can receive the money. However, due to the downtime of the receiving business system or too many messages of the receiving business system, due to certain circumstances, some messages cannot be processed, and the receiving business system may not receive the corresponding amount of money, resulting in inconsistent data between the two parties. .
技术解决方案Technical solution
基于此,有必要针对上述问题,提出一种保证业务双方数据一致的电子支付交易系统和方法。Based on this, it is necessary to propose an electronic payment transaction system and method to ensure that the data on both sides of the business are consistent for the above problems.
一种电子支付交易系统,所述系统包括:An electronic payment transaction system, the system includes:
支付系统、管理系统和收款系统;Payment system, management system and collection system;
所述支付系统用于在接收到支付请求时执行与所述支付请求对应的扣款操作,在扣款操作执行成功之后,向所述管理系统发送收款信息,以使所述管理系统将所述收款信息发送至对应的收款系统;所述支付系统还用于在向所述管理系统发送收款信息之后,将支付消息确认表中与所述支付请求对应的支付状态由第一支付状态修改为第二支付状态;The payment system is used to perform a deduction operation corresponding to the payment request when the payment request is received, and after successful execution of the deduction operation, send payment information to the management system so that the management system The payment information is sent to the corresponding payment system; the payment system is also used to send the payment information to the management system, the payment status corresponding to the payment request in the payment message confirmation table is paid by the first payment The status is changed to the second payment status;
所述收款系统还用于根据所述收款信息执行与所述收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息;The collection system is also used to perform a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the payment collection message confirmation table corresponding to the collection information The payment collection status is changed from the first payment collection status to the second payment collection status, and confirmation payment information is sent to the management system;
所述管理系统用于将所述确认收款信息发送至所述支付系统,以使所述支付系统根据所述确认收款信息将所述支付消息确认表中与所述支付请求对应的第二支付状态修改为第三支付状态。The management system is used to send the confirmed payment information to the payment system, so that the payment system according to the confirmed payment information, the second in the payment message confirmation table corresponding to the payment request The payment status is modified to the third payment status.
一种电子支付交易方法,所述方法包括:An electronic payment transaction method, the method includes:
支付系统在接收到支付请求时执行与所述支付请求对应的扣款操作,在扣款操作执行成功之后,向管理系统发送收款信息,以使所述管理系统将所述收款信息发送至对应的收款系统,在向所述管理系统发送收款信息之后,将支付消息确认表中与所述支付请求对应的支付状态由第一支付状态修改为第二支付状态;The payment system executes the deduction operation corresponding to the payment request when receiving the payment request, and after the deduction operation is successfully executed, sends the collection information to the management system, so that the management system sends the collection information to The corresponding payment system, after sending the payment information to the management system, modify the payment state corresponding to the payment request in the payment message confirmation table from the first payment state to the second payment state;
所述收款系统根据所述收款信息执行与所述收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息;The collection system executes a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the collection status of the collection message corresponding to the collection information in the collection message confirmation table Modify the first collection status to the second collection status, and send confirmation payment information to the management system;
所述管理系统将所述确认收款信息发送至所述支付系统,以使所述支付系统根据所述确认收款信息将所述支付消息确认表中与所述支付请求对应的第二支付状态修改为第三支付状态。The management system sends the confirmation payment information to the payment system, so that the payment system sends the second payment status corresponding to the payment request in the payment message confirmation table according to the confirmation payment information Change to the third payment status.
有益效果Beneficial effect
本发明提出了一种电子支付交易系统和方法,通常情况下,支付系统在扣款之后,收款系统有可能宕机,即使可能尽最大努力通知,也可能没有执行对应的收款操作,导致一方扣款,另一方并没有收款,或者收款系统执行了收款操作,但是并没有通知到支付系统,导致支付系统以为收款系统并没有收款,又相应的取消了扣款,从而导致支付系统和收款系统数据不一致。本发明实施例,包括支付系统、管理系统和收款系统,支付系统和收款系统并不会进行直接的网络连接,通过设置管理系统,管理系统能够同时对收支情况进行更好的管理,管理系统收集支付系统发送的消息,然后将消息转发至收款系统,大大减轻了收支系统两方的业务压力,这样在一定程度上保证了收支系统两方的数据一致性,具体的,收款系统在确认收款并修改收款状态后会向管理系统发送确认收款信息,然后管理系统会将收款系统的确认收款信息向支付系统反馈,这样支付系统能够根据管理系统发送的确认收款信息对消息确认表中的支付状态进行修改,确认收款系统已执行了收款操作,保证收支双方数据一致,同时,由于收款系统在收款之后也会在收款消息确认表中对收款状态进行修改,即使其由于某一时间宕机未能向管理系统反馈确认收款信息,在系统恢复之后,也能将确认收款信息向管理系统反馈,以使管理系统通知到支付系统,从而保证了收支双方数据一致,对应的,支付系统由于没收到确认收款信息,继续发送收款信息至收款方,收款方接收到重复的收款信息但由于检测到收款状态已经改变而不再进行收款操作,即即使支付方发送了重复消息也能通过查看收款消息确认表保证双方数据一致,再或者,由于收款系统宕机,管理系统的收款请求并没有成功发送至收款系统,相应的,支付系统通过查看到支付消息确认表中的支付状态没有改变,继续向管理系统发送收款信息,直到支付消息确认表中的支付状态改变,确认收款系统执行了收款操作,保证双方数据一致。The present invention proposes an electronic payment transaction system and method. Generally, after the payment system deducts the payment, the collection system may be down. Even if it is possible to do its best to notify, the corresponding collection operation may not be performed, resulting in One party deducted the payment, the other party did not receive the payment, or the collection system performed the collection operation, but did not notify the payment system, resulting in the payment system thinking that the collection system did not receive the payment, and correspondingly canceled the deduction, thus The data of the payment system and the collection system are inconsistent. The embodiments of the present invention include a payment system, a management system, and a collection system. The payment system and the collection system do not have a direct network connection. By setting the management system, the management system can better manage the income and expenditure at the same time. The management system collects the messages sent by the payment system, and then forwards the messages to the collection system, which greatly reduces the business pressure on both sides of the income and expenditure system, thus ensuring the data consistency between the two parties to a certain extent. Specifically, After the payment collection system confirms the payment and revises the payment status, it will send the confirmation payment information to the management system, and then the management system will feed back the confirmation payment information of the payment system to the payment system, so that the payment system can send according to the management system. Confirm the payment information to modify the payment status in the message confirmation table, confirm that the collection system has performed the collection operation, and ensure that the data of both parties is consistent, and because the collection system will also confirm the payment message after receiving the payment The payment status is modified in the table, even if it fails to feed back the confirmation payment information to the management system due to a downtime at a certain time, after the system is restored, the confirmation payment information can also be fed back to the management system to inform the management system To the payment system, so as to ensure that the data of both the receipt and payment are consistent. Correspondingly, the payment system continues to send the receipt information to the beneficiary because it has not received the confirmed receipt information. The beneficiary receives duplicate receipt information but due to the detection The payment status has changed and no payment operation is performed, that is, even if the payer sends a duplicate message, it can ensure that the data of the two parties are consistent by checking the payment message confirmation table, or, because the payment system is down, the management system receives the payment The request was not successfully sent to the collection system. Correspondingly, the payment system confirmed that the payment status in the payment message confirmation table has not changed, and continues to send payment information to the management system until the payment status in the payment message confirmation table changes and confirms The collection system performs the collection operation to ensure that the data on both sides are consistent.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative labor, other drawings can be obtained based on these drawings.
其中:among them:
图1为一个实施例中电子支付交易系统的示意图;FIG. 1 is a schematic diagram of an electronic payment transaction system in an embodiment;
图2为一个实施例中电子支付交易系统的示意图;2 is a schematic diagram of an electronic payment transaction system in an embodiment;
图3为一个实施例中电子支付交易系统的示意图;3 is a schematic diagram of an electronic payment transaction system in an embodiment;
图4为一个实施例中电子支付交易系统的示意图;4 is a schematic diagram of an electronic payment transaction system in an embodiment;
图5为一个实施例中电子支付交易系统的示意图;5 is a schematic diagram of an electronic payment transaction system in an embodiment;
图6为一个实施例中电子支付交易方法的实现流程示意图;6 is a schematic diagram of an implementation process of an electronic payment transaction method in an embodiment;
图7为一个实施例中电子支付交易方法的实现流程示意图。7 is a schematic diagram of an implementation process of an electronic payment transaction method in an embodiment.
本发明的实施方式Embodiments of the invention
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.
如图1所示,在一个实施例中,提供了一种电子支付交易系统,该电子支付交易系统具体包括:As shown in FIG. 1, in one embodiment, an electronic payment transaction system is provided. The electronic payment transaction system specifically includes:
支付系统、管理系统和收款系统;Payment system, management system and collection system;
所述支付系统用于在接收到支付请求时执行与所述支付请求对应的扣款操作,在扣款操作执行成功之后,向所述管理系统发送收款信息,以使所述管理系统将所述收款信息发送至对应的收款系统;所述支付系统还用于在向所述管理系统发送收款信息之后,将支付消息确认表中与所述支付请求对应的支付状态由第一支付状态修改为第二支付状态;The payment system is used to perform a deduction operation corresponding to the payment request when the payment request is received, and after successful execution of the deduction operation, send payment information to the management system so that the management system The payment information is sent to the corresponding payment system; the payment system is also used to send the payment information to the management system, the payment status corresponding to the payment request in the payment message confirmation table is paid by the first payment The status is changed to the second payment status;
所述收款系统还用于根据所述收款信息执行与所述收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息;The collection system is also used to perform a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the payment collection message confirmation table corresponding to the collection information The payment collection status is changed from the first payment collection status to the second payment collection status, and confirmation payment information is sent to the management system;
所述管理系统用于将所述确认收款信息发送至所述支付系统,以使所述支付系统根据所述确认收款信息将所述支付消息确认表中与所述支付请求对应的第二支付状态修改为第三支付状态。The management system is used to send the confirmed payment information to the payment system, so that the payment system according to the confirmed payment information, the second in the payment message confirmation table corresponding to the payment request The payment status is modified to the third payment status.
可选的,所述支付系统设置于支付服务器,所述管理系统设置于管理服务器,所述收款系统设置于收款服务器,如图2所示;可选的,所述支付系统和所述管理系统均设置于支付服务器,所述收款系统设置于收款服务器,如图3所示;可选的,所述支付系统设置于支付服务器,所述管理系统和所述收款系统设置于收款服务器,如图4所示;可选的,所述支付系统、管理系统和所述收款系统均设置于同一服务器。Optionally, the payment system is provided on a payment server, the management system is provided on a management server, and the payment collection system is provided on a collection server, as shown in FIG. 2; optionally, the payment system and the payment server The management system is set on the payment server, the payment system is set on the payment server, as shown in FIG. 3; optionally, the payment system is set on the payment server, and the management system and the payment system are set on Payment server, as shown in FIG. 4; optionally, the payment system, management system and payment system are all set on the same server.
所述支付系统和所述收款系统,均可以是银行的系统。例如,所述支付系统为A银行的系统,所述收款系统为B银行的系统,或者,支付系统和收款系统均为同一银行的系统。所述支付系统和所述收款系统中的一个是能够存放钱的应用的系统,另一个是银行的系统,例如,能够存放钱的应用为微信应用,支付系统为微信应用的系统,收款系统为银行的系统,或者,支付系统为银行的系统,收款系统为微信应用的系统。所述支付系统和所述收款系统,为同一能够存放钱的应用的系统,例如,支付系统和收款系统均是微信应用的系统。Both the payment system and the collection system can be a bank system. For example, the payment system is the system of Bank A, and the collection system is the system of Bank B, or both the payment system and the collection system are the same bank's system. One of the payment system and the collection system is an application system that can store money, and the other is a bank system. For example, the application that can store money is a WeChat application, and the payment system is a WeChat application system. The system is the bank's system, or the payment system is the bank's system, and the collection system is the WeChat application system. The payment system and the collection system are the same application system capable of storing money, for example, both the payment system and the collection system are WeChat application systems.
所述管理系统,用于对收支系统双方的消息进行管理,具体的,所述管理系统,可以是一个处理消息的中间件,例如RocketMQ,管理系统主要是用于对消息进行转发等管理,可以设计成消息队列的形式,当支付系统的大量的收款信息发送至管理系统,管理系统对其进行有序的转发。所述管理系统,可以同时与多个支付系统和/或收款系统连接。The management system is used to manage the messages on both sides of the revenue and expenditure system. Specifically, the management system may be a middleware that processes messages, such as RocketMQ. The management system is mainly used to manage messages such as forwarding. It can be designed in the form of a message queue. When a large amount of payment information of the payment system is sent to the management system, the management system forwards it in an orderly manner. The management system can be connected to multiple payment systems and/or collection systems at the same time.
所述支付请求,用于指示支付系统完成扣款操作,具体的,所述支付请求的内容可以包括但不限于扣款系统(例如,银行名称)、扣款账号(例如,银行卡号)、扣款金额、扣款人姓名、收款账号(例如,银行卡号)、收款系统(例如,银行名称)、收款人姓名和交易号(唯一标识一个交易)。The payment request is used to instruct the payment system to complete the deduction operation. Specifically, the content of the payment request may include, but is not limited to, the deduction system (for example, bank name), the deduction account number (for example, bank card number), deduction Payment amount, deductor's name, collection account number (for example, bank card number), collection system (for example, bank name), payee name and transaction number (uniquely identifies a transaction).
所述收款信息,用于指示收款系统完成收款操作,具体的,所述收款信息的内容可以包括但不限于扣款系统、扣款账号、扣款人姓名、收款金额、收款账号、收款人姓名和交易号。The collection information is used to instruct the collection system to complete the collection operation. Specifically, the content of the collection information may include, but is not limited to, the deduction system, the deduction account number, the name of the deductor, the amount of the collection, the collection Payment account number, payee name and transaction number.
所述支付消息确认表,对电子支付交易的记录,所述支付消息确认表中会记录多条电子支付交易的内容,具体的,对每条电子支付交易,所述支付消息确认表记载的内容可以包括但不限于扣款系统、扣款账号、扣款金额、扣款人姓名、收款账号、收款系统、收款人姓名、交易号、该条电子支付交易的创建时间(扣款完成的时间)、该条电子支付交易的完成时间和支付状态。The payment message confirmation table records electronic payment transactions, and the payment message confirmation table records the contents of multiple electronic payment transactions. Specifically, for each electronic payment transaction, the content of the payment message confirmation table May include but not limited to deduction system, deduction account number, deduction amount, deductor name, collection account number, collection system, payee name, transaction number, creation time of the electronic payment transaction (deduction completed Time), the completion time and payment status of the electronic payment transaction.
所述收款消息确认表,对电子支付交易的记录,所述收款消息确认表中会记录多条电子支付交易的内容,具体的,对每条电子支付交易,所述收款消息确认表记载的内容可以包括但不限于扣款系统、扣款账号、扣款金额、扣款人姓名、收款账号、收款系统、收款人姓名、交易号、该条电子支付交易的创建时间、该条电子支付交易的创建时间(接收到收款消息的时间)、该条电子支付交易的完成时间(收款完成的时间)和收款状态。The payment message confirmation table records electronic payment transactions. The payment message confirmation table records the contents of multiple electronic payment transactions. Specifically, for each electronic payment transaction, the payment message confirmation table The recorded content can include, but is not limited to, the deduction system, deduction account number, deduction amount, deductor name, collection account number, collection system, payee name, transaction number, creation time of the electronic payment transaction, The creation time of the electronic payment transaction (the time when the payment message was received), the completion time of the electronic payment transaction (the time when the payment was completed), and the payment status.
所述第一支付状态,用于指示已扣款但还未通知管理系统的状态;所述第二支付状态,用于指示扣款完成且已经向管理系统发送了收款信息的状态;所述第三支付状态,用于指示支付系统完成扣款且收款系统也完成了收款的状态。The first payment status is used to indicate the status of the deduction but has not been notified to the management system; the second payment status is used to indicate the status of the completion of the deduction and the payment information has been sent to the management system; The third payment status is used to instruct the payment system to complete the deduction and the collection system has also completed the collection.
所述第一收款状态,指示接收到了收款信息,在收款消息确认表中创建了相应的电子支付交易记录,但还没收款的状态;所述第二收款状态,指示已经完成收款的状态。The first collection status indicates that the collection information has been received, a corresponding electronic payment transaction record is created in the collection message confirmation table, but the collection status has not yet been received; the second collection status indicates that the collection has been completed Section status.
下面举一个例子以更好的对本发明实施例所述的电子支付交易系统进行说明。例如图5所示,用户A要通过A银行的银行卡转账给用户B的B银行的银行卡,于是,用户A通过A银行的转账应用的转账界面输入了转账信息,用户输入完转账信息并点击转账界面的确认转账的虚拟按钮之后便生成了支付请求,于是A银行的系统获取到了支付请求,并执行与该支付请求对应的扣款操作,例如,与该支付请求对应的扣款操作可以包括:查询用户A的转账卡号中是否够1000元,如果够1000元,则在用户A的转账卡号的账户减去1000元,同时,A银行的系统将支付消息确认表中与该支付请求对应的支付状态设置为未发送状态(如果不够1000元,则可以提示用户“您的银行卡余额不足,转账失败”),然后A银行的系统向管理系统发送收款信息,在向管理系统发送收款信息之后,A银行的系统将支付消息确认表中与该支付请求对应的支付状态由未发送状态修改为已发送状态,管理系统在接收到A银行系统发送的收款信息之后,根据收款信息中的收款系统确定将该收款信息发送至B银行的系统,B银行的系统在接收到收款信息之后执行与该收款信息对应的收款操作,例如,该收款操作可以是:根据收款信息,在收款消息确认表中将与该收款信息对应的收款状态设置为未收款状态,根据收款信息中的转账金额,向B用户的银行卡号(即转账信息中的收款卡号)中增加1000元,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由未收款状态修改为已收款状态,同时向管理系统发送确认收款信息,以通过确认收款信息告知管理系统B用户的银行卡号已经成功增加了1000元,管理系统在接收到B银行的系统发送的确认收款信息之后,将确认收款信息发送至A银行的系统,以告知A银行的系统转账成功,A银行的系统在接收到管理系统发送的确认收款信息之后,根据该确认收款信息,将支付消息确认表中与所述支付请求对应的已扣款状态修改为交易完成状态。An example is given below to better explain the electronic payment transaction system according to the embodiment of the present invention. For example, as shown in Figure 5, user A wants to transfer money to bank B of user B through the bank card of bank A, so user A enters the transfer information through the transfer interface of the transfer application of bank A, and the user enters the transfer information and After clicking the virtual button to confirm the transfer in the transfer interface, the payment request is generated, so the system of Bank A obtains the payment request and executes the deduction operation corresponding to the payment request. For example, the deduction operation corresponding to the payment request can be Including: querying whether user A's transfer card number is enough for 1000 yuan, if it is enough, then subtract 1000 yuan from the account of user A's transfer card number, and at the same time, the system of bank A will correspond to the payment request in the payment message confirmation table The payment status is set to unsent (if it is less than 1,000 yuan, you can prompt the user "Your bank card balance is insufficient, the transfer fails"), and then the system of Bank A sends the payment information to the management system, and sends the payment to the management system. After the payment information, the system of Bank A changes the payment status corresponding to the payment request in the payment message confirmation form from the unsent state to the sent state. After receiving the payment information sent by the Bank A system, the management system checks the payment The collection system in the information determines to send the collection information to the system of Bank B. After receiving the collection information, the system of Bank B performs the collection operation corresponding to the collection information, for example, the collection operation may be : According to the payment information, set the payment status corresponding to the payment information to the unreceived status in the payment message confirmation table, and transfer the bank card number (that is, transfer information) to the user B according to the transfer amount in the payment information In the payment card number in ), add 1000 yuan, and after the payment operation is successfully performed, modify the payment status corresponding to the payment information in the payment message confirmation table from the unreceived status to the received status, and Send the confirmation payment information to the management system to inform the management system B that the user's bank card number has been successfully increased by 1,000 yuan through the confirmation payment information. The management system will confirm the receipt after receiving the confirmation payment information sent by the system of Bank B The payment information is sent to Bank A’s system to inform Bank A’s system that the transfer was successful. After receiving the confirmation payment information sent by the management system, Bank A’s system will send the payment message confirmation form to all The deducted payment status corresponding to the payment request is changed to the transaction completion status.
上述电子支付交易系统,通常情况下,支付系统在扣款之后,收款系统有可能宕机,即使可能尽最大努力通知,也可能没有执行对应的收款操作,导致一方扣款,另一方并没有收款,或者收款系统执行了收款操作,但是并没有通知到支付系统,导致支付系统以为收款系统并没有收款,又相应的取消了扣款,从而导致支付系统和收款系统数据不一致。本发明实施例,包括支付系统、管理系统和收款系统,支付系统和收款系统并不会进行直接的网络连接,通过设置管理系统,管理系统能够同时对收支情况进行更好的管理,管理系统收集支付系统发送的消息,然后将消息转发至收款系统,大大减轻了收支系统两方的业务压力,这样在一定程度上保证了收支系统两方的数据一致性,具体的,收款系统在确认收款并修改收款状态后会向管理系统发送确认收款信息,然后管理系统会将收款系统的确认收款信息向支付系统反馈,这样支付系统能够根据管理系统发送的确认收款信息对消息确认表中的支付状态进行修改,确认收款系统已执行了收款操作,保证收支双方数据一致,同时,由于收款系统在收款之后也会在收款消息确认表中对收款状态进行修改,即使其由于某一时间宕机未能向管理系统反馈确认收款信息,在系统恢复之后,也能将确认收款信息向管理系统反馈,以使管理系统通知到支付系统,从而保证了收支双方数据一致,对应的,支付系统由于没收到确认收款信息,继续发送收款信息至收款方,收款方接收到重复的收款信息但由于检测到收款状态已经改变而不再进行收款操作,即即使支付方发送了重复消息也能通过查看收款消息确认表保证双方数据一致,再或者,由于收款系统宕机,管理系统的收款请求并没有成功发送至收款系统,相应的,支付系统通过查看到支付消息确认表中的支付状态没有改变,继续向管理系统发送收款信息,直到支付消息确认表中的支付状态改变,确认收款系统执行了收款操作,保证双方数据一致。In the above electronic payment transaction system, under normal circumstances, after the payment system deducts the payment, the collection system may be down. Even if the best possible notification may be made, the corresponding collection operation may not be performed, resulting in one party deducting the payment and the other party No payment is received, or the payment system performs the payment operation, but the payment system is not notified, resulting in the payment system thinking that the payment system has not received the payment, and correspondingly canceled the deduction, resulting in the payment system and the payment system The data is inconsistent. The embodiments of the present invention include a payment system, a management system, and a collection system. The payment system and the collection system do not have a direct network connection. By setting the management system, the management system can better manage the income and expenditure at the same time. The management system collects the messages sent by the payment system, and then forwards the messages to the collection system, which greatly reduces the business pressure on both sides of the income and expenditure system, thus ensuring the data consistency between the two parties to a certain extent. Specifically, After the payment collection system confirms the payment and revises the payment status, it will send the confirmation payment information to the management system, and then the management system will feed back the confirmation payment information of the payment system to the payment system, so that the payment system can send according to the management system. Confirm the payment information to modify the payment status in the message confirmation table, confirm that the collection system has performed the collection operation, and ensure that the data of both parties is consistent, and because the collection system will also confirm the payment message after receiving the payment The payment status is modified in the table, even if it fails to feed back the confirmation payment information to the management system due to a downtime at a certain time, after the system is restored, the confirmation payment information can also be fed back to the management system to inform the management system To the payment system, so as to ensure that the data of both the receipt and payment are consistent. Correspondingly, the payment system continues to send the receipt information to the beneficiary because it has not received the confirmed receipt information. The beneficiary receives duplicate receipt information but due to the detection The payment status has changed and no payment operation is performed, that is, even if the payer sends a duplicate message, it can ensure that the data of the two parties are consistent by checking the payment message confirmation table, or, because the payment system is down, the management system receives the payment The request was not successfully sent to the collection system. Correspondingly, the payment system confirmed that the payment status in the payment message confirmation table has not changed, and continues to send payment information to the management system until the payment status in the payment message confirmation table changes and confirms The collection system performs the collection operation to ensure that the data on both sides are consistent.
在其中一个实施例中,所述支付系统还用于若在第一预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则继续向所述管理系统发送所述收款信息,以使所述管理系统将该收款信息发送至收款系统。In one of the embodiments, the payment system is further configured to: if the payment status corresponding to the payment request in the payment message confirmation table within the first preset time is the first payment status or the second payment status, then Continue to send the collection information to the management system, so that the management system sends the collection information to the collection system.
在其中一个实施例中,所述收款信息包括交易号,所述收款系统还用于根据所述交易号判断多个收款信息是否为同一收款信息,若是同一收款信息,则根据所述收款消息确认表中与该收款信息对应的收款状态执行对应的操作,所述对应的操作包括:若该收款状态为第二收款状态,则向所述管理系统发送确认收款信息;若该收款状态为第一收款状态,则执行与该收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息。In one of the embodiments, the collection information includes a transaction number, and the collection system is also used to determine whether a plurality of collection information is the same collection information according to the transaction number, if it is the same collection information, then according to Perform a corresponding operation in the collection state corresponding to the collection information in the collection message confirmation table, and the corresponding operation includes: if the collection state is the second collection state, send a confirmation to the management system Collection information; if the collection status is the first collection status, the collection operation corresponding to the collection information is executed, and after the collection operation is successfully performed, the collection message confirmation table and the collection information The corresponding payment collection status is modified from the first payment collection status to the second payment collection status, and confirmation payment information is sent to the management system.
在其中一个实施例中,所述支付系统还用于若在第二预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则根据所述支付请求生成回款请求,以通过所述回款请求抵消扣款,并将与所述支付请求对应的支付状态修改为第四支付状态。In one of the embodiments, the payment system is further configured to: if the payment status corresponding to the payment request in the payment message confirmation table in the second preset time is the first payment status or the second payment status, then Generate a rebate request according to the payment request to offset the deduction through the rebate request, and modify the payment state corresponding to the payment request to a fourth payment state.
在其中一个实施例中,所述支付系统还用于若在第二预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则根据所述支付请求生成收款取消消息,将所述收款取消消息发送至所述管理系统;所述管理系统还用于将所述收款取消消息发送至所述收款系统,以通知所述收款系统不执行与所述收款信息对应的收款操作。In one of the embodiments, the payment system is further configured to: if the payment status corresponding to the payment request in the payment message confirmation table in the second preset time is the first payment status or the second payment status, then Generate a payment cancellation message according to the payment request, and send the payment cancellation message to the management system; the management system is also used to send the payment cancellation message to the payment system to notify the The collection system does not perform the collection operation corresponding to the collection information.
在其中一个实施例中,所述支付系统还用于在接收到支付请求时向所述管理系统发送准备信息;所述管理系统还用于根据所述准备信息向所述支付系统发送回答信息,以使所述支付系统根据所述回答信息执行与所述支付请求对应的扣款操作。In one of the embodiments, the payment system is also used to send preparation information to the management system when a payment request is received; the management system is also used to send answer information to the payment system based on the preparation information, In order for the payment system to perform the deduction operation corresponding to the payment request according to the answer information.
如图6所示,在一个实施例中,提供了一种电子支付交易方法,该电子支付交易方法具体包括如下步骤:As shown in FIG. 6, in one embodiment, an electronic payment transaction method is provided. The electronic payment transaction method specifically includes the following steps:
步骤602,支付系统在接收到支付请求时执行与所述支付请求对应的扣款操作,在扣款操作执行成功之后,向管理系统发送收款信息,以使所述管理系统将所述收款信息发送至对应的收款系统,在向所述管理系统发送收款信息之后,将支付消息确认表中与所述支付请求对应的支付状态由第一支付状态修改为第二支付状态。Step 602, the payment system performs a deduction operation corresponding to the payment request when receiving the payment request, and after successful execution of the deduction operation, sends payment information to the management system so that the management system will collect the payment The information is sent to the corresponding payment collection system, and after the payment collection information is sent to the management system, the payment status corresponding to the payment request in the payment message confirmation table is modified from the first payment status to the second payment status.
步骤604,所述收款系统根据所述收款信息执行与所述收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息。Step 604: The payment collection system performs a collection operation corresponding to the collection information according to the collection information. After the collection operation is successfully performed, the payment collection message confirmation table corresponds to the collection information The payment collection status is changed from the first payment collection status to the second payment collection status, and the payment confirmation information is sent to the management system.
步骤606,所述管理系统将所述确认收款信息发送至所述支付系统,以使所述支付系统根据所述确认收款信息将所述支付消息确认表中与所述支付请求对应的第二支付状态修改为第三支付状态。Step 606: The management system sends the confirmed payment information to the payment system, so that the payment system sends the second payment message confirmation table corresponding to the payment request in the payment message confirmation table according to the confirmed payment information. The second payment status is changed to the third payment status.
上述电子支付交易方法,通常情况下,支付系统在扣款之后,收款系统有可能宕机,即使可能尽最大努力通知,也可能没有执行对应的收款操作,导致一方扣款,另一方并没有收款,或者收款系统执行了收款操作,但是并没有通知到支付系统,导致支付系统以为收款系统并没有收款,又相应的取消了扣款,从而导致支付系统和收款系统数据不一致。本发明实施例,包括支付系统、管理系统和收款系统,支付系统和收款系统并不会进行直接的网络连接,通过设置管理系统,管理系统能够同时对收支情况进行更好的管理,管理系统收集支付系统发送的消息,然后将消息转发至收款系统,大大减轻了收支系统两方的业务压力,这样在一定程度上保证了收支系统两方的数据一致性,具体的,收款系统在确认收款并修改收款状态后会向管理系统发送确认收款信息,然后管理系统会将收款系统的确认收款信息向支付系统反馈,这样支付系统能够根据管理系统发送的确认收款信息对消息确认表中的支付状态进行修改,确认收款系统已执行了收款操作,保证收支双方数据一致,同时,由于收款系统在收款之后也会在收款消息确认表中对收款状态进行修改,即使其由于某一时间宕机未能向管理系统反馈确认收款信息,在系统恢复之后,也能将确认收款信息向管理系统反馈,以使管理系统通知到支付系统,从而保证了收支双方数据一致,对应的,支付系统由于没收到确认收款信息,继续发送收款信息至收款方,收款方接收到重复的收款信息但由于检测到收款状态已经改变而不再进行收款操作,即即使支付方发送了重复消息也能通过查看收款消息确认表保证双方数据一致,再或者,由于收款系统宕机,管理系统的收款请求并没有成功发送至收款系统,相应的,支付系统通过查看到支付消息确认表中的支付状态没有改变,继续向管理系统发送收款信息,直到支付消息确认表中的支付状态改变,确认收款系统执行了收款操作,保证双方数据一致。In the above electronic payment transaction method, under normal circumstances, after the payment system deducts the payment, the collection system may be down. Even if the best possible notification may be made, the corresponding collection operation may not be performed, resulting in one party deducting the payment and the other party No payment is received, or the payment system performs the payment operation, but the payment system is not notified, resulting in the payment system thinking that the payment system has not received the payment, and correspondingly canceled the deduction, resulting in the payment system and the payment system The data is inconsistent. The embodiments of the present invention include a payment system, a management system, and a collection system. The payment system and the collection system do not have a direct network connection. By setting the management system, the management system can better manage the income and expenditure at the same time. The management system collects the messages sent by the payment system, and then forwards the messages to the collection system, which greatly reduces the business pressure on both sides of the income and expenditure system, thus ensuring the data consistency between the two parties to a certain extent. Specifically, After the payment collection system confirms the payment and revises the payment status, it will send the confirmation payment information to the management system, and then the management system will feed back the confirmation payment information of the payment system to the payment system, so that the payment system can send according to the management system. Confirm the payment information to modify the payment status in the message confirmation table, confirm that the collection system has performed the collection operation, and ensure that the data of both parties is consistent, and because the collection system will also confirm the payment message after receiving the payment The payment status is modified in the table, even if it fails to feed back the confirmation payment information to the management system due to a downtime at a certain time, after the system is restored, the confirmation payment information can also be fed back to the management system to inform the management system To the payment system, so as to ensure that the data of both the receipt and payment are consistent. Correspondingly, the payment system continues to send the receipt information to the beneficiary because it has not received the confirmed receipt information. The beneficiary receives duplicate receipt information but due to the detection The payment status has changed and no payment operation is performed, that is, even if the payer sends a duplicate message, it can ensure that the data of the two parties are consistent by checking the payment message confirmation table, or, because the payment system is down, the management system receives the payment The request was not successfully sent to the collection system. Correspondingly, the payment system confirmed that the payment status in the payment message confirmation table has not changed, and continues to send payment information to the management system until the payment status in the payment message confirmation table changes and confirms The collection system performs the collection operation to ensure that the data on both sides are consistent.
在本发明实施例中,如图7所示,所述方法还包括:In the embodiment of the present invention, as shown in FIG. 7, the method further includes:
步骤708,若在第一预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则所述支付系统继续向所述管理系统发送所述收款信息,以使所述管理系统将该收款信息发送至收款系统。Step 708: If the payment status corresponding to the payment request in the payment message confirmation table is the first payment status or the second payment status within the first preset time, the payment system continues to send to the management system The payment information, so that the management system sends the payment information to the payment system.
支付系统会定期的对支付消息确认表中的支付状态进行检查,如果在第一预设时间内检测到支付消息确认表中有电子支付交易的支付状态一直是第一支付状态或第二支付状态,则表明虽然支付系统已经扣款,但是收款系统还没有收款相应的款项,于是,继续向管理系统发送该电子支付交易对应的收款信息,促使收款系统执行收款操作,保证收支双方数据一致。The payment system will periodically check the payment status in the payment message confirmation table. If the payment status of the electronic payment transaction in the payment message confirmation table is detected within the first preset time, the payment status has always been the first payment status or the second payment status , It indicates that although the payment system has deducted the payment, the collection system has not yet received the corresponding payment, so it continues to send the collection information corresponding to the electronic payment transaction to the management system, prompting the collection system to perform the collection operation to ensure the collection The data of both parties are consistent.
对于支付状态为第一支付状态的情况:支付系统在扣款成功之后,由于某些原因,比如管理系统崩溃,所以向管理系统发送的收款信息并没有发送成功,于是,支付状态仍停留在第一支付状态,显然,当支付系统处于第一支付状态,收款系统是不会收到收款信息的,所以支付系统需要继续向管理系统发送收款信息,以使所述管理系统将该收款信息发送至收款系统;或者,收款消息成功发送给了管理系统,管理系统也发送给了收款系统,但是,支付系统以为收款信息没有发送成功,于是,支付状态仍停留在第一支付状态。For the case where the payment status is the first payment status: after the payment system is successfully deducted, due to some reasons, such as the collapse of the management system, the payment information sent to the management system has not been successfully sent, so the payment status remains at The first payment state. Obviously, when the payment system is in the first payment state, the collection system will not receive the collection information, so the payment system needs to continue to send the collection information to the management system, so that the management system will The payment information was sent to the collection system; or, the payment message was successfully sent to the management system, and the management system was also sent to the collection system, but the payment system thought that the payment information was not successfully sent, so the payment status remained at The first payment status.
在这里,为了保证支付系统清楚的知晓管理系统已经接收到了收款信息,管理系统在接收到收款信息之后,向支付系统发送确认接收信息,这样,支付系统在接收到管理系统发送的确认接收信息之后,根据该确认接收信息,将支付状态由第一支付状态修改为第二支付状态。Here, in order to ensure that the payment system clearly knows that the management system has received the payment information, the management system sends confirmation receipt information to the payment system after receiving the payment information, so that the payment system receives the confirmation receipt sent by the management system After the information, the payment status is modified from the first payment status to the second payment status according to the confirmation reception information.
对于支付状态为第二支付状态的情况,管理系统虽然成功的收到了支付系统在扣款成功之后发送的收款信息,但是,支付系统并没有收到管理系统发送的确认收款信息,即支付系统并不清楚收款系统是否已经完成了收款,所以,此时,也需要继续向管理系统发送收款信息,这样,使得收款系统在收到收款信息之后向管理系统反馈确认收款信息。For the case where the payment status is the second payment status, although the management system successfully receives the payment information sent by the payment system after the deduction is successful, the payment system does not receive the confirmation payment information sent by the management system, that is, payment The system is not clear whether the collection system has completed the collection, so at this time, it is also necessary to continue to send collection information to the management system, so that the collection system feeds back to the management system to confirm the collection after receiving the collection information information.
进一步的,如图7所示,所述收款信息包括交易号,在所述支付系统继续向所述管理系统发送所述收款信息,以使所述管理系统将该收款信息发送至收款系统之后,还包括:Further, as shown in FIG. 7, the payment information includes a transaction number, and the payment system continues to send the payment information to the management system, so that the management system sends the payment information to the collection After the payment system, it also includes:
步骤710,所述收款系统根据所述交易号判断多个收款信息是否为同一收款信息,若是同一收款信息,则根据所述收款消息确认表中与该收款信息对应的收款状态执行对应的操作,所述对应的操作包括:步骤710A,若该收款状态为第二收款状态,则向所述管理系统发送确认收款信息;步骤710B,若该收款状态为第一收款状态,则执行与该收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息。Step 710, the collection system determines whether the multiple collection information is the same collection information according to the transaction number, and if the collection information is the same, the collection information corresponding to the collection information in the collection message confirmation table Perform corresponding operations on the payment status. The corresponding operations include: Step 710A, if the payment status is the second payment status, send confirmation payment information to the management system; Step 710B, if the payment status is In the first collection state, the collection operation corresponding to the collection information is executed. After the collection operation is successfully performed, the collection state corresponding to the collection information in the collection message confirmation table is determined by the first collection The status is changed to the second collection status, and confirmation payment information is sent to the management system.
所述交易号,用于唯一标识一个电子支付交易,所述交易号,由数字和/或字符和/或字母组成,例如,所述交易号为512789tyu07k-tagw45-0ooo0。The transaction number is used to uniquely identify an electronic payment transaction. The transaction number is composed of numbers and/or characters and/or letters. For example, the transaction number is 512789tyu07k-tagw45-0ooo0.
由于支付系统向管理系统发送了至少两次收款信息,所以收款系统会接收到多个同样的收款信息,此时,就需要判断收款系统有没有根据之前接收到的收款信息执行收款操作,包括两种情况:一、收款系统已经根据之前接收到的收款信息执行了收款操作,此时收款状态为第二收款状态,于是,向管理系统发送确认收款信息,这样,通过管理系统反馈的确认收款信息,支付系统就能够知晓收款系统已经进行了收款,相应的,支付系统将支付状态修改为第三支付状态,不用再向管理系统发送收款信息了;二、收款系统之前已经接收到了收款信息,但是由于某些原因,并没有执行收款操作,此时,收款状态为第一收款状态,于是,根据收款信息,执行与该收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息。Since the payment system sends the collection information to the management system at least twice, the collection system will receive multiple same collection information. At this time, it is necessary to determine whether the collection system is executed according to the previously received collection information The collection operation includes two cases: 1. The collection system has executed the collection operation according to the previously received payment information, and the collection status is now the second collection status, so it sends a confirmation receipt to the management system Information, in this way, the payment system can know that the payment system has received the payment through the confirmation payment information fed back by the management system. Accordingly, the payment system changes the payment status to the third payment status without sending the payment to the management system. Payment information; 2. The collection system has received the payment information before, but due to some reasons, the payment operation has not been performed, at this time, the payment status is the first payment status, so, according to the payment information, Perform a collection operation corresponding to the collection information, and after the collection operation is successfully performed, modify the collection status corresponding to the collection information in the collection message confirmation table from the first collection status to the second collection Status, sending confirmation payment information to the management system.
作为本发明一种可选的实施例,所述方法还包括:As an optional embodiment of the present invention, the method further includes:
若在第二预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则所述支付系统根据所述支付请求生成回款请求,以通过所述回款请求抵消扣款,并将与所述支付请求对应的支付状态修改为第四支付状态。If the payment state corresponding to the payment request in the payment message confirmation table within the second preset time is the first payment state or the second payment state, the payment system generates a rebate request according to the payment request, In order to offset the deduction through the repayment request, and modify the payment status corresponding to the payment request to the fourth payment status.
所述第二预设时间,可以设置为较长的一个时间;所述第四支付状态,表示已扣款且已回款的状态,通过第四支付状态能够知晓虽然已经进行了扣款,但是由于某些原因对方没有收款,于是将扣除的款项又给用户加了回去。The second preset time may be set to a longer time; the fourth payment state indicates the state of deduction and payment has been received, and the fourth payment state can be known that although the deduction has been made, but For some reason, the other party did not receive the payment, so the deduction was added back to the user.
在这里,若支付系统完成了扣款,但是由于某些原因,比如管理系统原因(管理系统长时处于故障,此时支付状态为第一支付状态),或者收款系统原因(收款系统长时处于故障,此时支付状态为第二支付状态),收款操作并没有执行,或者已经执行了收款操作,但是支付系统并没有收到确认收款信息,于是,为了不耽误扣款用户的资金的使用,需要将扣除的款项再给用户加回去,同时将与所述支付请求对应的支付状态修改为第四支付状态。Here, if the payment system completes the deduction, but due to some reasons, such as the management system (the management system is in a long-term failure, and the payment status is the first payment state at this time), or the payment system (the collection system is long) Is in trouble, and the payment status is the second payment status at this time), the payment operation has not been performed, or the payment operation has been performed, but the payment system has not received the confirmation payment information, so in order not to delay the deduction of the user The use of the funds needs to add the deducted money back to the user, and at the same time modify the payment status corresponding to the payment request to the fourth payment status.
作为本发明一种可选的实施例,为了防止在修改为第四支付状态的时候,收款系统又根据之前接收到的收款信息执行了收款操作或者准备执行收款操作,所以,在所述支付系统根据所述支付请求生成回款请求之前,还包括:As an optional embodiment of the present invention, in order to prevent the payment collection system from performing payment collection operations or preparing to perform payment collection operations based on previously received payment information when it is modified to the fourth payment state, Before the payment system generates a payment request according to the payment request, the method further includes:
根据所述支付请求生成收款取消消息,将所述收款取消消息发送至所述管理系统;Generating a payment cancellation message according to the payment request, and sending the payment cancellation message to the management system;
所述管理系统将所述收款取消消息发送至所述收款系统,以通知所述收款系统不执行与所述收款信息对应的收款操作。The management system sends the collection cancellation message to the collection system to notify the collection system that the collection operation corresponding to the collection information is not to be performed.
所述收款取消消息,用于指示收款系统不根据收款信息执行收款操作,或者如果收款系统已经执行了收款操作,则指示收款系统将增加的款项再重新收回。所述收款取消消息的内容,可以包括但不限于扣款系统(例如,银行名称)、扣款账号(例如,银行卡号)、扣款金额、扣款人姓名、收款账号(例如,银行卡号)、收款系统(例如,银行名称)、收款人姓名、交易号(唯一标识一个交易)和消息标识(指示收款系统,如果接收到了该消息,则停止收款操作或者不进行收款操作)。The collection cancellation message is used to instruct the collection system not to perform the collection operation according to the collection information, or if the collection system has performed the collection operation, instruct the collection system to recover the increased amount again. The content of the payment cancellation message may include, but is not limited to, a deduction system (for example, bank name), a deduction account number (for example, a bank card number), a deduction amount, a deductor's name, and a collection account number (for example, a bank Card number), collection system (for example, bank name), payee name, transaction number (uniquely identifies a transaction), and message identification (indicating the collection system, if the message is received, stop the collection operation or not receive Operation).
作为本发明一种可选的实施例,为了保证支付系统的收款信息能够正常的发送至管理系统,支付系统先向管理系统发送准备消息,查看管理系统当前是否处于正常状态(是否系统故障或者消息太多处理不过来),若管理系统回复了该准备消息,表明管理系统当前正常,可以向它发送收款信息了。具体的,所述支付系统在接收到支付请求时执行与所述支付请求对应的扣款操作,包括:As an optional embodiment of the present invention, in order to ensure that the payment information of the payment system can be sent to the management system normally, the payment system first sends a preparation message to the management system to check whether the management system is currently in a normal state (whether the system is faulty or Too many messages cannot be processed). If the management system replies to the preparation message, it indicates that the management system is currently normal and can send payment information to it. Specifically, when the payment system receives the payment request, the deduction operation corresponding to the payment request is performed, including:
所述支付系统在接收到支付请求时,向所述管理系统发送准备信息;When receiving the payment request, the payment system sends preparation information to the management system;
所述管理系统根据所述准备信息向所述支付系统发送回答信息;The management system sends answer information to the payment system according to the preparation information;
所述支付系统根据所述回答信息执行与所述支付请求对应的扣款操作。The payment system performs a deduction operation corresponding to the payment request according to the answer information.
所述准备消息,可以由数字和/或字符和/或字母组成,例如,准备消息为:zhunbeihaolema-0*0*;所述回答消息,可以由数字和/或字符和/或字母组成,例如,准备消息为:zhunbeihaole-0*0*。The preparation message may be composed of numbers and/or characters and/or letters, for example, the preparation message is: zhunbeihaolema-0*0*; the answer message may be composed of numbers and/or characters and/or letters, for example , The preparation message is: zhunbeihaole-0*0*.
在这里,支付系统接收到了回答信息之后,开始执行与支付请求对应的扣款操作。Here, after receiving the reply information, the payment system starts to perform the deduction operation corresponding to the payment request.
作为本发明一种可选的实施例,当支付消息确认表中的支付状态为第三支付状态或者第四支付状态时,删除该支付状态对应的电子支付交易记录,以降低支付消息确认表的数据量。As an optional embodiment of the present invention, when the payment state in the payment message confirmation table is the third payment state or the fourth payment state, the electronic payment transaction record corresponding to the payment state is deleted to reduce the payment message confirmation table The amount of data.
本发明实施例所述的电子支付交易系统和电子支付交易方法属于同一发明构思,电子支付交易系统和电子支付交易方法中的内容可相互适用。The electronic payment transaction system and the electronic payment transaction method described in the embodiments of the present invention belong to the same inventive concept, and the content in the electronic payment transaction system and the electronic payment transaction method can be mutually applicable.
本发明方法实施例中所述的步骤也不用于指示执行的先后顺序,只是为了指明本发明所述的电子支付交易方法包含有哪些具体的步骤。The steps described in the method embodiments of the present invention are also not used to indicate the order of execution, just to indicate which specific steps are included in the electronic payment transaction method described in the present invention.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art may understand that all or part of the processes in the method of the foregoing embodiments may be completed by instructing relevant hardware through a computer program, and the program may be stored in a non-volatile computer-readable storage medium In this case, when the program is executed, it may include the flow of the above-mentioned method embodiments. Wherein, any reference to the memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be arbitrarily combined. In order to simplify the description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered as the scope described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiment only expresses several implementation manners of the present application, and its description is more specific and detailed, but it cannot be understood as a limitation of the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, a number of modifications and improvements can also be made, which all fall within the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be subject to the appended claims.

Claims (10)

  1. 一种电子支付交易系统,其特征在于,所述系统包括:An electronic payment transaction system, characterized in that the system includes:
    支付系统、管理系统和收款系统;Payment system, management system and collection system;
    所述支付系统用于在接收到支付请求时执行与所述支付请求对应的扣款操作,在扣款操作执行成功之后,向所述管理系统发送收款信息,以使所述管理系统将所述收款信息发送至对应的收款系统;所述支付系统还用于在向所述管理系统发送收款信息之后,将支付消息确认表中与所述支付请求对应的支付状态由第一支付状态修改为第二支付状态;The payment system is used to perform a deduction operation corresponding to the payment request when the payment request is received, and after successful execution of the deduction operation, send payment information to the management system so that the management system The payment information is sent to the corresponding payment system; the payment system is also used to send the payment information to the management system, the payment status corresponding to the payment request in the payment message confirmation table is paid by the first payment The status is changed to the second payment status;
    所述收款系统还用于根据所述收款信息执行与所述收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息;The collection system is also used to perform a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the payment collection message confirmation table corresponding to the collection information The payment collection status is changed from the first payment collection status to the second payment collection status, and confirmation payment information is sent to the management system;
    所述管理系统用于将所述确认收款信息发送至所述支付系统,以使所述支付系统根据所述确认收款信息将所述支付消息确认表中与所述支付请求对应的第二支付状态修改为第三支付状态。The management system is used to send the confirmed payment information to the payment system, so that the payment system according to the confirmed payment information, the second in the payment message confirmation table corresponding to the payment request The payment status is modified to the third payment status.
  2. 如权利要求1所述的系统,其特征在于,所述支付系统还用于若在第一预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则继续向所述管理系统发送所述收款信息,以使所述管理系统将该收款信息发送至收款系统。The system according to claim 1, wherein the payment system is further used if the payment status corresponding to the payment request in the payment message confirmation table within the first preset time is the first payment status or In the second payment state, the payment information continues to be sent to the management system, so that the management system sends the payment information to the payment system.
  3. 如权利要求2所述的系统,其特征在于,所述收款信息包括交易号,所述收款系统还用于根据所述交易号判断多个收款信息是否为同一收款信息,若是同一收款信息,则根据所述收款消息确认表中与该收款信息对应的收款状态执行对应的操作,所述对应的操作包括:若该收款状态为第二收款状态,则向所述管理系统发送确认收款信息;若该收款状态为第一收款状态,则执行与该收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息。The system according to claim 2, wherein the collection information includes a transaction number, and the collection system is further configured to determine whether a plurality of collection information is the same collection information based on the transaction number, if the collection information is the same Receiving information, the corresponding operation is performed according to the receiving status corresponding to the receiving information in the receiving message confirmation table, and the corresponding operation includes: if the receiving status is the second receiving status, then The management system sends confirmation payment information; if the collection status is the first collection status, the collection operation corresponding to the collection information is executed, and after the collection operation is successfully executed, the collection message confirmation table The payment status corresponding to the payment information is changed from the first payment status to the second payment status, and confirmation payment information is sent to the management system.
  4. 如权利要求2所述的系统,其特征在于,所述支付系统还用于若在第二预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则根据所述支付请求生成回款请求,以通过所述回款请求抵消扣款,并将与所述支付请求对应的支付状态修改为第四支付状态。The system according to claim 2, wherein the payment system is further used if the payment status corresponding to the payment request in the payment message confirmation table in the second preset time is the first payment status or In the second payment state, a rebate request is generated according to the payment request to offset the deduction through the rebate request, and the payment state corresponding to the payment request is modified to a fourth payment state.
  5. 如权利要求4所述的系统,其特征在于,所述支付系统还用于若在第二预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则根据所述支付请求生成收款取消消息,将所述收款取消消息发送至所述管理系统;The system according to claim 4, wherein the payment system is further used if the payment status corresponding to the payment request in the payment message confirmation table in the second preset time is the first payment status or In the second payment state, a payment cancellation message is generated according to the payment request, and the payment cancellation message is sent to the management system;
    所述管理系统还用于将所述收款取消消息发送至所述收款系统,以通知所述收款系统不执行与所述收款信息对应的收款操作。The management system is also used to send the collection cancellation message to the collection system to notify the collection system not to perform the collection operation corresponding to the collection information.
  6. 如权利要求1至5任一项所述的系统,其特征在于,所述支付系统还用于在接收到支付请求时向所述管理系统发送准备信息;The system according to any one of claims 1 to 5, wherein the payment system is further configured to send preparation information to the management system when a payment request is received;
    所述管理系统还用于根据所述准备信息向所述支付系统发送回答信息,以使所述支付系统根据所述回答信息执行与所述支付请求对应的扣款操作。The management system is further configured to send answer information to the payment system according to the preparation information, so that the payment system performs a deduction operation corresponding to the payment request according to the answer information.
  7. 一种电子支付交易方法,其特征在于,包括:An electronic payment transaction method, characterized in that it includes:
    支付系统在接收到支付请求时执行与所述支付请求对应的扣款操作,在扣款操作执行成功之后,向管理系统发送收款信息,以使所述管理系统将所述收款信息发送至对应的收款系统,在向所述管理系统发送收款信息之后,将支付消息确认表中与所述支付请求对应的支付状态由第一支付状态修改为第二支付状态;The payment system executes the deduction operation corresponding to the payment request when receiving the payment request, and after the deduction operation is successfully executed, sends the collection information to the management system, so that the management system sends the collection information to The corresponding payment system, after sending the payment information to the management system, modify the payment state corresponding to the payment request in the payment message confirmation table from the first payment state to the second payment state;
    所述收款系统根据所述收款信息执行与所述收款信息对应的收款操作,在收款操作执行成功之后,将收款消息确认表中与所述收款信息对应的收款状态由第一收款状态修改为第二收款状态,向所述管理系统发送确认收款信息;The collection system executes a collection operation corresponding to the collection information according to the collection information, and after the collection operation is successfully performed, the collection status of the collection message corresponding to the collection information in the collection message confirmation table Modify the first collection status to the second collection status, and send confirmation payment information to the management system;
    所述管理系统将所述确认收款信息发送至所述支付系统,以使所述支付系统根据所述确认收款信息将所述支付消息确认表中与所述支付请求对应的第二支付状态修改为第三支付状态。The management system sends the confirmation payment information to the payment system, so that the payment system sends the second payment status corresponding to the payment request in the payment message confirmation table according to the confirmation payment information Change to the third payment status.
  8. 如权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    若在第一预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则所述支付系统继续向所述管理系统发送所述收款信息,以使所述管理系统将该收款信息发送至收款系统。If the payment status corresponding to the payment request in the payment message confirmation table is the first payment status or the second payment status within the first preset time, the payment system continues to send the payment to the management system Payment information, so that the management system sends the collection information to the collection system.
  9. 如权利要求8所述的方法,其特征在于,所述方法还包括:The method of claim 8, wherein the method further comprises:
    若在第二预设时间内所述支付消息确认表中与所述支付请求对应的支付状态为第一支付状态或第二支付状态,则所述支付系统根据所述支付请求生成回款请求,以通过所述回款请求抵消扣款,并将与所述支付请求对应的支付状态修改为第四支付状态。If the payment state corresponding to the payment request in the payment message confirmation table in the second preset time is the first payment state or the second payment state, the payment system generates a payment request according to the payment request, In order to offset the deduction through the repayment request, and modify the payment status corresponding to the payment request to the fourth payment status.
  10. 如权利要求7至9任一项所述的方法,其特征在于,所述支付系统在接收到支付请求时执行与所述支付请求对应的扣款操作,包括:The method according to any one of claims 7 to 9, wherein the payment system performs a deduction operation corresponding to the payment request when receiving the payment request, including:
    所述支付系统在接收到支付请求时,向所述管理系统发送准备信息;When receiving the payment request, the payment system sends preparation information to the management system;
    所述管理系统根据所述准备信息向所述支付系统发送回答信息;The management system sends answer information to the payment system according to the preparation information;
    所述支付系统根据所述回答信息执行与所述支付请求对应的扣款操作。The payment system performs a deduction operation corresponding to the payment request according to the answer information.
PCT/CN2018/124173 2018-12-27 2018-12-27 Electronic payment transaction system and method WO2020133028A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/124173 WO2020133028A1 (en) 2018-12-27 2018-12-27 Electronic payment transaction system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/124173 WO2020133028A1 (en) 2018-12-27 2018-12-27 Electronic payment transaction system and method

Publications (1)

Publication Number Publication Date
WO2020133028A1 true WO2020133028A1 (en) 2020-07-02

Family

ID=71127405

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/124173 WO2020133028A1 (en) 2018-12-27 2018-12-27 Electronic payment transaction system and method

Country Status (1)

Country Link
WO (1) WO2020133028A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582150A (en) * 2009-06-19 2009-11-18 北京用友移动商务科技有限公司 Method and system for revising payment status messages
CN101655948A (en) * 2008-08-20 2010-02-24 阿里巴巴集团控股有限公司 Online trading method and online trading system
CN103647669A (en) * 2013-12-16 2014-03-19 上海证券交易所 System and method for guaranteeing distributed data processing consistency
CN105279645A (en) * 2015-05-21 2016-01-27 维沃移动通信有限公司 Mobile payment method, mobile terminal and mobile payment system
CN106656969A (en) * 2016-10-13 2017-05-10 上海众人网络安全技术有限公司 Payment state management method and system thereof, and network payment system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655948A (en) * 2008-08-20 2010-02-24 阿里巴巴集团控股有限公司 Online trading method and online trading system
CN101582150A (en) * 2009-06-19 2009-11-18 北京用友移动商务科技有限公司 Method and system for revising payment status messages
CN103647669A (en) * 2013-12-16 2014-03-19 上海证券交易所 System and method for guaranteeing distributed data processing consistency
CN105279645A (en) * 2015-05-21 2016-01-27 维沃移动通信有限公司 Mobile payment method, mobile terminal and mobile payment system
CN106656969A (en) * 2016-10-13 2017-05-10 上海众人网络安全技术有限公司 Payment state management method and system thereof, and network payment system

Similar Documents

Publication Publication Date Title
US11037164B2 (en) Event processing method, apparatus and electronic device based on blockchain technology
US10410190B1 (en) Network of computing nodes and a method of operating the computing nodes to effectuate real-time bank account-to-bank account money transfer
US10158703B2 (en) Resource allocation and transfer utilizing holds and a distributed network
EP3815298A1 (en) Event processing method, apparatus and electronic device based on blockchain technology
WO2018192430A1 (en) Bidding service receipt processing method and device, computer device and storage medium
CN101706935A (en) Method, device and system for acting deposit and management service of third party
CN110659993A (en) Resource management method and device based on block chain network
JP2016146179A (en) Electronic recording credit processing system, method and program
US20210035073A1 (en) Multi-Party Digital Check
CN111783151A (en) Management method and device of block chain account book and computer equipment
US11403603B2 (en) Method and apparatus for transferring resource in batches
WO2016026381A1 (en) Method and device for numerical value information transfer
US8073775B1 (en) Method and system for using an electronic check system
WO2020133028A1 (en) Electronic payment transaction system and method
CN111681053A (en) Receiving and paying chain construction method and device, computer equipment and readable storage medium
CA2970301A1 (en) Improved network for onboarding and delivery of electronic payments to payees
CN111383006B (en) Electronic payment transaction system and method
CN115641122A (en) Virtual resource processing method, device, equipment, medium and computer program product
US11520802B2 (en) Systems and methods for data format conversion
CN110852864B (en) Digital resource amount processing method, device and storage medium
KR102373883B1 (en) Method of providing transaction histories of cryptocurrency in real time
CN117254958A (en) Method, device, equipment and storage medium for processing resource interaction service
US20230086321A1 (en) Check-based initiation of electronic transfers
Eppler et al. Non-Committee Review: Expedite Approval
CN118152476A (en) Service processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18945269

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18945269

Country of ref document: EP

Kind code of ref document: A1