A payment processing method

By identifying the operating system type of the user terminal and generating targeted query commands, the problem of merchant acceptance terminals being incompatible with different operating systems has been solved, achieving efficient payment process adaptation and improved user experience.

CN123140948APending Publication Date: 2026-11-20GUANGDONG TELEPOWER TELECOM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610192119.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing electronic payment solutions are often heavily customized for specific operating systems, resulting in merchant payment terminals being unable to fully support different types of user terminals, increasing hardware costs and operational and maintenance complexity.

Method used

A payment processing method is provided, which connects the merchant acceptance terminal to the equipment management platform, identifies the operating system type of the user terminal, and generates targeted query instructions to achieve seamless verification and payment requests with the payment system, adapting to user terminals with different operating systems.

Benefits of technology

It improves the compatibility of merchant acceptance terminals with user terminals of various operating system types, enhances payment success rate and user experience, and reduces the cost of multi-system adaptation and the complexity of equipment deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140948A_ABST
    Figure CN123140948A_ABST
Patent Text Reader

Abstract

The application discloses a payment processing method applied to a merchant receiving machine tool, and the method comprises the following steps: setting an NFC chip to a reading mode and sending a radio frequency activation instruction according to a label parameter sent by a device management platform; establishing an NFC communication link according to the NFC chip and a target payment application of a user terminal, and receiving an operating system type of the user terminal through the link; generating a query instruction according to the operating system type, initiating a verification request of whether a hard wallet of the user terminal is opened to a payment system according to the query instruction, and receiving a verification result; according to the verification result, reading a payment label code value generated by the target payment application on the user terminal through the NFC chip or a code scanning; in a local mode, initiating a payment request to the payment system based on the code value, and in a host computer mode, synchronizing the code value to a merchant cash register system, initiating a payment request to the payment system through the merchant cash register system to complete the deduction. The method can be adapted to terminals of different operating system types, and the compatibility of the machine tool is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of payment processing technology, and in particular to a payment processing method. Background Technology

[0002] As an important component of the modern financial system, electronic payment has rapidly evolved from traditional cash payments to mobile payments based on smart terminals. Among them, Near Field Communication (NFC) payment technology has been widely used in merchant acceptance scenarios due to its convenient and efficient "tap-to-pay" experience. Users can quickly complete transactions by interacting with merchant acceptance machines through payment applications on their mobile phones and other smart terminals using NFC, greatly improving payment efficiency and user experience.

[0003] Currently, existing electronic payment solutions, especially those involving direct interaction between terminals and devices, are typically designed and optimized for specific terminal operating systems. For example, payment applications and backend systems are specifically adapted to the underlying interfaces, security architectures (such as TEE and SE), and NFC protocol stacks of different operating systems like Android, HarmonyOS, or Apple. This results in a single-system-oriented solution, where a single payment logic often only anticipates and relies on the characteristics of a particular operating system. For users with non-expected operating systems, transaction failures or experience interruptions are likely to occur. Furthermore, merchants may need to deploy multiple different acceptance devices or solutions to cover users on different systems, increasing hardware costs and operational complexity.

[0004] Therefore, offline cashier merchants face a limited number of terminal operating system types that are compatible with payment methods, which cannot fully cover all types of user terminals, resulting in poor compatibility of merchant acceptance equipment. Summary of the Invention

[0005] In order to overcome the shortcomings of the prior art, the purpose of this invention is to provide a payment processing method that can be adapted to user terminals with different operating system types, so as to improve the compatibility of merchant acceptance equipment.

[0006] This invention is implemented according to the following scheme:

