CN117291586A - Payment exception handling method and system - Google Patents
Payment exception handling method and system Download PDFInfo
- Publication number
- CN117291586A CN117291586A CN202311061363.1A CN202311061363A CN117291586A CN 117291586 A CN117291586 A CN 117291586A CN 202311061363 A CN202311061363 A CN 202311061363A CN 117291586 A CN117291586 A CN 117291586A
- Authority
- CN
- China
- Prior art keywords
- oiling
- fueling
- payment
- information
- order
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000009467 reduction Effects 0.000 claims abstract description 44
- 238000012545 processing Methods 0.000 claims abstract description 31
- 230000007246 mechanism Effects 0.000 claims abstract description 27
- 230000000977 initiatory effect Effects 0.000 claims abstract description 19
- 230000008569 process Effects 0.000 claims abstract description 10
- 238000012790 confirmation Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 abstract description 16
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 230000005856 abnormality Effects 0.000 description 7
- 239000000446 fuel Substances 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000003672 processing method Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/085—Payment architectures involving remote charge determination or related payment systems
- G06Q20/0855—Payment architectures involving remote charge determination or related payment systems involving a third party
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/34—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
- G06Q20/341—Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/34—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
- G06Q20/352—Contactless payments by cards
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Finance (AREA)
- Software Systems (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Economics (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- General Engineering & Computer Science (AREA)
- Loading And Unloading Of Fuel Tanks Or Ships (AREA)
Abstract
The invention provides a payment exception handling method and a payment exception handling system, wherein the method comprises the following steps: obtaining a transaction mechanism of order payment according to the sequence of the oiling order generation operation, the inventory reduction operation, the payment initiation operation and the deduction operation; wherein each of the fueling order generation operation, the inventory reduction operation, the initiate payment operation, and the deduction operation is as one atomic transaction; storing a transaction mechanism for order payment; and when the next atomic transaction of the current atomic transaction is not received within the preset first duration, the current previous atomic transaction is revoked. Thus, after the fueling device is authorized to refuel, an automatic refuel may be made if the communications module of the fueling device fails. If the payment process is abnormal, such as unsuccessful payment, repeated payment and the like, the transaction mechanism of order payment can be utilized for processing, and the occurrence of error payment such as repeated payment and the like is avoided.
Description
The present application is a divisional application of chinese patent application with application number "202010312283.9", application number "payment abnormality processing method and system", 20 th day of the year 2020.
Technical Field
The invention relates to the field of data processing, in particular to a payment exception handling method and a payment exception handling system.
Background
In the non-inductive payment system, the problem of abnormal payment is caused by the fact that the ordering is successful and the stock is not reduced, the payment is unsuccessful or the repeated payment occurs due to some reasons, such as network delay problem, program logic problem, concurrency and the like.
Disclosure of Invention
The embodiment of the invention aims to provide a payment abnormality processing method and system, which are used for solving the problem of payment abnormality in the prior art.
To solve the above problems, in a first aspect, the present invention provides a payment anomaly processing method, including:
obtaining a transaction mechanism of order payment according to the sequence of the oiling order generation operation, the inventory reduction operation, the payment initiation operation and the deduction operation; wherein each of the fueling order generation operation, the inventory reduction operation, the initiate payment operation, and the deduction operation is as one atomic transaction;
storing a transaction mechanism for payment of the order;
and when the next atomic transaction of the current atomic transaction is not received within the preset first duration, the current previous atomic transaction is revoked.
In one possible implementation, the method further includes before:
receiving a refueling request message sent by a refueling device; the fueling request message includes a tag ID and a fueling device ID;
inquiring a preset comparison table according to the tag ID, and determining target user account information corresponding to the tag ID; the target user account information includes fueling data;
generating an authorized fueling message according to the fueling data;
according to the oiling equipment ID, the authorized oiling message is sent to oiling equipment corresponding to the oiling equipment ID;
and after the oiling is completed, receiving an oiling completion message sent by the oiling device.
In one possible implementation manner, after the sending the authorized fueling message to the fueling device corresponding to the fueling device ID according to the fueling device ID, the method further comprises:
when the oiling completion message sent by the oiling device is not received within a preset second duration, or after the oiling completion message is received, calculating the oiling amount according to the oiling data, the oiling amount, the oiling device ID, the tag ID and the oiling time information, performing oiling order generation operation according to the oiling data, the oiling amount, the oiling device ID and the oiling time information, and generating oiling order information;
according to the oiling data in the oiling order information, inventory reduction operation is carried out to obtain inventory information;
after encrypting the oiling order information, initiating payment operation, and sending the encrypted oiling order information to a third party server, so that the third party server decrypts the oiling order information, then performs deduction operation, and generates oiling evidence information after deduction operation; the oiling certificate information comprises an actual payment amount and a payment account;
and receiving the oiling certificate information sent by the third-party server.
In one possible implementation manner, when the next atomic transaction of the current atomic transaction is not received within the preset first duration, the revoking the current previous atomic transaction specifically includes:
after the oiling order generation operation is performed, the stock reduction operation is not performed, and then the oiling order information generated by the oiling order generation operation is withdrawn; or,
after the inventory reduction operation is carried out, if the payment initiation operation is not carried out, the oiling order information generated by the oiling order generation operation and the inventory information generated by the inventory reduction operation are withdrawn; or,
and when the payment operation is initiated, the refuel order information generated by the refuel order generation operation, the inventory information generated by the inventory reduction operation and the encrypted refuel order information generated by the payment operation are withdrawn when the deduction operation is not executed.
In one possible implementation, the method further includes, thereafter, generating a query request message for querying whether to perform a fueling operation, the query request message including a fueling device ID;
sending the inquiry request message to the oiling equipment corresponding to the oiling equipment ID;
receiving a confirmation refueling message sent by the refueling equipment;
and continuing to execute the oiling order generation operation according to the oiling confirmation message.
In a second aspect, the present invention provides a payment anomaly handling system, the system comprising:
the processing module is used for obtaining a transaction mechanism of order payment according to the sequence of the oiling order generation operation, the stock reduction operation, the payment initiation operation and the deduction operation; wherein each of the fueling order generation operation, the inventory reduction operation, the initiate payment operation, and the deduction operation is as one atomic transaction;
the storage module is used for storing a transaction mechanism of the order payment;
the processing module is further configured to cancel a current previous atomic transaction when a next atomic transaction of the current atomic transaction is not received within a preset first duration.
In one possible implementation, the system further includes:
the receiving module is used for receiving a refueling request message sent by the refueling equipment; the fueling request message includes a tag ID and a fueling device ID;
the determining module is used for inquiring a preset comparison table according to the tag ID and determining target user account information corresponding to the tag ID; the target user account information includes fueling data;
the processing module is used for generating an authorized oiling message according to the oiling data;
the sending module is used for sending the authorized oiling message to oiling equipment corresponding to the oiling equipment ID according to the oiling equipment ID;
the receiving module is also used for receiving a refueling completion message sent by the refueling equipment after the refueling is completed.
In a possible implementation manner, the processing module is further configured to, when the fueling completion message sent by the fueling device is not received within a preset second duration, or after the fueling completion message is received, calculate a fueling amount according to the fueling data, the fueling amount, the fueling device ID, the tag ID, and the fueling time information, perform a fueling order generating operation, and generate fueling order information;
according to the oiling data in the oiling order information, inventory reduction operation is carried out to obtain inventory information;
after encrypting the oiling order information, initiating payment operation, and sending the encrypted oiling order information to a third party server, so that the third party server decrypts the oiling order information, then performs deduction operation, and generates oiling evidence information after deduction operation; the oiling certificate information comprises an actual payment amount and a payment account;
the receiving module is also used for receiving the oiling certificate information sent by the third party server.
In one possible implementation manner, the processing module is specifically configured to:
after the oiling order generation operation is performed, the stock reduction operation is not performed, and then the oiling order information generated by the oiling order generation operation is withdrawn; or,
after the inventory reduction operation is carried out, if the payment initiation operation is not carried out, the oiling order information generated by the oiling order generation operation and the inventory information generated by the inventory reduction operation are withdrawn; or,
and when the payment operation is initiated, the refuel order information generated by the refuel order generation operation, the inventory information generated by the inventory reduction operation and the encrypted refuel order information generated by the payment operation are withdrawn when the deduction operation is not executed.
In one possible implementation, the processing module is further configured to generate a query request message for querying whether to perform a fueling operation, where the query request message includes a fueling device ID;
the sending module is further configured to send the query request message to a fueling device corresponding to the fueling device ID;
the receiving module is also used for receiving a confirmation refueling message sent by the refueling equipment;
the processing module is further configured to continue executing the fueling order generation operation according to the confirm fueling message.
In a third aspect, the invention provides an apparatus comprising a memory for storing a program and a processor for performing the method of any of the first aspects.
In a fourth aspect, the present invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method according to any of the first aspects.
In a fifth aspect, the present invention provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements a method according to any of the first aspects.
By applying the payment exception handling method and the payment exception handling system provided by the embodiment of the invention, after the oiling equipment is authorized to be oiled, if the communication module of the oiling equipment has a fault, automatic deduction can be performed. And when the communication module of the oiling device has no fault, if the abnormality exists in the payment process, such as unsuccessful payment, repeated payment and the like, the transaction mechanism of order payment can be utilized for processing, thereby avoiding the occurrence of error payment such as repeated payment and the like.
Drawings
Fig. 1 is a schematic flow chart of a payment anomaly handling method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a payment exception handling system according to a second embodiment of the present invention.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The first, second, etc. numbers are merely distinguished and have no other meaning.
Fig. 1 is a flowchart of a payment anomaly handling method according to an embodiment of the present invention. The method is applied to a scene of filling oil in a filling station. The execution subject of the method is a Point of sale (POS) server with a calculation processing function. As shown in fig. 1, the method comprises the steps of:
step 110, obtaining a transaction mechanism of order payment according to the sequence of the oiling order generation operation, the inventory reduction operation, the payment initiation operation and the deduction operation; wherein each of the fueling order generation operation, the inventory reduction operation, the initiate payment operation, and the deduction operation is as one atomic transaction.
Specifically, in payment, a transaction mechanism may be cited, and since a transaction has Atomicity (atom), consistency (Consistency), isolation (Isolation), persistence (Durability), a plurality of operations in the transaction are an integral atomic unit, only if all operations are executed successfully, the whole transaction is submitted, and a group of operations (a plurality of atomic transactions) in the same transaction must all succeed (or all fail); once a transaction commits successfully, all data operations in the transaction must be persisted into the database.
Thus, a plurality of operations in the fueling payment process are sequentially formed into a transaction mechanism for order payment. Wherein each operation can be an atomic transaction. Thus, the problems in the order payment process are combined with the transaction mechanism, thereby forming a new mechanism, namely the transaction mechanism of order payment.
Step 120, storing a transaction mechanism for order payment.
For a transaction mechanism for a set order payment, it may be stored in a server and a fixed time period between each atomic thing is set.
And 130, when the next atomic transaction of the current atomic transaction is not received within the preset first duration, the current previous atomic transaction is revoked.
Specifically, when the next operation is not received within the preset first duration, the current previous operation can be cancelled, so that the occurrence of repeated payment is avoided.
Specifically, this step may include the following three cases:
first, when the stock reduction operation is not performed after the fueling order generating operation is performed, the fueling order information generated by the fueling order generating operation is revoked.
Second, when the stock-reducing operation is performed, the payment initiation operation is not performed, and then the fueling order information generated by the fueling order generation operation and the stock information generated by the stock-reducing operation are cancelled.
Thirdly, when payment operation is initiated and payment deduction operation is not executed, the oiling order information generated by the oiling order generation operation, the inventory information generated by the inventory reduction operation and the encrypted oiling order information generated by the payment operation are withdrawn.
In one example, if the payment initiation fails due to the exception occurring in the "inventory reduction operation- > payment initiation operation" stage, according to the transaction mechanism of the order payment, the atomic transaction before that will be rolled back, i.e. reduced inventory is restored, the generated order is invalidated, so that the occurrence of abnormal situations such as waste order and inventory error reduction caused by the unpaid order is avoided, and the abnormal situation in the payment process is avoided.
Further, the method can further comprise the following steps:
firstly, receiving a refueling request message sent by a refueling device; the fueling request message includes a tag ID and a fueling device ID; then, inquiring a preset comparison table according to the tag ID, and determining target user account information corresponding to the tag ID; the target user account information includes fueling data; secondly, generating an authorized refueling message according to the refueling data; then, according to the oiling device ID, sending an authorized oiling message to the oiling device corresponding to the oiling device ID; and finally, after the oiling is completed, receiving an oiling completion message sent by the oiling device.
The fueling device IDs may include a fueling station ID and a fueling gun ID, and the fueling station ID may be a number of fueling stations each having a unique number. For example, the gas station number may be "1110".
The oil gun ID may include the number of the oil gun, and the oil gun may be divided into oil guns with different numbers according to the corresponding gasoline types, for example, 001 may correspond to 92 # gasoline, 002 may correspond to 95 # gasoline, and each oiling machine may have one or more oil guns, where when there are multiple oil guns, these oil guns may correspond to the same type of gasoline, and may also correspond to different types of gasoline. The structure of the gun ID may be a gas station id+a fuel dispenser id+a gun number, for example, "1110012001" may mean: by the gas station number "1110", the fuel dispenser number "012", and the gun number "001", it is possible to obtain which gun is located under which fuel dispenser in the gas station by the gun ID.
In this application, the received fueling request message may be sent by a card reader device on the fuel gun or by the fuel dispenser. The oiling machine is provided with a communication module and a processing module. The communication module in the oiling machine can carry out data transmission with the server and the oil gun.
When the oil filling request message is sent by the card reader on the oil gun, the card reader is arranged on the oil gun of the oil filling station, and the card reader comprises a card reader, a communication module and a memory, wherein the memory can store the ID of the oil filling station and the ID of the oil gun. The card reader can read and decode the label on the oil tank cover of the vehicle to obtain the label ID, and the communication module in the oil gun can package the label ID, the gas station ID in the memory and the oil gun ID to generate an oil filling request message and send the oil filling request message to the server.
When the oiling request message is sent by the card reader on the oil gun, the card reader is arranged on the oil gun of the gas station and comprises a card reader and a communication module, the card reader can read and decode a label on the oil tank cover of the vehicle to obtain a label ID, the communication module in the oil gun can send the label ID to the communication module in the oiling machine, and the processing module on the oiling machine packages the oiling request message generated by the oil station ID, the oil gun ID and the label ID and sends the oiling request message to the server.
Wherein the tag may be a radio frequency identification (Radio Frequency Identification, RFID) tag.
One tag ID may correspond to one piece of vehicle information including a vehicle identification (Identity document, ID) and vehicle type information. The vehicle ID is a unique vehicle identifier, which may be a license plate number or a globally unique number of the vehicle.
One tag ID corresponds to one piece of vehicle information, and one user may have one or more vehicles, that is, one user may have one tag ID or may have a plurality of tag IDs, but one user corresponds to only one piece of user account information. Therefore, after receiving the oiling request message, the server unpacks the oiling request message, determines the user account information corresponding to the tag ID according to the tag ID, and takes the user account information corresponding to the current tag ID as target user account information.
When there is pre-fueling order information to be paid under the target user account, the pre-fueling order information including fueling data therein, the server may send fueling data to the fueling device to instruct the fueling device to fueling in accordance with the fueling data.
When establishing the pre-fueling order information to be paid, the method may comprise the steps of:
firstly, receiving pre-fueling order information sent by a user terminal; the pre-fueling order information includes a user ID, a pre-fueling station ID, a pre-fueling gun ID, a pre-fueling liter, and a pre-fueling spending amount; then, inquiring credit capability information of user account information corresponding to the user ID according to the user ID; the credit ability information includes a credit score of the user; secondly, inquiring first payment capability information of a payment account of a user corresponding to user account information when the credit score is not smaller than a preset score threshold value; finally, when the first payment capability information is not less than the amount of consumption of the pre-fueling, pre-fueling order information to be paid is generated.
The credit ability information may be a score of the credit ability of the user, for example, the credit ability score may be generated according to a payment record of the user and a credit record of the client. For example, in the server, the payment times, total amount, etc. may generate a credit score, and the credit record of the user at the bank may generate a credit score, and after the two credit scores are weighted and summed, the credit capability information of the user may be obtained. The credit ability information is a dynamically changing data that can be changed with the user's payment record and credit record.
Thus, the fueling apparatus can perform fueling according to the fueling data after reading the fueling data, whereby the fueling machine is given fueling authorization. However, there may be a problem that the communication module of the fueling apparatus is failed later, resulting in failure of the fueling apparatus to communicate with the server after fueling of the fueling apparatus. For this problem, the server may perform the following steps:
firstly, when a refueling completion message sent by a refueling device is not received within a preset second duration, or after the refueling completion message is received, calculating a refueling amount according to refueling data, and performing a refueling order generation operation according to the refueling data, the refueling amount, a refueling device ID, a tag ID and refueling time information to generate refueling order information; according to the oiling data in the oiling order information, inventory reduction operation is carried out, and inventory information is obtained; then, after the oil filling order information is encrypted, a payment operation is initiated, the encrypted oil filling order information is sent to a third party server, so that the third party server decrypts the encrypted oil filling order information, then a deduction operation is carried out, and after the deduction operation, oil filling evidence information is generated; the oiling certificate information comprises actual payment amount and payment account; and finally, receiving the oiling certificate information sent by the third-party server.
Therefore, when the communication module of the oiling device fails, the oiling information cannot be reported timely, and at this time, the oiling device is authorized to be oiled, and when the server does not receive the information fed back by the oiling device within a second period of time, for example, within 1 hour, the server can automatically perform subsequent payment operation.
Wherein, the encryption can adopt a combination of symmetric encryption and asymmetric encryption. Correspondingly, the third party server decrypts the symmetric key, the public key and the private key which are sent in advance by the server, so that the safety of the payment process is ensured.
By applying the payment exception handling method provided by the embodiment of the invention, after the oiling equipment is authorized to be oiled, if the communication module of the oiling equipment has a fault, automatic deduction can be performed. And when the communication module of the oiling equipment has no fault, a transaction mechanism is introduced to form a new transaction mechanism for order payment, and if the payment process has abnormality, such as unsuccessful payment, repeated payment and the like, the transaction mechanism for order payment can be utilized for processing, thereby avoiding the occurrence of error payment such as repeated payment and the like.
Fig. 2 is a schematic structural diagram of a payment exception handling system according to a second embodiment of the present invention, as shown in fig. 2, where the system includes: a processing module 210 and a storage module 220.
The processing module is used for obtaining a transaction mechanism of order payment according to the sequence of the oiling order generation operation, the inventory reduction operation, the payment initiation operation and the deduction operation; wherein each of the fueling order generation operation, the inventory reduction operation, the initiate payment operation, and the deduction operation is as one atomic transaction;
the storage module is used for storing a transaction mechanism of order payment;
the processing module is further configured to cancel a current previous atomic transaction when a next atomic transaction of the current atomic transaction is not received within a preset first duration.
Further, the payment anomaly processing system further includes: a receiving module 230, a determining module 240, a transmitting module 250.
The receiving module 230 is configured to receive a fueling request message sent by a fueling device; the fueling request message includes a tag ID and a fueling device ID;
the determining module 240 is configured to query a preset reference table according to the tag ID, and determine target user account information corresponding to the tag ID; the target user account information includes fueling data;
the processing module 210 is configured to generate an authorized fueling message according to fueling data;
the sending module 250 is configured to send, according to the fueling device ID, an authorized fueling message to a fueling device corresponding to the fueling device ID;
the receiving module 230 is further configured to receive a fueling complete message sent by the fueling device after the fueling is completed.
Further, the processing module 210 is further configured to, when the fueling completion message sent by the fueling device is not received within the preset second duration, or after the fueling completion message is received, calculate a fueling amount according to the fueling data, and perform a fueling order generating operation according to the fueling data, the fueling amount, the fueling device ID, the tag ID, and the fueling time information, to generate fueling order information;
according to the oiling data in the oiling order information, inventory reduction operation is carried out, and inventory information is obtained;
after the oiling order information is encrypted, a payment operation is initiated, the encrypted oiling order information is sent to a third party server, so that the third party server decrypts the encrypted oiling order information, then a deduction operation is carried out, and after the deduction operation, oiling evidence information is generated; the oiling certificate information comprises actual payment amount and payment account;
the receiving module 230 is further configured to receive fueling certificate information sent by the third party server.
Further, the processing module 210 is specifically configured to:
after the oiling order generation operation is performed, the stock reduction operation is not performed, and then the oiling order information generated by the oiling order generation operation is withdrawn; or,
after the inventory reduction operation is carried out, if the payment initiation operation is not carried out, the oiling order information generated by the oiling order generation operation and the inventory information generated by the inventory reduction operation are withdrawn; or,
and when the payment operation is initiated, the refuel order information generated by the refuel order generation operation, the inventory information generated by the inventory reduction operation and the encrypted refuel order information generated by the payment operation are withdrawn when the deduction operation is not executed.
Further, the processing module 210 is further configured to generate a query request message for querying whether to perform a refueling operation, where the query request message includes a refueling device ID;
the sending module 250 is further configured to send a query request message to a fueling device corresponding to the fueling device ID;
the receiving module 230 is further configured to receive a confirm fueling message sent by the fueling device;
the processing module 210 is further configured to continue executing the fueling order generation operation based on the confirmation fueling message.
By applying the payment abnormality processing system provided by the embodiment of the invention, after the oiling equipment is authorized to be oiled, if the communication module of the oiling equipment has a fault, automatic deduction can be performed. And when the communication module of the oiling device has no fault, if the abnormality exists in the payment process, such as unsuccessful payment, repeated payment and the like, the transaction mechanism of order payment can be utilized for processing, thereby avoiding the occurrence of error payment such as repeated payment and the like.
An embodiment of the present invention provides an apparatus, including a memory and a processor, where the memory is configured to store a program, and the memory may be connected to the processor through a bus. The memory may be non-volatile memory, such as a hard disk drive and flash memory, in which software programs and device drivers are stored. The software program can execute various functions of the method provided by the embodiment of the invention; the device driver may be a network and interface driver. The processor is configured to execute a software program, where the software program is executed to implement the method provided in the first embodiment of the present invention.
A fourth embodiment of the present invention provides a computer program product containing instructions, which when executed on a computer, cause the computer to perform the method provided by the first embodiment of the present invention.
The fifth embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method provided in the first embodiment of the present invention is implemented.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the invention is not limited to the particular embodiments disclosed, but is intended to cover all modifications, equivalents, alternatives, and improvements within the spirit and principles of the invention.
Claims (10)
1. A payment anomaly handling method, the method comprising:
receiving a refueling request message sent by a refueling device; the fueling request message includes a tag ID and a fueling device ID;
inquiring a preset comparison table according to the tag ID, and determining target user account information corresponding to the tag ID;
judging whether pre-fueling order information to be paid exists under a target user account according to the target user account information, wherein the pre-fueling order information to be paid comprises fueling data; the process for establishing the to-be-paid and oiling order information comprises the steps of receiving pre-oiling order information sent by a user terminal; the pre-fueling order information includes a user ID, a pre-fueling station ID, a pre-fueling gun ID, a pre-fueling liter, and a pre-fueling spending amount; inquiring credit capability information of user account information corresponding to the user ID according to the user ID; the credit ability information includes a credit score of the user; when the credit score is not smaller than a preset score threshold value, inquiring first payment capability information of a payment account of a user corresponding to the user account information; generating pre-fueling order information to be paid when the first payment capability information is not less than the amount of consumption of the pre-fueling;
if there is pre-fueling order information to be paid, then
Generating an authorized fueling message according to the fueling data;
according to the oiling equipment ID, the authorized oiling message is sent to oiling equipment corresponding to the oiling equipment ID;
after the oiling is completed, receiving an oiling completion message sent by oiling equipment;
obtaining a transaction mechanism of order payment according to the sequence of the oiling order generation operation, the inventory reduction operation, the payment initiation operation and the deduction operation; wherein each of the fueling order generation operation, the inventory reduction operation, the initiate payment operation, and the deduction operation is as one atomic transaction;
storing a transaction mechanism for payment of the order;
and when the next atomic transaction of the current atomic transaction is not received within the preset first duration, the current previous atomic transaction is revoked.
2. The method of claim 1, wherein after the transmitting the authorized fueling message to the fueling device corresponding to the fueling device ID based on the fueling device ID, the method further comprises:
when the oiling completion message sent by the oiling device is not received within a preset second duration, or after the oiling completion message is received, calculating the oiling amount according to the oiling data, the oiling amount, the oiling device ID, the tag ID and the oiling time information, performing oiling order generation operation according to the oiling data, the oiling amount, the oiling device ID and the oiling time information, and generating oiling order information;
according to the oiling data in the oiling order information, inventory reduction operation is carried out to obtain inventory information;
after encrypting the oiling order information, initiating payment operation, and sending the encrypted oiling order information to a third party server, so that the third party server decrypts the oiling order information, then performs deduction operation, and generates oiling evidence information after deduction operation; the oiling certificate information comprises an actual payment amount and a payment account;
and receiving the oiling certificate information sent by the third-party server.
3. The method of claim 1, wherein the revoking the current previous atomic transaction when the next atomic transaction of the current atomic transaction is not received within the preset first duration of time specifically includes:
after the oiling order generation operation is performed, the stock reduction operation is not performed, and then the oiling order information generated by the oiling order generation operation is withdrawn; or,
after the inventory reduction operation is carried out, if the payment initiation operation is not carried out, the oiling order information generated by the oiling order generation operation and the inventory information generated by the inventory reduction operation are withdrawn; or,
and when the payment operation is initiated, the refuel order information generated by the refuel order generation operation, the inventory information generated by the inventory reduction operation and the encrypted refuel order information generated by the payment operation are withdrawn when the deduction operation is not executed.
4. A method according to claim 3, further comprising, after the method, generating a query request message for querying whether to perform a fueling operation, the query request message comprising a fueling device ID;
sending the inquiry request message to the oiling equipment corresponding to the oiling equipment ID;
receiving a confirmation refueling message sent by the refueling equipment;
and continuing to execute the oiling order generation operation according to the oiling confirmation message.
5. A payment anomaly handling system, the system comprising:
the receiving module is used for receiving a refueling request message sent by the refueling equipment; the fueling request message includes a tag ID and a fueling device ID;
the determining module is used for inquiring a preset comparison table according to the tag ID and determining target user account information corresponding to the tag ID;
judging whether pre-fueling order information to be paid exists under a target user account according to the target user account information, wherein the pre-fueling order information to be paid comprises fueling data; the process for establishing the to-be-paid and oiling order information comprises the steps of receiving pre-oiling order information sent by a user terminal; the pre-fueling order information includes a user ID, a pre-fueling station ID, a pre-fueling gun ID, a pre-fueling liter, and a pre-fueling spending amount; inquiring credit capability information of user account information corresponding to the user ID according to the user ID; the credit ability information includes a credit score of the user; when the credit score is not smaller than a preset score threshold value, inquiring first payment capability information of a payment account of a user corresponding to the user account information; generating pre-fueling order information to be paid when the first payment capability information is not less than the amount of consumption of the pre-fueling;
the determining module is used for generating an authorized oiling message according to the oiling data if the pre-oiling order information to be paid exists;
the sending module is used for sending the authorized oiling message to oiling equipment corresponding to the oiling equipment ID according to the oiling equipment ID;
the receiving module is also used for receiving a refueling completion message sent by the refueling equipment after the refueling is completed;
the processing module is used for obtaining a transaction mechanism of order payment according to the sequence of the oiling order generation operation, the stock reduction operation, the payment initiation operation and the deduction operation; wherein each of the fueling order generation operation, the inventory reduction operation, the initiate payment operation, and the deduction operation is as one atomic transaction;
the storage module is used for storing a transaction mechanism of the order payment;
the processing module is further configured to cancel a current previous atomic transaction when a next atomic transaction of the current atomic transaction is not received within a preset first duration.
6. The system of claim 5, wherein the processing module is further configured to, when a fueling completion message sent by the fueling device is not received within a preset second duration, or after the fueling completion message is received, calculate a fueling amount based on the fueling data, the fueling amount, the fueling device ID, the tag ID, and the fueling time information, perform a fueling order generation operation to generate fueling order information;
according to the oiling data in the oiling order information, inventory reduction operation is carried out to obtain inventory information;
after encrypting the oiling order information, initiating payment operation, and sending the encrypted oiling order information to a third party server, so that the third party server decrypts the oiling order information, then performs deduction operation, and generates oiling evidence information after deduction operation; the oiling certificate information comprises an actual payment amount and a payment account;
the receiving module is also used for receiving the oiling certificate information sent by the third party server.
7. The system of claim 5, wherein the processing module is specifically configured to:
after the oiling order generation operation is performed, the stock reduction operation is not performed, and then the oiling order information generated by the oiling order generation operation is withdrawn; or,
after the inventory reduction operation is carried out, if the payment initiation operation is not carried out, the oiling order information generated by the oiling order generation operation and the inventory information generated by the inventory reduction operation are withdrawn; or,
and when the payment operation is initiated, the refuel order information generated by the refuel order generation operation, the inventory information generated by the inventory reduction operation and the encrypted refuel order information generated by the payment operation are withdrawn when the deduction operation is not executed.
8. The system of claim 7, wherein the processing module is further configured to generate a query request message for querying whether to perform a fueling operation, the query request message including a fueling device ID;
the sending module is further configured to send the query request message to a fueling device corresponding to the fueling device ID;
the receiving module is also used for receiving a confirmation refueling message sent by the refueling equipment;
the processing module is further configured to continue executing the fueling order generation operation according to the confirm fueling message.
9. An apparatus comprising a memory for storing a program and a processor for executing the payment anomaly handling method of any one of claims 1 to 4.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the payment anomaly handling method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311061363.1A CN117291586A (en) | 2020-04-20 | 2020-04-20 | Payment exception handling method and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010312283.9A CN111539703B (en) | 2020-04-20 | 2020-04-20 | Payment exception handling method and system |
CN202311061363.1A CN117291586A (en) | 2020-04-20 | 2020-04-20 | Payment exception handling method and system |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010312283.9A Division CN111539703B (en) | 2020-04-20 | 2020-04-20 | Payment exception handling method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117291586A true CN117291586A (en) | 2023-12-26 |
Family
ID=71975143
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010312283.9A Active CN111539703B (en) | 2020-04-20 | 2020-04-20 | Payment exception handling method and system |
CN202311061363.1A Pending CN117291586A (en) | 2020-04-20 | 2020-04-20 | Payment exception handling method and system |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010312283.9A Active CN111539703B (en) | 2020-04-20 | 2020-04-20 | Payment exception handling method and system |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN111539703B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112650562B (en) * | 2020-12-18 | 2024-03-08 | 平安科技(深圳)有限公司 | Data processing method, device, equipment and readable storage medium |
CN114387727A (en) * | 2021-12-08 | 2022-04-22 | 深圳市风行趋势科技有限公司 | Refueling flash payment blending method and device, computer equipment and storage medium |
Family Cites Families (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1526472A3 (en) * | 1995-02-13 | 2006-07-26 | Intertrust Technologies Corp. | Systems and methods for secure transaction management and electronic rights protection |
US7308426B1 (en) * | 1999-08-11 | 2007-12-11 | C-Sam, Inc. | System and methods for servicing electronic transactions |
US20140019352A1 (en) * | 2011-02-22 | 2014-01-16 | Visa International Service Association | Multi-purpose virtual card transaction apparatuses, methods and systems |
US9213965B1 (en) * | 2008-11-26 | 2015-12-15 | Metabank | Machine, methods, and program product for electronic inventory tracking |
CA2835646A1 (en) * | 2011-05-11 | 2012-11-15 | Mark Itwaru | Mobile image payment system |
WO2014011691A1 (en) * | 2012-07-09 | 2014-01-16 | Visa International Service Association | Multi-purpose virtual card transaction apparatuses, methods and systems |
EP2688026A1 (en) * | 2012-07-19 | 2014-01-22 | Dagny Halldorsdottir | Method of performing a mobile transaction and system for performing a mobile transaction |
WO2014108467A1 (en) * | 2013-01-09 | 2014-07-17 | Vipshopr Sa | Payment method without pin or signature |
US20140358789A1 (en) * | 2013-05-30 | 2014-12-04 | B. Scott Boding | Acquirer facing fraud management system and method |
US10650398B2 (en) * | 2014-06-16 | 2020-05-12 | Visa International Service Association | Communication systems and methods to transmit data among a plurality of computing systems in processing benefit redemption |
WO2016068854A1 (en) * | 2014-10-27 | 2016-05-06 | Facebook, Inc. | Facilitating sending and receiving of payments using message-based contextual prompts |
US10467682B2 (en) * | 2015-12-07 | 2019-11-05 | Mastercard International Incorporated | Systems and methods for utilizing vehicle connectivity in association with payment transactions |
US10810572B1 (en) * | 2016-02-16 | 2020-10-20 | State Farm Mutual Automobile Insurance Company | Connected car as a payment device |
CN110073717A (en) * | 2016-08-18 | 2019-07-30 | 吉尔巴科公司 | Utilize the fuel adding environment of improved wireless network topology structure |
US10984405B2 (en) * | 2017-01-05 | 2021-04-20 | Revivermx, Inc. | Digital license plate with payment and information handling system |
CN107784498A (en) * | 2017-11-28 | 2018-03-09 | 车主邦(北京)科技有限公司 | A kind of group refueling system and method |
US20190228480A1 (en) * | 2018-01-24 | 2019-07-25 | Maverik, Inc | Generating receipts at remote fuel dispensers |
US11854007B2 (en) * | 2018-04-16 | 2023-12-26 | Visa International Service Association | Method and system for pre-authorizing a delivery transaction |
KR20190131734A (en) * | 2018-05-17 | 2019-11-27 | 엘지전자 주식회사 | mobile terminal and payment method using the same |
CN109493022A (en) * | 2018-09-20 | 2019-03-19 | 西安艾润物联网技术服务有限责任公司 | Fee payment method, system, terminal and storage medium based on intelligent vehicle mounted terminal |
CN110706071B (en) * | 2019-09-25 | 2021-02-09 | 口碑(上海)信息技术有限公司 | Exception handling method, device, server and system for order payment request |
-
2020
- 2020-04-20 CN CN202010312283.9A patent/CN111539703B/en active Active
- 2020-04-20 CN CN202311061363.1A patent/CN117291586A/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN111539703B (en) | 2023-10-24 |
CN111539703A (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11823201B2 (en) | Intelligent recurring transaction processing and fraud detection | |
CN101706933A (en) | Method and background system for realizing joint account service operation | |
CN111539703B (en) | Payment exception handling method and system | |
CN103714625A (en) | Intelligent card recharging method and system | |
CN111539715B (en) | Vehicle electronic tag payment generation method | |
CN112101955B (en) | Concurrent payment method, system and device | |
CN117670332A (en) | Efficient resource provider system | |
US20220141180A1 (en) | Method for processing via conditional authorization | |
CN111507718B (en) | Non-inductive payment system | |
CN111539702B (en) | Payment record processing method | |
CN113438616B (en) | Bus refueling data processing method, device and system | |
CN111507700B (en) | Electronic tag identification method for vehicle payment | |
US10210512B2 (en) | Transaction count synchronization in payment system | |
CN109948813B (en) | Maintenance equipment sharing method and device based on block chain and server | |
CN111539704B (en) | Non-inductive payment method | |
CN111507705B (en) | Processing method of refueling data | |
CN110852866A (en) | Method, apparatus, and storage medium for managing a plurality of resources | |
CN111483968B (en) | Abnormality processing method for refueling equipment | |
CN117436971A (en) | Method and device for ordering fuel, electronic equipment and storage medium | |
US11967240B2 (en) | Systems and methods for facilitating roadside commercial truck service requests | |
CN112116458B (en) | Data processing method and device | |
CN117557274A (en) | Money transfer method, money transfer device, electronic equipment, readable storage medium and product | |
US20080140563A1 (en) | Method and system for automatic control of chattel and administration of payment on chattel | |
CN114971907A (en) | Service providing method and device based on block chain and 5G message | |
CN110782236A (en) | Vehicle refueling management system, method, medium, and computing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240410 Address after: Room 2101, Block B, Platinum Plaza, 5-15 Wenling Road, Laoshan District, Qingdao City, Shandong Province, 266100 Applicant after: Shandong Energy Chain Holding Co.,Ltd. Country or region after: China Address before: Building 7, Yard 1, Yaojiayuan South Road, Chaoyang District, Beijing, 100123, 5th Floor, Zone G Applicant before: CHEZHUBANG (BEIJING) TECHNOLOGY Co.,Ltd. Country or region before: China |
|
TA01 | Transfer of patent application right |