Recharging method and device and storage medium

By using the NFC module to read transaction records and interact with the background system during the recharge of physical cards, the problem of high operation and maintenance costs caused by gray transaction status is solved, and the function of automatically judging whether the recharge is successful is realized, reducing operation and maintenance costs.

CN119991113AActive Publication Date: 2025-05-13深圳市深圳通有限公司

Patent Information

Application Number
CN202510459056.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-05-13
Estimated Expiration
2045-04-14

AI Technical Summary

Technical Problem

During the recharge process of physical cards in the transportation field, the gray transaction status leads to high operation and maintenance costs, and manual intervention is required to determine whether the recharge is successful.

Method used

The physical card is detected through the NFC module, the first transaction record data is read and the recharge application instruction is sent to the backend system. If the execution result of the physical card is received within the preset time, the recharge is successful; if the result is not received, secondary data reading and comparison are performed to determine the recharge status.

Benefits of technology

It avoids manual intervention and verification, reduces operation and maintenance costs, and improves the reliability and efficiency of the recharge process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119991113A_ABST
    Figure CN119991113A_ABST
Patent Text Reader

Abstract

The invention discloses a recharging method and device and a storage medium, and relates to the technical field of digital payment, and the method comprises the steps: reading first transaction record data in an entity card after the entity card is detected through an NFC module; a first recharging application instruction is sent to a background system based on the first transaction record data, so that the background system constructs a card transaction record, and a recharging instruction is sent to the recharging application; receiving a recharging instruction sent by the background system, and issuing the recharging instruction to the entity card through the NFC module; if an execution result returned by the entity card is received within a preset first time, the recharging is successful; if the execution result returned by the entity card is not received within the preset first time, secondary data reading and comparison are conducted on the entity card, and if comparison succeeds, recharging succeeds, and the operation and maintenance cost can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital payment technology, and in particular to a recharging method, device and storage medium. Background Technology

[0002] In the field of transportation, physical transportation cards are used to read data and change balances through instructions. During the card recharge process, after the backend issues a recharge instruction (balance change instruction), the recharge instruction execution result may not be received due to reasons such as card movement. At this time, the backend order status is in the recharge state (this patent calls it a gray transaction). In this case, the physical card may have been successfully recharged or may not have been successfully recharged, requiring manual intervention and verification, resulting in high operation and maintenance costs.