[0007] A payment processing method is provided for use with merchant acceptance machines. The merchant acceptance machine is connected to an equipment management platform. In local mode, the merchant acceptance machine is connected to a payment system. In host computer mode, the merchant acceptance machine is connected to the payment system through a merchant POS system. The payment processing method includes: Based on the tag parameters sent by the device management platform, the NFC chip is set to read mode, and an RF activation command is generated and sent in the read mode; According to the radio frequency activation command, an NFC communication link is established with the target payment application of the user terminal, and the operating system type of the user terminal is received through the NFC communication link, wherein the operating system type is obtained by the target payment application; The system sends the operating system type to the payment system and receives a query instruction generated by the payment system based on the operating system type to check whether the user terminal has activated the hardware wallet. The system then initiates a verification request to the user terminal according to the query instruction and receives the verification result. Based on the verification result, the payment tag code value of the user terminal is read by NFC chip or by scanning code. The payment tag code value is generated on the user terminal by the target payment application. In local mode, a payment request is initiated to the payment system based on the payment tag code value. In host computer mode, the payment tag code value is synchronized to the merchant POS system, and a payment request is initiated to the payment system through the merchant POS system. The payment request is used to deduct money from the target payment application.

[0008] Optionally, before setting the NFC chip to read mode according to the tag parameters sent by the device management platform, the payment processing method further includes: The device parameters are sent to the device management platform for verification. After the device parameters are verified, the tag parameters sent by the device management platform are received, and the NFC chip is set to read mode.

[0009] Optionally, the device parameters include a device identifier, an asymmetric encryption public key, an asymmetric encryption private key, and a signature key, wherein the signature key is generated from the device identifier and the asymmetric encryption private key; Sending device parameters to the device management platform for verification includes: The device management platform performs a uniqueness check on the device identifier; The device management platform verifies the validity of the asymmetric encryption public key; The device management platform performs a consistency check on the signature key.

[0010] Optionally, according to the radio frequency activation command, an NFC communication link is established with the target payment application of the user terminal, including: The system receives ATQA response information returned by the user terminal based on the radio frequency activation command. The ATQA response information indicates that the user terminal has NFC functionality and supports the target payment application. Based on the ATQA response information, a communication protocol is negotiated with the target payment application of the user terminal to establish a point-to-point NFC data exchange channel, thus completing the establishment of the NFC communication link.

[0011] Optionally, the target payment application obtains the operating system type, including: The first system attribute of the user terminal is read. If the Android system parameter used to identify the Android system is read, the Android system verification is performed. If the Android system verification is successful, the operating system type is determined to be Android. If the Android system parameters are not read or the Android system verification fails, the second system attribute of the user terminal is read. If the HarmonyOS system parameters representing the HarmonyOS system are read, the HarmonyOS system verification is performed. If the HarmonyOS system verification passes, the operating system type is determined to be HarmonyOS. If the HarmonyOS system parameters are not read or the HarmonyOS system verification fails, the system name of the user terminal is read. If the Apple system name used to identify the Apple system is read, the Apple system verification is performed. If the Apple system verification passes, the operating system type is determined to be the Apple system.

[0012] Optional, Android system verification can be performed, including: The hardware identifier of the user terminal is detected, and the hardware identifier is used to determine whether the user terminal supports a trusted execution environment. If the environment interface of the trusted execution environment can be accessed and a connection can be successfully established and a valid status identifier can be obtained, then the Android system verification is successful.

[0013] Optionally, perform HarmonyOS system verification, including: The distributed capability interface of the user terminal is invoked, and the distributed capability interface is used to detect whether the user terminal supports a distributed security element; If a unique security identifier associated with the distributed security unit is detected, the HarmonyOS system verification is successful.

[0014] Optional, Apple system verification may be performed, including: The user terminal queries the payment voucher storage status based on the first preset frame of the user terminal. The payment voucher storage status is used to verify whether the SE chip of the user terminal has payment security permissions. The user terminal calls a preset interface under the second preset framework, the preset interface being used to detect whether the user terminal supports NFC function under the second preset framework; If the user terminal has payment security permissions and supports NFC functionality, the Apple system verification will pass.

[0015] Optionally, based on the verification result, the payment tag code value of the user terminal is read via NFC chip or QR code scanning, including: When the verification result indicates that the user terminal has not activated the hardware wallet, the payment tag code value of the user terminal is read by scanning the code; When the verification result indicates that the user terminal has activated the hardware wallet, the user terminal is locked based on the anti-collision algorithm, and the payment tag code value of the user terminal is read through the NFC chip.

[0016] Optionally, generating the payment request includes: The payment tag code value, the device identifier, the user terminal's hardware wallet token, and the payment amount are combined to obtain a payment message; Dynamically generate a device session key based on the device identifier; The payment message is encrypted using the asymmetric encryption public key and the device session key to generate a payment request for deducting the payment amount from the target payment application.

[0017] Compared with the prior art, the beneficial effects of the payment processing method of the present invention are as follows: by obtaining the operating system type of the user terminal of the target payment application, the merchant acceptance device can accurately and seamlessly identify the system environment of the current payment user terminal. At the same time, based on the operating system type, a targeted query instruction is generated and a verification is initiated to the payment system, so that the pre-verification step of the payment process matches the operating system type of the user terminal. This enables the merchant acceptance device to be compatible with user terminals of multiple operating system types, improves the payment success rate and user experience, and reduces the multi-system adaptation cost and equipment deployment complexity for merchants. Attached Figure Description

[0018] Figure 1 This is a flowchart of the payment processing method of the present invention. Detailed Implementation

[0019] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0020] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0021] See Figure 1 As shown, the present invention provides a payment processing method applied to a merchant acceptance machine. The merchant acceptance machine is connected to an equipment management platform. In local mode, the merchant acceptance machine is connected to the payment system and can independently complete the entire payment process. In host computer mode, the merchant acceptance machine is connected to the payment system through the merchant POS system, and the merchant acceptance machine synchronizes order information and payment results through the merchant POS system. Therefore, the present invention does not require a single device form and can flexibly adapt to the needs of different merchants' scenarios, breaking through the limitations of the existing technology that can only be in a fixed form, such as only being able to work completely independently or only relying on the merchant POS system to complete the payment.

[0022] Payment processing methods include: S1: Based on the tag parameters sent by the device management platform, the NFC chip is set to read mode. Specifically, the NFC control module of the merchant acceptance machine sets the NFC chip to read mode to enable interaction with the NFC chip of the user terminal. In read mode, the merchant acceptance machine generates and sends radio frequency activation commands to achieve accurate card detection and only respond to user terminals that support the target payment protocol.

[0023] In one embodiment of the present invention, before setting the NFC chip to read mode according to the tag parameters sent by the device management platform, the payment processing method further includes: sending device parameters to the device management platform for verification; and after the device parameters are verified, receiving the tag parameters sent by the device management platform and setting the NFC chip to read mode.

[0024] In one embodiment of the present invention, the device parameters include a device identifier, an asymmetric encryption public key, an asymmetric encryption private key, and a signature key. The signature key is generated from the device identifier and the asymmetric encryption private key. The device identifier is a unique device identifier pre-assigned by the device management platform when the merchant's acceptance machine leaves the factory. Simultaneously, the device management platform also provides the merchant's acceptance machine with a key pair containing an asymmetric encryption algorithm. This key pair includes an asymmetric encryption private key and an asymmetric encryption public key. The asymmetric encryption private key is stored in the security chip of the merchant's acceptance machine. The asymmetric encryption public key is bound to the device identifier and then registered in the device information database of the device management platform. The signature key is generated by the merchant's acceptance machine based on the device identifier, the asymmetric encryption private key, and the current timestamp. Specifically, it is obtained by encrypting a mixture of data composed of the device identifier, the current timestamp, and a random number using the asymmetric encryption private key. The current timestamp is the time when the verification was initiated. The signature key is used for identity verification during the current verification, ensuring the uniqueness and immutability of the verification request.

[0025] In one embodiment of the present invention, sending device parameters to the device management platform for verification includes: the device management platform performing uniqueness verification on the device identifier; the device management platform performing legality verification on the asymmetric encryption public key; and the device management platform performing consistency verification on the signature key.