[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. SUMMARY OF THE INVENTION

[0004] The main purpose of this application is to provide a recharge method, device and storage medium, aiming to solve the technical problem of high operation and maintenance costs caused by the current gray transaction status of physical cards.

[0005] To achieve the above purpose, the present application proposes a recharge method, which is applied to a recharge application. The method comprises the following steps: After the physical card is detected by the NFC module, the first transaction record data in the physical card is read; Sending a first recharge application instruction to the backend system based on the first transaction record data, so that the backend system constructs a card transaction record and sends a recharge instruction to the recharge application; Receive the recharge instruction sent by the background system, and send the recharge instruction to the physical card through the NFC module; If the execution result returned by the physical card is received within the preset first time, the recharge is successful; If the execution result returned by the physical card is not received within the preset first time, the physical card is read and compared for the second time. If the comparison is successful, the recharge is successful.

[0006] In one embodiment, after the physical card is detected by the NFC module, the step of reading the first transaction record data in the physical card includes: In response to the recharge operation, send a create order instruction and a payment instruction to the backend system so that the backend system creates an order and completes the payment operation.

[0007] In one embodiment, if the execution result returned by the physical card is not received within the preset first time, the secondary data reading and comparison of the physical card includes:​ If the execution result returned by the physical card is not received within the preset first time, and the movement of the physical card is detected by the NFC module, the user is guided to re-attach the card; Perform secondary data reading and comparison on the physical card.

[0008] In one embodiment, the secondary data reading and comparison of the physical card includes: Read the second transaction record data in the physical card; Send a second recharge application instruction to the background system based on the second transaction record data, so that the background system compares the second transaction record data with the first transaction record data and / or the card transaction record.

[0009] This application also proposes a recharge method, which is applied to the background system. The method includes the following steps: Receive a first recharge application instruction sent by the recharge application based on first transaction record data, and construct a card transaction record, wherein the first transaction record data is obtained by reading the physical card after the recharge application detects the physical card through the NFC module; Send a recharge instruction to the recharge application, so that the recharge application sends the recharge instruction to the physical card through the NFC module. If the recharge application receives the execution result returned by the physical card within the preset first time, the recharge is successful. If the recharge application does not receive the execution result returned by the physical card within the preset first time, the physical card is read and compared for the second time. If the comparison is successful, the recharge is successful.

[0010] In one embodiment, the backend system includes an order payment system and a card management system, and the receiving of a first recharge application instruction sent by a recharge application based on first transaction record data, and constructing a card transaction record includes: Check the order status of the target order through the order payment system; If the order status is the first recharge in a recharge transaction, the first transaction record data is obtained through the order payment system based on the first recharge application instruction; Sending a recharge application to the card management system through the order payment system, so that the card management system constructs a first recharge record and updates the first recharge record to a gray transaction state; Generate the recharge instruction through the card management system, and send the recharge instruction to the order payment system, so that the order payment system sends the recharge instruction to the recharge application; The card transaction data is sent to the order payment system through the card management system, so that the order payment system updates the order status to the gray transaction status and constructs the card transaction record based on the card transaction data.

[0011] In one embodiment, the secondary data reading and comparison of the physical card, if the comparison is successful, the recharge is successful including: receiving, through the order payment system, a second recharge application instruction sent by the recharge application, wherein the second recharge application instruction is sent by the recharge application based on the second transaction record data after reading the second transaction record data in the physical card; The second transaction record data is compared with the first transaction record data and / or the card transaction record through the order payment system. If the comparison is successful, the recharge is successful.

[0012] In one embodiment, the order payment system compares the second transaction record data with the first transaction record data and / or the card transaction record. If the comparison is successful, the recharge is successful, including: Compare the first transaction record data with the second transaction record data through the order payment system; If the comparison between the first transaction record data and the second transaction record data fails, the order status is updated to require manual verification; If the first transaction record data and the second transaction record data are successfully compared, then the second transaction record is compared with the card transaction record; If the second transaction record and the card transaction record are successfully compared, the order status is updated to recharge successful; If the comparison between the second transaction record and the card transaction record fails, the order status is updated to recharge failure.

[0013] In addition, to achieve the above purpose, the present application also proposes a recharge device, which is arranged in the recharge application, and the recharge device includes: A data reading module is used to read the first transaction record data in the physical card after the physical card is detected by the NFC module; A record construction module is used to send a first recharge application instruction to the background system based on the first transaction record data, so that the background system constructs a card transaction record and sends a recharge instruction to the recharge application; A recharge instruction issuing module, used for receiving the recharge instruction sent by the background system, and issuing the recharge instruction to the physical card through the NFC module; The execution result receiving module is used to: if the execution result returned by the physical card is received within the preset first time, the recharge is successful; if the execution result returned by the physical card is not received within the preset first time, the physical card is read and compared for the second time, and if the comparison is successful, the recharge is successful.

[0014] In addition, to achieve the above purpose, the present application also proposes a recharge device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the recharge method described above.

[0015] In addition, to achieve the above purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by the processor, the steps of the recharge method described above are implemented.

[0016] One or more technical solutions proposed in this application have at least the following technical effects: In this application, if the recharge application receives the execution result returned by the physical card within the preset first time, the recharge is successful; if the recharge application does not receive the execution result returned by the physical card within the preset first time, the physical card is read and compared for the second time, thereby determining whether the gray transaction is successfully recharged, thereby avoiding manual intervention and reducing operation and maintenance costs. Brief Description of the Figures

[0017] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description are used to explain the principles of the present application.

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A flowchart of the first embodiment of the recharge method of this application; Figure 2 This is a flowchart of the recharge method for this application Figure 1 ; Figure 3 This is a flowchart of the recharge method for this application Figure 2 ; Figure 4 is a schematic diagram of the module structure of the recharge device in the embodiment of the present application; Figure 5This is a schematic diagram of the device structure of the hardware operating environment involved in the recharge method in the embodiment of this application.

[0020] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Specific implementation method

[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solution of the present application and are not used to limit the present application.

[0022] In order to better understand the technical solution of this application, the following will be described in detail in conjunction with the accompanying drawings and specific implementation methods.

[0023] The main solution of the embodiment of the present application is: after detecting the physical card through the NFC module, read the first transaction record data in the physical card; send the first recharge application instruction to the background system based on the first transaction record data, so that the background system builds the card transaction record and sends the recharge instruction to the recharge application; receive the recharge instruction sent by the background system, and send the recharge instruction to the physical card through the NFC module; if the execution result returned by the physical card is received within the preset first time, the recharge is successful; if the execution result returned by the physical card is not received within the preset first time, perform a secondary data reading and comparison on the physical card, and if the comparison is successful, the recharge is successful.

[0024] In this embodiment, for the convenience of description, the following description is based on the recharge system as the execution subject.

[0025] In the field of transportation, physical transportation cards are used to read data and change balances through instructions. During the card recharge process, after the backend issues a recharge instruction (balance change instruction), the recharge instruction execution result may not be received due to reasons such as card movement. At this time, the backend order status is in the recharge (this patent calls it a gray transaction) state. In this case, the physical card may have been successfully recharged or may not have been successfully recharged, requiring manual intervention and verification, resulting in high operation and maintenance costs.

[0026] In addition, current technology can determine whether the recharge is successful by the change in the card balance before and after recharge, but this simple balance judgment has defects. Because in the case of a gray transaction order, the card can also change the balance through consumption transactions generated by riding, recharging, etc. If the gray transaction order is actually recharged successfully, and then the same recharge amount is consumed, the balance after consumption is consistent with the card balance before recharge. Judging whether the gray transaction is recharged successfully only by the balance, the conclusion is that the recharge failed, which is obviously a misjudgment and causes financial losses to the card company.

[0027] This application provides a solution. In this application, if the recharge application receives the execution result returned by the physical card within the preset first time, the recharge is successful; if the recharge application does not receive the execution result returned by the physical card within the preset first time, the physical card is read and compared for the second time, thereby determining whether the gray transaction is successfully recharged, thereby avoiding manual intervention and verification, and reducing operation and maintenance costs.

[0028] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a recharge device, etc. that can realize the above functions, or an electronic system, a recharge system, etc. that can realize the above functions. The following takes the recharge system as an example to illustrate this embodiment and the following embodiments.

[0029] Based on this, the present application embodiment provides a recharge method, refer to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the recharge method of this application.

[0030] In this embodiment, applied to a recharge application, the recharge method includes steps S20 to S60: Step S20, after the physical card is detected by the NFC module, reading the first transaction record data in the physical card; Wherein, the recharge application can be installed on a mobile terminal, such as a mobile phone.

[0031] Optionally, the recharge application includes an NFC module to implement the NFC function.

[0032] When the card balance of the physical card is changed, a card transaction record will be written synchronously in the card, so the recharge application can read the first transaction record data in the physical card through the NFC module.

[0033] The first transaction record data may include information such as the physical card number, balance, transaction time, transaction amount, and transaction location.

[0034] As an implementation method, due to the limited storage space of the physical card, the first transaction record data can store limited transaction records. For example, the first transaction record data can be 10 transaction records, and the new transaction will overwrite the oldest transaction record.

[0035] Step S30, sending a first recharge application instruction to the background system based on the first transaction record data, so that the background system constructs a card transaction record and sends a recharge instruction to the recharge application; After receiving the request, the backend system will create a card transaction record in the database to track the status and details of the recharge.

[0036] Step S40, receiving the recharge instruction sent by the background system, and sending the recharge instruction to the physical card through the NFC module; It should be noted that the balance information needs to be updated in the physical card at this time.

[0037] Step S50, if the execution result returned by the physical card is received within the preset first time, the recharge is successful; Among them, the preset first time can be set based on the actual situation, which will not be described here.

[0038] Step S60: If the execution result returned by the physical card is not received within the preset first time, the physical card is read and compared for the second time. If the comparison is successful, the recharge is successful.

[0039] It should be noted that the recharge application may not receive the recharge instruction execution result due to reasons such as the physical card moving or the physical card not receiving the recharge instruction. In this case, the physical card needs to be read and compared for the second time.

[0040] This embodiment provides a recharge method. In this application, if the recharge application receives the execution result returned by the physical card within the preset first time, the recharge is successful; if the recharge application does not receive the execution result returned by the physical card within the preset first time, the physical card is read and compared for the second time, thereby determining whether the gray transaction is successfully recharged, thereby avoiding manual intervention and verification, and reducing operation and maintenance costs.

[0041] Based on any of the above embodiments, in the second embodiment of the present application, the same or similar contents as the above embodiments can refer to the above introduction, and will not be repeated later. On this basis, in step S20, after the physical card is detected by the NFC module, before the first transaction record data in the physical card is read, the recharge method also includes step S10: Step S10, in response to the recharge operation, sending a creation order instruction and a payment instruction to the backend system, so that the backend system creates an order and completes the payment operation.

[0042] It should be noted that users can use a mobile phone with NFC function, install the recharge application and enter the physical card recharge function, select the recharge amount and complete the payment. At this time, the recharge application sends the creation order instruction and payment instruction to the background system. After receiving the creation order instruction and payment instruction, the background system creates the order and completes the payment operation.

[0043] ​It should be noted that at this point the user has paid, which has been recorded in the recharge app and the backend system, but has not been synchronized to the physical card.

[0044] If Figure 2 As shown, Figure 2 This is a flowchart of the recharge method for this application Figure 1 .

[0045] After payment, open the card recharge page of the recharge application, use the physical card to stick to the back of the phone, and after the recharge application detects the card through the NFC module, it sends an instruction to read the card number, balance and 10 transaction records in the card, and sends the first recharge application instruction to the background system based on the transaction record data, so that after receiving the first recharge application instruction, the background system registers 10 transaction records in the card, including transaction sequence number, transaction time, transaction amount, transaction device number, etc.

[0046] The embodiment of this application designs a complete recharge process to ensure the reliability of the operation and user experience.

[0047] Based on any of the above embodiments, in the third embodiment of the present application, the same or similar contents as the above embodiments can refer to the above description, and will not be repeated later. On this basis, step S60, if the execution result returned by the physical card is not received within the preset first time, the secondary data reading and comparison of the physical card also includes steps S61~S62: Step S61, if the execution result returned by the physical card is not received within the preset first time, and the movement of the physical card is detected by the NFC module, the user is guided to re-attach the card; Among them, the user can be guided to re-attach the card through voice prompts, screen displays, indicator light prompts, vibration feedback, etc.

[0048] Among them, you can refer to Figure 3 , Figure 3 This is a flowchart of the recharge method for this application Figure 2 .

[0049] When the backend system sends a recharge instruction to the recharge application, and the recharge application sends a recharge instruction to the physical card, the result is unknown because the physical card has been moved. At this time, an exception occurs in the recharge application, the process is interrupted, and the recharge application guides the user to re-attach the card. When the recharge application detects that the user has re-attached the card through the NFC module, it sends an instruction to the physical card to perform a secondary data read and comparison on the physical card, including reading the card number, balance, and 10 transaction records in the card.

[0050] Step S62, performing secondary data reading and comparison on the physical card.

[0051] Among them, the secondary data reading and comparison of the physical card may include reading the second transaction record data in the physical card; sending a second recharge application instruction to the background system based on the second transaction record data, so that the background system compares the second transaction record data with the first transaction record data and / or the card transaction record.

[0052] The embodiment of the present application improves the user experience and recharge success rate through mechanisms such as real-time feedback, operation guidance, secondary data reading and comparison.

[0053] Based on any of the above embodiments, in the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above description, and will not be repeated in the following. On this basis, step S62, performing secondary data reading and comparison on the physical card also includes steps S621~S622: Step S621, reading the second transaction record data in the physical card; Please refer to Figure 3 , read the second transaction record data in the physical card including the card number, balance and 10 transaction records in the card.

[0054] Step S622: Send a second recharge application instruction to the background system based on the second transaction record data, so that the background system compares the second transaction record data with the first transaction record data and / or the card transaction record.

[0055] As an implementation method, the backend system may compare the second transaction record data with the first transaction record data.

[0056] As another implementation, the backend system may compare the second transaction record data with the card transaction record data.

[0057] As another implementation method, the backend system may first compare the second transaction record data with the first transaction record data, and if the comparison is successful, the second transaction record data is compared with the card transaction record.

[0058] Reference Figure 4 , the recharge application sends a second recharge application instruction to the background system, so that the background system registers 10 transaction records in the card in the previously created card transaction record, including transaction sequence number, transaction time, transaction amount, transaction device number, etc., so that the background system compares the second transaction record data with the first transaction record data and / or card transaction record.

[0059] The embodiment of the present application can effectively determine whether the recharge order is successful by comparing the second transaction record data with the first transaction record data and / or the card transaction record, thereby avoiding manual intervention and reducing operation and maintenance costs.

[0060] In the fifth embodiment of the present application, a recharge method is also proposed, which is applied to the background system. The method includes steps S11~S12: Step S11, receiving a first recharge application instruction sent by the recharge application based on first transaction record data, and constructing a card transaction record, wherein the first transaction record data is obtained by reading the physical card after the recharge application detects the physical card through the NFC module; It should be noted that this embodiment is applied to the backend system, and the backend system receives the first recharge application instruction sent by the recharge application based on the first transaction record data, wherein the first transaction record data may include information such as the physical card number, balance, transaction time, transaction amount, and transaction location.

[0061] After receiving the request, the backend system will create a card transaction record in the database to track the status and details of the recharge.

[0062] Step S12, sending a recharge instruction to the recharge application, so that the recharge application sends the recharge instruction to the physical card through the NFC module. If the recharge application receives the execution result returned by the physical card within the preset first time, the recharge is successful. If the recharge application does not receive the execution result returned by the physical card within the preset first time, the physical card is read and compared for the second time. If the comparison is successful, the recharge is successful.

[0063] After constructing the card transaction record, the backend system sends a recharge instruction to the recharge application, so that the recharge application sends the recharge instruction to the physical card.

[0064] This embodiment provides a recharge method. In this application, if the recharge application receives the execution result returned by the physical card within the preset first time, the recharge is successful; if the recharge application does not receive the execution result returned by the physical card within the preset first time, the physical card is read and compared for the second time, thereby determining whether the gray transaction is successfully recharged, thereby avoiding manual intervention and verification, and reducing operation and maintenance costs.

[0065] Based on any of the above embodiments, in the sixth embodiment of the present application, the same or similar contents as those in the above embodiments can refer to the above introduction, and will not be repeated in the following. On this basis, you can refer to Figure 5The backend system includes an order payment system and a card management system. The receiving recharge application sends a first recharge application instruction based on the first transaction record data, and constructing a card transaction record includes steps S111 to S115: Step S111, checking the order status of the target order through the order payment system; Step S112: if the order status is the first recharge in a recharge transaction, obtaining the first transaction record data based on the first recharge application instruction through the order payment system; When the recharge application successfully reads the card information, it sends a recharge application instruction to the order payment system. After receiving the recharge application instruction, the order payment system checks the order status. If the order is the first card recharge, it will register the transaction record in the card, find the last transaction record according to the serial number, and record the card information before recharge.

[0066] It should be noted that in a recharge transaction, the first time the physical card is attached to the card is recorded as the first recharge in the recharge transaction. If the physical card is removed and then attached to the card again, it will be recorded as the second recharge in the recharge transaction, and so on.

[0067] It should be noted that by checking whether the physical card is the first recharge in a recharge transaction, the transaction record in the card before the recharge can be read, and data comparison can be performed based on the transaction record in the card before the recharge.

[0068] Step S113, sending a recharge application to the card management system through the order payment system, so that the card management system constructs a first recharge record and updates the first recharge record to a gray transaction state; Step S114, generating the recharge instruction through the card management system, and sending the recharge instruction to the order payment system, so that the order payment system sends the recharge instruction to the recharge application; After the first recharge information is successfully registered in the order payment system, the order payment system sends a recharge application instruction to the card management system. After the card management system receives the recharge application instruction, it constructs the first recharge record, updates the first recharge record to the gray transaction state, and generates and sends the recharge instruction to the order payment system.

[0069] Step S115, sending the card transaction data to the order payment system through the card management system, so that the order payment system updates the order status to the gray transaction status, and constructs the card transaction record based on the card transaction data.

[0070] After the order payment system receives the recharge instruction issued by the card management system, it updates the order status to the gray transaction status, and registers the transaction time, device number and other information issued synchronously by the card management system in the card transaction record.

[0071] The embodiment of the present application updates the order status of an unconfirmed order to a gray transaction status through the order payment system, which can ensure that the order can be correctly processed later and improve the stability and reliability of the recharge system.

[0072] Based on any of the above embodiments, in the seventh embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above description, and will not be described in detail later. On this basis, the secondary data reading and comparison of the physical card, if the comparison is successful, the recharge is successful, including steps S121~S122: Step S121, receiving a second recharge application instruction sent by the recharge application through the order payment system, wherein the second recharge application instruction is sent by the recharge application based on the second transaction record data after reading the second transaction record data in the physical card; Among them, if the recharge application does not receive the card execution result within the preset first time, the process is interrupted, and the recharge application detects the card movement through the NFC module, and prompts the user to re-attach the card. After the user re-attaches the card, the recharge application re-reads the card balance and the transaction record in the card (the second transaction record data) through instructions, and re-initiates the second recharge application instruction to the order payment system based on the second transaction record data.

[0073] Step S122: The order payment system compares the second transaction record data with the first transaction record data and / or the card transaction record. If the comparison is successful, the recharge is successful.

[0074] For further information, please refer to Figure 5 , step S122 includes steps S1221~S1225: Step S1221, comparing the first transaction record data with the second transaction record data through the order payment system; If the order payment system determines that the order is not the first recharge, the last transaction record in the first transaction record data is matched with the second transaction record data.

[0075] Step S1222: if the comparison between the first transaction record data and the second transaction record data fails, the order status is updated to require manual verification; Among them, if the last transaction record in the first transaction record data cannot be matched in the second transaction record data, it means that the card has multiple other transactions after the recharge order gray transaction, and the original recharge order data may have been overwritten. It is unreliable to judge by the card transaction record, and the order status is updated to require manual verification.

[0076] Step S1223: if the first transaction record data and the second transaction record data are successfully compared, then the second transaction record and the card transaction record are compared; Among them, if the last transaction record of the first transaction record data can be matched in the second transaction record data, it means that if the record is not overwritten in the scenario where the gray transaction order is successfully recharged, the precondition has been met, and the transaction time, device number, and recharge amount information (i.e., card transaction record) issued by the order payment system through the card management system during the first recharge are matched with the second transaction record data.

[0077] Step S1224: if the second transaction record and the card transaction record are successfully compared, the order status is updated to recharge successful; If the second transaction record matches the card transaction record, it means that the recharge is successful, and the order status is updated to recharge successful; Step S1225: if the comparison between the second transaction record and the card transaction record fails, the order status is updated to recharge failure.

[0078] If the second transaction record does not match the card transaction record, it means that the recharge has failed, and the order status is updated to recharge failure. It is necessary to reapply for recharge again and execute step S114.

[0079] As an implementation method, a distributed blockchain network can also be built to record relevant data of all recharge transactions (such as transaction records, recharge instructions, status updates, etc.). Each node (such as order payment system, card management system, recharge application, etc.) participates in the maintenance and verification of the blockchain network. Specifically, in each recharge transaction, key data such as the first transaction record data, the second transaction record data, the recharge instruction, and the card transaction record are uploaded to the chain. The immutability of the blockchain can improve the security of the recharge process.

[0080] The embodiment of the present application can determine whether the gray transaction is successfully recharged through secondary data reading and comparison, thereby avoiding manual intervention and verification, and reducing operation and maintenance costs.

[0081] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the recharge method of the present application. More simple changes based on this technical concept are all within the protection scope of the present application.

[0082] This application also provides a recharging device, please refer to Figure 5 , set in the recharge application, the recharge device includes: The data reading module 10 is used to read the first transaction record data in the physical card after the physical card is detected by the NFC module; ​A record construction module 20, configured to send a first recharge application instruction to a background system based on the first transaction record data, so that the background system constructs a card transaction record and sends a recharge instruction to the recharge application; The recharge instruction sending module 30 is used to receive the recharge instruction sent by the background system, and send the recharge instruction to the physical card through the NFC module; The execution result receiving module 40 is used to: if the execution result returned by the physical card is received within the preset first time, the recharge is successful; if the execution result returned by the physical card is not received within the preset first time, the physical card is read and compared for the second time, and if the comparison is successful, the recharge is successful.

[0083] The recharge device provided by this application adopts the recharge method in the above embodiment, which can solve the technical problem of high operation and maintenance costs caused by the gray transaction status of the physical card. Compared with the prior art, the beneficial effects of the recharge device provided by this application are the same as the beneficial effects of the recharge method provided by the above embodiment, and the other technical features of the recharge device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0084] The present application provides a recharging device, which includes: at least one processor; and a memory connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the recharging method in the above-mentioned embodiment 1.

[0085] Reference below ​ , which shows a schematic diagram of the structure of a recharge device suitable for implementing the embodiment of the present application. The recharge device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. ​ The recharge device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0086] If ​ ​As shown, the recharge device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 to a random access memory 1004. In the random access memory 1004, various programs and data required for the operation of the recharge device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. An input / output interface 1006 is also connected to the bus. Generally, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the recharge device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a recharge device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0087] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above functions defined in the method of the embodiment disclosed in the present application are executed.