[0026] In one embodiment of the present invention, the device management platform performs a uniqueness verification of the device identifier, including: the device management platform queries the built-in device information database to verify whether the device identifier exists and whether its status is enabled; if the device identifier is not registered, has been deregistered, or has a duplicate registration record, the verification fails, the subsequent process is terminated, and a log indicating the access of an unknown device is recorded in the TelpoOA system; if the device identifier is valid, the verification session status corresponding to the device identifier is marked as processing to prevent the same device identifier from initiating multiple verification requests at the same time.

[0027] In one embodiment of the present invention, the device management platform verifies the legitimacy of the asymmetric encryption public key, including: based on the device identifier sent by the merchant's acceptance device, the device management platform extracts the pre-registered public key of the device identifier from its built-in device information database, performs a bidirectional comparison between the pre-registered public key and the asymmetric encryption public key sent by the merchant's acceptance device, and verifies whether the asymmetric encryption public key sent by the merchant's acceptance device conforms to the SM2 algorithm standard format, such as key length, encoding rules, etc.; then, it verifies whether the hash value of the asymmetric encryption public key sent by the merchant's acceptance device is consistent with the pre-registered public key using national cryptographic algorithm tools, to ensure that the asymmetric encryption public key has not been replaced; If the asymmetric encryption public key format is invalid or inconsistent with the pre-registered public key, the asymmetric encryption public key verification fails. The TelpoOA system will update the log to indicate that the device public key is abnormal, and the verification permission of the device identifier will be temporarily locked, prohibiting the initiation of verification requests again for 10 minutes. Otherwise, the validity verification of the asymmetric encryption public key passes.

[0028] In one embodiment of the present invention, the device management platform performs consistency verification on the signature key, including: based on the device identifier sent by the merchant's acceptance device, the device management platform extracts the pre-registered public key of the device identifier from its built-in device information database, that is, the asymmetric encryption public key sent by the merchant's acceptance device to the device management platform and passed the legality verification; calls the national cryptographic decryption interface to decrypt the signature key, extracts the mixed data before encryption by the asymmetric encryption private key, and then verifies whether the device identifier in the mixed data is consistent with the device identifier sent by the merchant's acceptance device, whether the timestamp in the mixed data is within a valid time window, such as 5 minutes, and whether the random number in the mixed data is not repeated to avoid replay attacks; if decryption fails, the mixed data is inconsistent with the device parameters sent by the merchant's acceptance device, or the timestamp expires (not within a valid time window), the signature key consistency verification fails and an early warning log is recorded; otherwise, the signature key consistency verification passes. At this time, the three verifications of device identifier uniqueness verification, asymmetric encryption public key legality verification, and signature key consistency verification all pass, that is, the device parameter verification passes.

[0029] In one embodiment of the present invention, after the device parameters are verified, the device management platform dynamically generates a unique device session key based on the national cryptographic algorithm support of the bouncycastle1.66 encryption suite, combined with the device identifier, the current verification timestamp, and a random number. This key is encrypted and stored using the SM4 algorithm, and the device session key is strongly bound to the device identifier. The validity period is set to the cycle of the current payment process, for example, 30 minutes. Finally, the device session key is returned to the merchant's acceptance terminal through an encrypted channel. This device session key is the tag parameter sent by the device management platform. At the same time, the TelpoOA system is connected to record the key generation, binding relationship, and lifecycle log to ensure that the device session key is only usable for the current payment process and automatically expires after the session ends. If the merchant's acceptance terminal is in host computer mode, the tag parameter sent by the device management platform is synchronized to the merchant's POS system.

[0030] S2: Based on the radio frequency activation command, establish an NFC communication link with the target payment application of the user terminal, and receive the operating system type of the user terminal through the NFC communication link. The operating system type is obtained by the target payment application. In one embodiment of the present invention, the radio frequency activation command is actively generated and sent by the NFC control module of the merchant's acceptance device in accordance with the ISO / IEC 14443 Type A protocol standard. This command serves as the wake-up command for the NFC chip in read mode and has precise signal directional transmission characteristics.

[0031] In one embodiment of the present invention, establishing an NFC communication link with a target payment application of a user terminal according to a radio frequency activation command includes: receiving ATQA response information returned by the user terminal based on the radio frequency activation command, wherein the ATQA response information indicates that the user terminal has NFC functionality and supports the target payment application; negotiating a communication protocol with the target payment application of the user terminal based on the ATQA response information, establishing a point-to-point NFC data exchange channel, and completing the establishment of the NFC communication link.

[0032] After sensing the radio frequency activation command, if the user terminal's NFC chip supports the ISO / IEC 14443 Type A protocol, it will automatically return ATQA response information. This ATQA response information includes core information such as the user terminal's NFC chip protocol type and throughput rate. The merchant's NFC control module listens for and intercepts this ATQA response information in real time. Through its built-in protocol parsing logic, it extracts the protocol identification information from the ATQA response information and compares it with the system's preset target payment protocol, such as the protocol corresponding to AID, EMV interface protocol, and UnionPay Paypass / Paywave protocol.

[0033] During the verification process, the NFC control module of the merchant's acceptance terminal accurately filters user terminals whose protocol types fully match. For user terminals that do not support the target payment protocol, their responses are ignored and they do not proceed to the subsequent interaction process. If the NFC control module of the merchant's acceptance terminal does not receive any ATQA response information, or if all ATQA response information does not match the target payment protocol, it will be determined as a card detection failure. Subsequently, it will automatically switch to Tag mode according to the dual-mode switching logic, generate a dynamic wake-up command to trigger the user terminal payment application to start, and ensure the payment process is continuous. If a user terminal response matching the target payment protocol is detected, the response characteristics of the user terminal are recorded. Then, the NFC control module of the merchant's acceptance device sends an instruction containing a unique identifier of the target payment application, such as the application identifier SELECT AID, to the user terminal to wake up the corresponding payment application on the user terminal.

[0034] After the user terminal receives the instruction, the target payment application parses the content and verifies its legality. If the verification is successful, it returns APDU response information containing the application status and terminal security capabilities; if the verification fails, it returns an error code. Finally, the NFC control module of the merchant acceptance device further uses the UID card selection anti-collision algorithm to lock the user terminal and establish a one-to-one communication link to avoid signal conflicts caused by multiple user terminals responding simultaneously. Specifically, the NFC control module of the merchant acceptance device sends a link establishment confirmation instruction to the user terminal. After the user terminal returns a confirmation response, it is determined that the NFC communication link has been successfully established.

[0035] At this time, the NFC control module of the merchant acceptance machine will synchronize the successful card check status to the interactive prompt module of the merchant acceptance machine, provide feedback on the successful card check, and synchronize key information such as the user terminal's protocol type and UID to the payment system.

[0036] In one embodiment of the present invention, the target payment application obtains the operating system type, including: The first system attribute of the user terminal is read. If the Android system parameter used to identify the Android system is read, the Android system verification is performed. If the Android system verification is successful, the operating system type is determined to be Android. The first system attribute is the underlying terminal attribute, and the Android system parameter is the Build.VERSION.SDK_INT system parameter. If the Android system parameters are not read or the Android system verification fails, the second system attribute of the user terminal is read. If the HarmonyOS system parameter is read, the HarmonyOS system verification is performed. If the HarmonyOS system verification passes, the operating system type is determined to be HarmonyOS. The second system attribute is the ohos.build.os.type system attribute, and the HarmonyOS system parameter is the harmony parameter. If the HarmonyOS system parameters are not read or the HarmonyOS system verification fails, the system name of the user terminal will be read. If the Apple system name used to identify the Apple system is read, the Apple system verification will be performed. If the Apple system verification passes, the operating system type will be determined to be the Apple system; where the Apple system name is iOS.

[0037] In one embodiment of the present invention, Android system verification includes: detecting the hardware identifier of the user terminal, the hardware identifier being used to determine whether the user terminal supports the TEE trusted execution environment; accessing the environment interface android.security.keystore.KeyStore of the TEE trusted execution environment, and if a connection can be successfully established and a valid TEE status identifier is obtained, then the Android system verification is passed; wherein, the hardware identifier includes the Build.MANUFACTURER identifier and the Build.MODEL identifier.