[0088] The recharge device provided by this application adopts the recharge method in the above embodiment, which can solve the technical problem of high operation and maintenance costs caused by the gray transaction status of the physical card. Compared with the prior art, the beneficial effects of the recharge device provided by this application are the same as the beneficial effects of the recharge method provided by the above embodiment, and the other technical features in the recharge device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0089] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0090] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

[0091] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the recharge method in the above-mentioned embodiment.

[0092] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0093] The computer-readable storage medium may be included in the recharging device; or it may exist independently without being assembled into the recharging device.

[0094] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the recharge device, the recharge device: reads the first transaction record data in the physical card after detecting the physical card through the NFC module; sends a first recharge application instruction to the background system based on the first transaction record data, so that the background system builds a card transaction record and sends a recharge instruction to the recharge application; receives the recharge instruction sent by the background system, and sends the recharge instruction to the physical card through the NFC module; if the execution result returned by the physical card is received within the preset first time, the recharge is successful; if the execution result returned by the physical card is not received within the preset first time, the physical card is read and compared for the second time. If the comparison is successful, the recharge is successful.

[0095] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).

[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a portion of a code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession may actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, may be implemented with a dedicated hardware-based system that performs the specified functions or operations, or may be implemented with a combination of dedicated hardware and computer instructions.

[0097] The modules involved in the embodiments of the present application can be implemented by software or hardware. The name of the module does not constitute a limitation on the unit itself in some cases.

[0098] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned recharge method, and can solve the technical problem of high operation and maintenance costs caused by the gray transaction status of physical cards. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the recharge method provided in the above-mentioned embodiment, and will not be repeated here.

[0099] The above description is only a partial embodiment of the present application, and does not limit the patent scope of the present application. All equivalent structural changes made by using the contents of the present application specification and drawings under the technical concept of the present application, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A recharging method, characterized in that: Applied to the recharge application, the method comprises the following steps: After the physical card is detected by the NFC module, the first transaction record data in the physical card is read; Sending a first recharge application instruction to a backend system based on the first transaction record data, so that the backend system constructs a card transaction record and sends a recharge instruction to the recharge application; Receiving the recharge instruction sent by the background system, and sending the recharge instruction to the physical card through the NFC module; If the execution result returned by the physical card is received within the preset first time, the recharge is successful; If the execution result returned by the physical card is not received within the preset first time, the physical card is subjected to a secondary data reading and comparison. If the comparison is successful, the recharging is successful.

2. The method according to claim 1, characterized in that After the physical card is detected by the NFC module, the step of reading the first transaction record data in the physical card includes: In response to the recharge operation, a create order instruction and a payment instruction are sent to the backend system, so that the backend system creates an order and completes the payment operation.

3. The method according to claim 1, characterized in that If the execution result returned by the physical card is not received within the preset first time, performing secondary data reading and comparison on the physical card includes: If the execution result returned by the physical card is not received within the preset first time, and the movement of the physical card is detected by the NFC module, the user is guided to re-attach the card; A secondary data reading and comparison is performed on the physical card.

4. The method according to claim 3, characterized in that The secondary data reading and comparison of the physical card includes: Reading second transaction record data in the physical card; A second recharge application instruction is sent to the background system based on the second transaction record data, so that the background system compares the second transaction record data with the first transaction record data and / or the card transaction record.

5. A recharging method, characterized in that: Applied to the background system, the method comprises the following steps: Receiving a first recharge application instruction sent by the recharge application based on first transaction record data, and constructing a card transaction record, wherein the first transaction record data is obtained by reading the physical card after the recharge application detects the physical card through the NFC module; A recharge instruction is sent to the recharge application so that the recharge application sends the recharge instruction to the physical card through the NFC module. If the recharge application receives the execution result returned by the physical card within a preset first time, the recharge is successful. If the recharge application does not receive the execution result returned by the physical card within the preset first time, a secondary data reading and comparison is performed on the physical card. If the comparison is successful, the recharge is successful.

6. The method according to claim 5, characterized in that The backend system includes an order payment system and a card management system, and the receiving of a first recharge application instruction sent by a recharge application based on first transaction record data and the construction of a card transaction record include: Checking the order status of the target order through the order payment system; If the order status is the first recharge in a recharge transaction, obtaining the first transaction record data based on the first recharge application instruction through the order payment system; Sending a recharge application to the card management system through the order payment system, so that the card management system constructs a first recharge record and updates the first recharge record to a gray transaction state; Generate the recharge instruction through the card management system, and send the recharge instruction to the order payment system, so that the order payment system sends the recharge instruction to the recharge application; The card transaction data is sent to the order payment system through the card management system, so that the order payment system updates the order status to the gray transaction status and constructs the card transaction record based on the card transaction data.

7. The method according to claim 6, characterized in that The secondary data reading and comparison of the physical card, if the comparison is successful, the recharge is successful includes: Receiving, through the order payment system, a second recharge application instruction sent by the recharge application, wherein the second recharge application instruction is sent by the recharge application based on the second transaction record data after reading the second transaction record data in the physical card; The second transaction record data is compared with the first transaction record data and / or the card transaction record through the order payment system. If the comparison is successful, the recharge is successful.

8. The method according to claim 7, characterized in that The step of comparing the second transaction record data with the first transaction record data and / or the card transaction record through the order payment system, and if the comparison is successful, the recharge is successful, including: comparing the first transaction record data and the second transaction record data through the order payment system; If the comparison between the first transaction record data and the second transaction record data fails, updating the order status to require manual verification; If the first transaction record data and the second transaction record data are successfully compared, then the second transaction record is compared with the card transaction record; If the second transaction record and the card transaction record are successfully compared, the order status is updated to recharge successful; If the comparison between the second transaction record and the card transaction record fails, the order status is updated to recharge failure.

9. A recharging device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the recharging method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the recharging method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Public transit card flash recharge system and use method thereof

    CN105608570A

  • Multifunctional card system based on NFC

    CN107451637A

  • Recharging method and system of value card

    CN108280643A

  • A bus card transaction settlement management system and a method thereof

    CN109598502A

  • Transaction authentication platform

    US20180285868A1

Cited By

  • Compositions and methods for protecting against airborne pathogens and irritants

    KR1020180120204A

  • Compositions and methods for protecting against airborne pathogens and irritants

    KR102844566B1