[0038] In one embodiment of the present invention, the HarmonyOS system verification includes: calling the distributed capability interface ohos.distributedschedule.interwork.DeviceManager of the user terminal, which is used to detect whether the user terminal supports the distributed security unit; if a unique security identifier associated with the distributed security unit is detected, the HarmonyOS system verification is passed.

[0039] In one embodiment of the present invention, Apple system verification includes: querying the payment credential storage status based on a first preset framework of the user terminal, the payment credential storage status being used to verify whether the SE chip of the user terminal has payment security permissions; calling a preset interface of the user terminal under a second preset framework, the preset interface being used to detect whether the user terminal supports NFC function under the second preset framework; if the user terminal has payment security permissions and supports NFC function, the Apple system verification is successful; wherein, the first preset framework is the PassKit framework, the second preset framework is the CoreNFC framework, and the preset interface is the NFCNDEFReaderSession interface.

[0040] In one embodiment of the present invention, if the operating system type is Android, the target payment application automatically calls the getAndroidApi interface of the system adaptation module; if the operating system type is HarmonyOS, the target payment application triggers the getHarmonyApi interface call; if the operating system type is Apple, the target payment application calls the getIOSApi interface. The present invention effectively improves the compatibility of merchant acceptance equipment by adapting to user terminals with different operating system types.

[0041] S3: Send the operating system type to the payment system, and receive the query instruction generated by the payment system based on the operating system type to check whether the user terminal has activated the hardware wallet. Then, send a verification request to the user terminal according to the query instruction and receive the verification result. In one embodiment of the present invention, the order processing module of the payment system issues a query instruction for the status of the hard wallet to the merchant acceptance device according to the operating system type of the user terminal. The query instruction is transmitted using SM2 asymmetric encryption and additional device session key verification throughout the transmission process. The query instruction is transmitted from the merchant acceptance device to the user terminal via the NFC communication link.

[0042] For Android users, the query command is adapted to the TEE (Trusted Execution Environment) interface and includes a unique identifier for querying the hardware wallet registration status. For HarmonyOS users, the query command matches the communication protocol of the distributed security unit and carries security verification parameters associated with the distributed device. For Apple users, the query command conforms to the CoreNFC framework specification and points to the query entry point in the hardware wallet storage area of ​​the SE chip.

[0043] S4: Based on the verification result, the payment tag code value of the user terminal is read through the NFC chip or by scanning the code. The payment tag code value is generated on the user terminal by the target payment application. In one embodiment of the present invention, the payment tag code value of the user terminal is read by means of an NFC chip or by scanning a QR code, according to the verification result. This includes: when the verification result indicates that the user terminal has not activated the hardware wallet, the payment tag code value of the user terminal is read by scanning a QR code; when the verification result indicates that the user terminal has activated the hardware wallet, the user terminal is locked based on an anti-collision algorithm, and the payment tag code value of the user terminal is read by means of an NFC chip.

[0044] In one embodiment of the present invention, the NFC control module of the merchant acceptance device initiates an anti-collision cascading query process according to the ISO / IEC 14443 Type A protocol. By sending anti-collision commands at different levels, such as ANTICOLLISION LEVEL 1 and ANTICOLLISION LEVEL 2, it gradually collects the unique identifiers (UIDs) of all user terminals in the radio frequency field. Throughout the process, the merchant acceptance device interacts with each user terminal one by one through a time-division multiplexing mechanism to avoid command transmission conflicts and ensure that the unique identifiers (UIDs) of all user terminals can be accurately captured.

[0045] First, a Level 1 anti-collision command is sent. This command triggers all user terminals within the radio frequency field that support the target payment protocol to return the first 4 bytes (UID0-UID3) of their unique identifier UID. After the NFC control module of the merchant's acceptance device receives and records part of the UID of all user terminals, if it detects a duplicate 4-byte UID fragment, it will send a Level 2 anti-collision command, triggering the user terminal to return the subsequent bytes (UID4-UID6) of its unique identifier UID, until the complete unique identifier UID (4 bytes or 7 bytes compliant with the ISO / IEC 14443 protocol) of each user terminal is collected.

[0046] Next, the NFC control module of the merchant acceptance machine matches and filters the unique identifiers (UIDs) of all user terminals collected with the previously acquired key information, including matching the identifiers of user terminals that have activated hardware wallets. The payment system simultaneously informs the merchant acceptance machine of the hardware wallet association characteristics of the user terminal. The merchant acceptance machine only retains the unique identifiers (UIDs) that match these characteristics; invalid or illegal unique identifiers (UIDs) are excluded, such as the unique identifiers of terminals that have been deregistered, the unique identifiers of terminals that do not support the target payment protocol, and the unique identifiers (UIDs) whose formats do not conform to the specifications.

[0047] Ultimately, the NFC control module of the merchant acceptance device filters out the unique identifier UID of the user terminal that meets the conditions of having activated a hardware wallet and supporting the target protocol. The NFC control module of the merchant acceptance device sends a SELECT UID lock command to lock the user terminal used for payment.

[0048] S5: In local mode, a payment request is initiated to the payment system based on the payment tag code value. In host computer mode, the payment tag code value is synchronized to the merchant POS system, and a payment request is initiated to the payment system through the merchant POS system. The payment request is used to deduct the amount from the target payment application.

[0049] In one embodiment of the present invention, generating a payment request includes: combining a payment tag code value, a device identifier, a user terminal's hardware wallet token, and a payment amount to obtain a payment message; dynamically generating a device session key based on the device identifier; encrypting the payment message using an asymmetric encryption public key and the device session key to generate a payment request for deducting the payment amount from the target payment application.

[0050] In one embodiment of the present invention, after receiving a payment request, the payment system executes a verification and deduction process, including: the payment system verifies the legality of the binding between the order information and the device session key, and dynamically verifies the hardware wallet token in the payment request to verify its uniqueness, timeliness, and corresponding balance adequacy; then, it completes the fund deduction in an atomic operation to ensure the verification is successful; after successful deduction, the payment system generates a response message containing order details and a transaction success identifier, and returns it to the merchant acceptance terminal. Finally, the merchant acceptance terminal sends payment confirmation information to the user terminal based on the response message to complete the payment interaction loop.

[0051] This invention obtains the operating system type of the user terminal by targeting the payment application, enabling merchant acceptance devices to accurately and seamlessly identify the current payment user terminal's system environment. Simultaneously, it generates targeted query instructions based on the operating system type and initiates verification to the payment system, ensuring that the pre-verification step of the payment process matches the user terminal's operating system type. This allows merchant acceptance devices to be compatible with user terminals of multiple operating system types, improving payment success rate and user experience, and reducing merchants' multi-system adaptation costs and equipment deployment complexity.

[0052] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A payment processing method, characterized in that, Applied to merchant acceptance machines, the merchant acceptance machine is connected to an equipment management platform. In local mode, the merchant acceptance machine is connected to a payment system. In host computer mode, the merchant acceptance machine is connected to the payment system through a merchant POS system. The payment processing method includes: Based on the tag parameters sent by the device management platform, the NFC chip is set to read mode, and an RF activation command is generated and sent in the read mode; According to the radio frequency activation command, an NFC communication link is established with the target payment application of the user terminal, and the operating system type of the user terminal is received through the NFC communication link, wherein the operating system type is obtained by the target payment application; The system sends the operating system type to the payment system and receives a query instruction generated by the payment system based on the operating system type to check whether the user terminal has activated the hardware wallet. The system then initiates a verification request to the user terminal according to the query instruction and receives the verification result. Based on the verification result, the payment tag code value of the user terminal is read by NFC chip or by scanning code. The payment tag code value is generated on the user terminal by the target payment application. In local mode, a payment request is initiated to the payment system based on the payment tag code value. In host computer mode, the payment tag code value is synchronized to the merchant POS system, and a payment request is initiated to the payment system through the merchant POS system. The payment request is used to deduct money from the target payment application.

2. The payment processing method according to claim 1, characterized in that, Before setting the NFC chip to read mode according to the tag parameters sent by the device management platform, the payment processing method further includes: The device parameters are sent to the device management platform for verification. After the device parameters are verified, the tag parameters sent by the device management platform are received, and the NFC chip is set to read mode.

3. The payment processing method according to claim 2, characterized in that, The device parameters include a device identifier, an asymmetric encryption public key, an asymmetric encryption private key, and a signature key, wherein the signature key is generated from the device identifier and the asymmetric encryption private key. Sending device parameters to the device management platform for verification includes: The device management platform performs a uniqueness check on the device identifier; The device management platform verifies the validity of the asymmetric encryption public key; The device management platform performs a consistency check on the signature key.

4. The payment processing method according to claim 1, characterized in that, According to the radio frequency activation command, an NFC communication link is established with the target payment application of the user terminal, including: The system receives ATQA response information returned by the user terminal based on the radio frequency activation command. The ATQA response information indicates that the user terminal has NFC functionality and supports the target payment application. Based on the ATQA response information, a communication protocol is negotiated with the target payment application of the user terminal to establish a point-to-point NFC data exchange channel, thus completing the establishment of the NFC communication link.

5. The payment processing method according to claim 1, characterized in that, The target payment application obtains the operating system type, including: The first system attribute of the user terminal is read. If the Android system parameter used to identify the Android system is read, the Android system verification is performed. If the Android system verification is successful, the operating system type is determined to be Android. If the Android system parameters are not read or the Android system verification fails, the second system attribute of the user terminal is read. If the HarmonyOS system parameters representing the HarmonyOS system are read, the HarmonyOS system verification is performed. If the HarmonyOS system verification passes, the operating system type is determined to be HarmonyOS. If the HarmonyOS system parameters are not read or the HarmonyOS system verification fails, the system name of the user terminal is read. If the Apple system name used to identify the Apple system is read, the Apple system verification is performed. If the Apple system verification passes, the operating system type is determined to be the Apple system.

6. A payment processing method according to claim 5, characterized in that, Android system verification includes: The hardware identifier of the user terminal is detected, and the hardware identifier is used to determine whether the user terminal supports a trusted execution environment. Accessing the environment interface of the trusted execution environment, if a connection can be successfully established and a valid status identifier can be obtained, then the Android system verification is successful.

7. A payment processing method according to claim 5, characterized in that, Conducting HarmonyOS system verification includes: The distributed capability interface of the user terminal is invoked, and the distributed capability interface is used to detect whether the user terminal supports a distributed security element; If a unique security identifier associated with the distributed security unit is detected, the HarmonyOS system verification is successful.

8. A payment processing method according to claim 5, characterized in that, Apple system verification includes: The user terminal queries the payment voucher storage status based on the first preset frame of the user terminal. The payment voucher storage status is used to verify whether the SE chip of the user terminal has payment security permissions. The user terminal calls a preset interface under the second preset framework, the preset interface being used to detect whether the user terminal supports NFC function under the second preset framework; If the user terminal has payment security permissions and supports NFC functionality, the Apple system verification will pass.

9. A payment processing method according to claim 1, characterized in that, Based on the verification result, the payment tag code value of the user terminal is read via NFC chip or QR code scanning, including: When the verification result indicates that the user terminal has not activated the hardware wallet, the payment tag code value of the user terminal is read by scanning the code; When the verification result indicates that the user terminal has activated the hardware wallet, the user terminal is locked based on the anti-collision algorithm, and the payment tag code value of the user terminal is read through the NFC chip.

10. A payment processing method according to claim 2, characterized in that, Generating the payment request includes: The payment tag code value, the device identifier, the user terminal's hardware wallet token, and the payment amount are combined to obtain a payment message; Dynamically generate a device session key based on the device identifier; The payment message is encrypted using the asymmetric encryption public key and the device session key to generate a payment request for deducting the payment amount from the target payment application.