The present disclosure relates to the field of communications technologies, and in particular, to a credit payment method and apparatus based on a mobile terminal embedded secure element (eSE).
Currently, public transportation mainly includes ground transportation and subways. When users purchase public transportation tickets, they normally use cash or pre-paid cards. Cash payment is mainly used for the public transportation system, and the user can buy a ticket by inserting coins. Users can alternatively get pre-paid metro cards, and take a bus or subway by scanning the card.
When a user purchases a bus ticket in cash, because many buses are self-serving and provide no exchange, the user needs to prepare the exact amount of fares in advance, which can be inconvenient to the user. Moreover, after close of business, bus system staff needs to count all the small fares that are put in by the self-service bus users, bringing extra work to the staff. When a user uses a metro card to take the public transportation, because most current metro cards are non-contact radio frequency (RF) cards, user-caused damages and wears, such as bending the card, or abrasion of the card surface are easily made to the metro card during its normal use. When a user uses a single-ride card to take public transportation, the user normally buys the single-ride card in small fares, and the staff also needs to count the small fares.
When a user uses a reusable pre-paid card to take public transportation, because the reusable pre-paid card is unregistered and its loss cannot be reported, it can bring the user financial loss if the card is lost. The user also needs to purchase, recharge, and get a refund for the prepaid card at specified locations, which makes it inconvenient to the user.
To resolve problems in related technologies, the present disclosure provides a credit payment method and apparatus based on a mobile terminal embedded secure element (eSE).
According to a first aspect of the implementations of the present disclosure, a credit payment method based on a mobile terminal eSE is provided, and is applied to a mobile terminal, and the method includes: sending transaction information to a transaction terminal; receiving current payment transaction deduction information that is sent by the transaction terminal based on the transaction information; generating a payment authorization license based on the deduction information and the transaction information by using an eSE of the mobile terminal; and sending the payment authorization license to the transaction terminal, so that the transaction terminal completes the current payment transaction based on the received payment authorization license.
After sending transaction information to a transaction terminal, the method further includes: receiving an application public key certificate reading instruction sent by the transaction terminal; and sending an application public key certificate to the transaction terminal based on the application public key certificate reading instruction.
Further, generating a payment authorization license by using an eSE of the mobile terminal includes: generating signature data based on the deduction information by using an application private key stored on the eSE; generating a transaction authentication code (TAC) based on the deduction information and the transaction information by using a TAC sub-key that is pre-generated on the eSE; and using the signature data and the TAC as the payment authorization license.
Further, the payment method is applied to payment for bus traveling, and the transaction information includes a payment card number, an available limit, and an entrance/exit flag.
Further, the deduction information includes a deduction amount, a date and time of the current payment transaction, an entrance/exit flag of the current payment transaction sign, and station information of the current payment transaction.
The method further includes: subtracting the deduction amount from the available limit in the transaction information based on the deduction amount in the current payment transaction deduction information, to obtain a current available limit; and using the current available limit as an available limit corresponding to a user in the mobile terminal.
According to a second aspect of the implementations of the present disclosure, a credit payment method based on a mobile terminal eSE is provided, and is applied to a transaction terminal, and the method includes: receiving transaction information sent by a mobile terminal; generating current payment transaction deduction information based on the transaction information; sending the deduction information to the mobile terminal; and when receiving a payment authorization license, determining, based on the payment authorization license, that the current payment transaction is completed.
After receiving transaction information sent by a mobile terminal, the method further includes: sending an application public key certificate reading instruction to the mobile terminal; receiving an application public key certificate sent by the predetermined mobile terminal; verifying the application public key certificate by using a credit authorization public key locally stored on the transaction terminal; and when an application public key is restored from the application public key certificate during verification, performing the step of generating current payment transaction deduction information.
Further, the payment authorization license includes signature data and a TAC, and the determining, based on the payment authorization license, that the current payment transaction is completed includes: verifying the signature data by using the application public key; generating a transaction log when the signature data is verified; and sending the transaction log to a predetermined server, so that the predetermined server deducts a corresponding amount of money from a user account corresponding to the mobile terminal based on the transaction log, where the transaction log includes a deduction amount, a transaction date, a transaction time, a transaction terminal ID, a payment card number, an available limit, and a TAC.
Further, the method is applied to payment for bus traveling, and the transaction information includes at least an available limit and an entrance/exit flag, and the method further includes: determining whether the available limit in the transaction information is greater than or equal to a predetermined threshold; and if the available limit is greater than or equal to the predetermined threshold, checking whether the entrance/exit flag in the transaction information is an exited state; and if the entrance/exit flag in the transaction information is an exited state, performing the step of sending an application public key certificate reading instruction to the mobile terminal.
According to a third aspect of the implementations of the present disclosure, a credit payment method based on a mobile terminal eSE is provided, and is applied to a mobile terminal, and the method includes: separately generating an application public key and an application private key by using an eSE of the mobile terminal; sending the application public key to a predetermined server, so that the predetermined server signs the application public key by using a locally stored authorization private key to generate an application public key certificate; obtaining the public key certificate sent by the predetermined server, and saving both the application public key certificate and the application private key on the eSE; sending a credit payment data obtaining request to the predetermined server; and receiving credit payment data sent by the predetermined server, and enabling a credit payment function of the mobile terminal based on the credit payment data by using the eSE.
The method further includes: obtaining device parameter information of the mobile terminal; sending the device parameter information to the predetermined server, so that the predetermined server determines, based on the received device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment; checking whether the credit payment enabling information sent by the predetermined server is received; and when the credit payment enabling information sent by the predetermined server is received, determining that the mobile terminal meets the hardware condition for enabling credit payment, and performing the step of separately generating an application public key and an application private key.
The method further includes: obtaining user identity information; sending the user identity information to the predetermined server, so that the predetermined server determines, based on the received user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment; checking whether security authentication success information sent by the predetermined server is received; and when the security authentication success information sent by the predetermined server is received, determining that the mobile terminal meets the security authentication condition for enabling credit payment, and performing the step of separately generating an application public key and an application private key.
The method further includes: sending a request for obtaining a predetermined installation file to the predetermined server, where the predetermined installation file includes a credit payment application and a registration script; obtaining the credit payment application and the registration script that are sent by the predetermined server; and separately installing the credit payment application and the registration script on the eSE, and performing the step of separately generating an application public key and an application private key.
According to a fourth aspect of the implementations of the present disclosure, a credit payment method based on a mobile terminal eSE is provided, and is applied to a server, and the method includes: receiving an application public key sent by a mobile terminal; signing the application public key by using an authorization private key locally stored on the server to generate an application public key certificate; sending the application public key certificate to the mobile terminal, so that the mobile terminal saves the received application public key certificate on an eSE; receiving a credit payment data obtaining request sent by the mobile terminal; generating credit payment data corresponding to the mobile terminal based on the credit payment data obtaining request, and sending the credit payment data to the mobile terminal, so that the mobile terminal enables a credit payment function of the mobile terminal based on the received credit payment data.
The method further includes: receiving device parameter information sent by the mobile terminal; determining, based on the device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment; and when the mobile terminal meets the hardware condition for enabling credit payment, sending credit payment enabling information to the mobile terminal, and performing the step of receiving an application public key sent by a mobile terminal.
The method further includes: receiving user identity information sent by the mobile terminal; determining, based on the user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment; and when the mobile terminal meets the security authentication condition for enabling credit payment, sending security authentication success information to the mobile terminal, and performing the step of receiving an application public key sent by a mobile terminal.
The method further includes: receiving a request sent by the mobile terminal for obtaining a predetermined installation file, where the predetermined installation file includes a credit payment application and a registration script; and separately sending the credit payment application and the registration script to the mobile terminal based on the request for obtaining the predetermined installation file, and performing the step of receiving an application public key sent by a mobile terminal.
According to a fifth aspect of the implementations of the present disclosure, a credit payment apparatus based on a mobile terminal eSE is provided, and the apparatus includes: a transaction information sending unit, configured to send transaction information to a transaction terminal; a deduction information receiving unit, configured to receive current payment transaction deduction information that is sent by the transaction terminal based on the transaction information; a payment authorization license generation unit, configured to generate a payment authorization license based on the deduction information and the transaction information by using an eSE of the mobile terminal; and a payment authorization license sending unit, configured to send the payment authorization license to the transaction terminal, so that the transaction terminal completes the current payment transaction based on the received payment authorization license.
The apparatus further includes: an application public key certificate reading instruction receiving unit, configured to receive an application public key certificate reading instruction sent by the transaction terminal; and an application public key certificate sending unit, configured to send an application public key certificate to the transaction terminal based on the application public key certificate reading instruction.
Further, the payment authorization license generation unit includes: a signature data generation module, configured to generate signature data based on the deduction information by using an application private key stored on the eSE; a TAC generation module, configured to generate a TAC based on the deduction information and the transaction information by using a TAC sub-key that is pre-generated on the eSE; and a payment authorization license determining module, configured to use the signature data and the TAC as a payment authorization license.
Further, when the payment apparatus is applied to payment for bus traveling, the transaction information includes a payment card number, an available limit, and an entrance/exit flag.
Further, the deduction information includes a deduction amount, a date and time of the current payment transaction, an entrance/exit flag of the current payment transaction sign, and station information of the current payment transaction.
The apparatus further includes: a current available limit generation unit, configured to subtract a deduction amount from the available limit in the transaction information based on the deduction amount in the current payment transaction deduction information to obtain a current available limit; and an available limit determining unit, configured to use the current available limit as an available limit corresponding to a user in the mobile terminal.
According to a sixth aspect of the implementations of the present disclosure, a credit payment apparatus based on a mobile terminal eSE is provided, and is applied to a transaction terminal, and the apparatus includes: a transaction information receiving unit, configured to receive transaction information sent by a mobile terminal; a deduction information generation unit, configured to generate current payment transaction deduction information based on the transaction information; a deduction information sending unit, configured to send the deduction information to the mobile terminal; and a payment transaction completion determining unit, configured to: when a payment authorization license is received, determine, based on the payment authorization license, that the current payment transaction is completed.
The apparatus further includes: an application public key certificate reading instruction sending unit, configured to send an application public key certificate reading instruction to the mobile terminal; an application public key certificate receiving unit, configured to receive an application public key certificate sent by the predetermined mobile terminal; and an application public key certificate verification unit, configured to verify the application public key certificate by using a credit authorization public key locally stored on the transaction terminal.
Further, the credit authorization license includes signature data and a TAC, and the credit transaction completion determining unit includes: a signature data verification module, configured to verify the signature data by using the application public key; a transaction log generation module, configured to generate a transaction log when the signature data is verified; and a transaction log sending module, configured to send the transaction log to a predetermined server, so that the predetermined server deducts a corresponding amount of money from a user account corresponding to the mobile terminal based on the transaction log, where the transaction log includes a deduction amount, a transaction date, a transaction time, a transaction terminal ID, a payment card number, an available limit, and a TAC.
Further, the apparatus is applied to payment for bus traveling, the transaction information includes at least an available limit and an entrance/exit flag, and the apparatus further includes a threshold determining unit and an entrance/exit flag determining unit; where the threshold determining unit is configured to determine whether the available limit in the transaction information is greater than or equal to a predetermined threshold; the entrance/exit flag determining unit is configured to: when the available limit is greater than or equal to the predetermined threshold, check whether the entrance/exit flag in the transaction information is an exited state; and the application public key certificate reading instruction sending unit is further configured to send the application public key certificate reading instruction to the mobile terminal when the entrance/exit flag in the transaction information is an exited state.
According to a seventh aspect of the implementations of the present disclosure, a credit payment apparatus based on a mobile terminal eSE is provided, and is applied to a mobile terminal, and the apparatus includes: a key generation unit, configured to separately generate an application public key and an application private key by using an eSE of the mobile terminal; an application public key sending unit, configured to send the application public key to a predetermined server, so that the predetermined server signs the application public key by using a locally stored authorization private key, to generate an application public key certificate; a public key certificate acquisition unit, configured to obtain a public key certificate sent by the predetermined server, and save both the application public key certificate and the application private key on the eSE; a credit payment data obtaining request sending unit, configured to send a credit payment data obtaining request to the predetermined server; and a credit payment data setting unit, configured to receive credit payment data sent by the predetermined server, and enable a credit payment function of the mobile terminal based on the credit payment data.
The apparatus further includes: a device parameter information acquisition unit, configured to obtain device parameter information of the mobile terminal; a device parameter information sending unit, configured to send the device parameter information to the predetermined server, so that the predetermined server determines, based on the received device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment; a credit payment enabling information check unit, configured to check whether credit payment enabling information sent by the predetermined server is received; and a credit payment hardware enabling condition, used to determine, when the credit payment enabling information sent by the predetermined server is received, that the mobile terminal meets the hardware condition for enabling credit payment.
The apparatus further includes: a user identity information acquisition unit, configured to obtain user identity information; a user identity information sending unit, configured to send the user identity information to the predetermined server, so that the predetermined server determines, based on the received user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment; a security authentication success information check unit, configured to check whether security authentication success information sent by the predetermined server is received; and a hardware enabling condition confirm unit, configured to determine, when the security authentication success information sent by the predetermined server is received, that the mobile terminal meets the security authentication condition for enabling credit payment.
The apparatus further includes: a predetermined installation file obtaining a request sending unit, configured to send a request for obtaining a predetermined installation file to the predetermined server, where the predetermined installation file includes a credit payment application and a registration script; a file acquisition unit, configured to obtain the credit payment application and the registration script that are sent by the predetermined server; and a file installation unit, configured to separately install the credit payment application and the registration script on the eSE.
According to an eighth aspect of the implementations of the present disclosure, a credit payment apparatus based on a mobile terminal eSE is provided, and is applied to a server, and the apparatus includes: an application public key receiving unit, configured to receive an application public key sent by a mobile terminal; an application public key certificate generation unit, configured to sign the application public key by using an authorization private key locally stored on the server, to generate an application public key certificate; an application public key certificate sending unit, configured to send the application public key certificate to the mobile terminal, so that the mobile terminal saves the received application public key certificate on an eSE; a credit payment data obtaining request receiving unit, configured to receive a credit payment data obtaining request sent by the mobile terminal; and a credit payment data generation unit, configured to generate credit payment data corresponding to the mobile terminal based on the credit payment data obtaining request, and send the credit payment data to the mobile terminal, so that the mobile terminal enables a credit payment function of the mobile terminal based on the received credit payment data.
The apparatus further includes: a device parameter information receiving unit, configured to receive device parameter information sent by the mobile terminal; a credit payment enabling hardware condition determining unit, configured to determine, based on the device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment; and a credit payment enabling information sending unit, configured to send credit payment enabling information to the mobile terminal when the mobile terminal meets the hardware condition for enabling credit payment.
The apparatus further includes: a user identity information receiving unit, configured to receive user identity information sent by the mobile terminal; a security authentication condition determining unit, configured to determine, based on the user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment; and a security authentication success information sending unit, configured to send security authentication success information to the mobile terminal when the user identity information meets the security authentication condition for enabling credit payment.
The apparatus further includes: a predetermined installation file obtaining request receiving unit, configured to receive a request sent by the mobile terminal for obtaining a predetermined installation file, where the predetermined installation file includes a credit payment application and a registration script; and an installation file sending unit, configured to separately send the credit payment application and the registration script to the mobile terminal based on the request for obtaining the predetermined installation file.
The technical solutions provided in the implementations of the present disclosure can include the following beneficial effects:
The credit payment method and apparatus based on a mobile terminal eSE provided in the present disclosure can be applied to a mobile terminal and a transaction terminal. After enabling a payment application, a user can use the mobile terminal to complete offline credit payment with the transaction terminal. As such, a payment transaction can be made quickly and securely, and online payment is not required, so that a problem in related technologies that the user needs to use cash, a metro card, etc. to implement a payment transaction function when taking a public transportation vehicle can be effectively resolved.
It should be understood that the previous general description and the following detailed description are merely examples and explanations, and cannot limit the present disclosure.
The accompanying drawings here are incorporated in the specification, constitute a part of the specification, show implementations that are in accordance with the present disclosure, and are used with the specification to explain a principle of the present disclosure.
Example implementations are described in detail here, and examples of the example implementations are illustrated in the accompanying drawings. When the following description relates to the accompanying drawings, unless otherwise specified, same numbers in different accompanying drawings represent same or similar elements. Implementations described in the following example implementations do not represent all implementations consistent with the present disclosure. Instead, they are examples of apparatus and methods consistent with some aspects of the present disclosure that are described in detail in the appended claims.
Mobile payment is also referred to as mobile phone payment. A user can use a mobile terminal to pay for a purchased product or service. The mobile terminal can communicate with a transaction terminal through near field communication (NFC), to make a payment transaction. NFC, also referred to as short range communication, is a short range high-frequency radio communication technology that allows electronic devices to exchange data through non-contact point-to-point data transmission. The secure nature of NFC technology shows good application prospect.
In the payment technology field, many mobile terminals with a transaction payment function have an embedded secure element (eSE) chip. The eSE chip can exist in a SIM card integrated chip, be integrated into a mobile terminal, or exist in an SD integrated chip. The eSE chip is a secured chip that is mainly responsible for data security storage, data encryption, etc. of the mobile terminal. For better description, in implementations of the present disclosure, the eSE chip is illustrated as being integrated into the mobile terminal. But it does not limit the present disclosure. The eSE on the mobile terminal is equivalent to a Java card, and complies with the JAVACARD specification and the GP specification. The Java card is an open standard formulated by Sun for a smart card development platform.
To facilitate better understanding and implementation of the present disclosure by a person skilled in the art, a correlation among a mobile terminal, a transaction terminal, and a server involved in the implementations of the present disclosure is first described briefly, such as how to transmit and process data between the terminals. Due to the wide application of the present disclosure, such as in mobile payment, for better description, the present disclosure is illustrated by a scenario where customers use mobile phone credit payment to purchase public transportation fares.
As shown in
In the implementation provided in the present disclosure, two applications can be installed on the mobile terminal. One is a credit payment application which is installed on an eSE chip of the mobile terminal and can be a credit payment application applet. For a Java card, Sun sets Applet as the object for running on its platform. The other application on the mobile terminal can be a credit authorization system application. Functions of the previous two applications on the mobile terminal can be implemented by using one application. It is not limited in the present implementation.
The transaction terminal 200 uses a strict identity security authentication mechanism, to ensure that only a user who passes identity security authentication and has enough credit limit can enable a bus credit payment application.
The credit payment application applet is installed on the eSE chip of the mobile terminal 100 with an NFC function. During personalization, it generates an application public and private key pair, and saves the application private key on the eSE chip. A security mechanism of the eSE chip ensures that data of the eSE chip is not stolen in any circumstance. An application public key is signed as an application public key certificate by using a private key in the credit authorization system, and is saved on the eSE chip. A public key in the credit authorization system is provided for the transaction terminal 200, and a storage location is determined by the transaction terminal 200. Because it is a public key, no mandatory requirement is imposed on security.
When providing a credit payment transaction, after reading the application public key certificate in the credit payment application, the transaction terminal 200 verifies the application public key certificate by using the public key in the credit authorization system, to restore the application public key. The credit payment application applet on the eSE chip generates a payment authorization license by using the application private key. The transaction terminal 200 verifies the payment authorization license by using the application public key, and then checks a security factor in the authorization license after the verification passes. After confirming security, the transaction terminal 200 performs credit accounting, and then settles a corresponding credit account at a specified time. To ensure payment security, when a quantity of use times, a limit, or an interval time exceeds a specified threshold, the mobile terminal needs to connect to a network to verify user identity information, and grant authorization again.
Data interaction between the mobile terminal 100 and the transaction terminal 200 during a payment transaction is first described below.
To resolve a related technical problem, an implementation of the present disclosure provides a credit payment method based on a mobile terminal eSE, applied to a mobile terminal side. As shown in
In step S110, send transaction information to a transaction terminal.
For better description, the transaction terminal is a bus gate.
When a user holds a mobile terminal and approaches the bus gate to make a payment transaction, because the bus gate can generate a radio frequency field, when the mobile terminal approaches the bus gate, the mobile terminal can detect the radio frequency field generated by the bus gate, and then can detect the bus gate. When the mobile terminal detects the bus gate, the mobile terminal sends transaction information to the bus gate.
In step S120, receive current payment transaction deduction information that is sent by the transaction terminal based on the transaction information.
After receiving an application public key certificate sent by the mobile terminal, the bus gate verifies the application public key certificate, generates the current payment transaction deduction information, and sends the deduction information to the mobile terminal. The mobile terminal receives the deduction information sent by the bus gate.
In step S130, generate a payment authorization license based on the deduction information and the transaction information by using an eSE of the mobile terminal.
The payment authorization license generated by the mobile terminal includes: signature data and transaction authentication code (TAC).
In step S140, send the payment authorization license to the transaction terminal, so that the transaction terminal completes the current payment transaction based on the received payment authorization license.
After receiving the payment authorization license sent by the mobile terminal, the bus gate verifies the payment authorization license. If the license is verified, it is determined that the current payment transaction is completed.
In the credit payment method based on a mobile terminal eSE provided in the present implementation of the present disclosure, when the user makes a payment transaction with the transaction terminal by using the mobile terminal, the mobile terminal successively sends, based on the relevant instruction information sent by the transaction terminal, the transaction information, the application public key certificate, and the generated payment authorization license to the transaction terminal, and the transaction terminal completes the current payment transaction based on the information sent by the mobile terminal. Compared with a problem in related technologies, in the credit payment method based on a mobile terminal eSE provided in the present implementation of the present disclosure, when making a transaction with the transaction terminal by using the mobile terminal, the user can separately make the mobile terminal and the transaction terminal be offline, so that credit accounting is used for a user account of the mobile terminal in a subsequent payment transaction process. The account is settled only after the user makes purchase by using the mobile terminal, so that the user can be protected from a capital loss risk caused by using cash in a transaction.
As refinement of the method in
In step S150, receive an application public key certificate reading instruction sent by the transaction terminal.
After the bus gate receives the transaction information sent by the mobile terminal, the bus gate sends the application public key certificate reading instruction to the mobile terminal after processing and confirming the transaction information. After the mobile terminal receives the application public key certificate reading instruction sent by the bus gate, a credit payment application on the mobile terminal reads an application public key certificate that is pre-generated and stored on the eSE of the mobile terminal.
In step S160, send an application public key certificate to the transaction terminal based on the application public key certificate reading instruction.
The credit payment application on the mobile terminal sends the read application public key certificate to the bus gate based on the application public key certificate reading instruction.
To describe in detail in the present implementation of the present disclosure, how the mobile terminal generates the payment authorization license, so the transaction terminal can complete the current payment transaction based on the authorization license sent by the mobile terminal, as refinement of the method in
In step S131, generate signature data based on the deduction information by using an application private key stored on the eSE.
The application private key is pre-generated and stored on the eSE of the mobile terminal. The credit payment application signs the deduction information by using the application private key, to generate the signature data. The deduction information includes a deduction amount, a date and time of the current payment transaction, an entrance/exit flag of the current payment transaction sign, and station information of the current payment transaction.
In step S132, generate a TAC based on the deduction information and the transaction information by using a TAC sub-key that is pre-generated on the eSE.
The credit payment application on the mobile terminal encrypts the deductible amount, the date of the current payment transaction, the time of the current payment transaction, the payment card number, the available limit, and a credit limit based on the deduction information and the transaction information, to generate the TAC. The credit limit is a maximum available amount authorized by a credit authorization system to the user in an offline mode.
The deduction information includes: the deduction amount, the date of the current payment transaction, the time of the current payment transaction, the entrance/exit flag of the current payment transaction sign, and the station information of the current payment transaction.
In step S133, use the signature data and the TAC as the payment authorization license.
The credit payment application can send the signature data and the TAC to the bus gate separately as the payment authorization license, or can send the signature data and the TAC together to the bus gate as a credit authorization license.
In addition, when the payment method is applied to payment for bus traveling, the transaction information includes a payment card number, an available limit, and an entrance/exit flag. The payment card number is a unique character code generated by the credit authorization system for each user's credit payment application. The available limit is an amount of money that the user can use currently. The TAC sub-key is obtained by a server in the credit authorization system based on a card number hash by using a TAC parent private key.
As refinement of the method in
In step S170, subtract the deduction amount from the available limit in the transaction information based on the deduction amount in the current payment transaction deduction information, to obtain a current available limit.
In step S180, use the current available limit as an available limit corresponding to a user in the mobile terminal.
To describe a transaction payment process between the mobile terminal and the transaction terminal in detail, an implementation of the present disclosure provides an execution procedure of a credit payment method based on mobile terminal eSE on a transaction terminal side. As shown in
In step S610, receive transaction information sent by a mobile terminal.
A bus gate receives the transaction information sent by the mobile terminal. The transaction information includes a payment card number, an available limit, an entrance/exit flag, and information about a previous transaction. The bus gate checks content of the transaction information, for example, checking information such as an available limit of an account corresponding to the mobile terminal, the entrance/exit flag, etc. When the content is verified as qualified, the bus gate sends an application public key certificate reading instruction to the mobile terminal.
In step S620, generate current payment transaction deduction information based on the transaction information.
The bus gate verifies an application public key certificate sent by the mobile terminal. If the verification fails, the current payment transaction ends. If an application public key is restored from the application public key certificate, the verification succeeds, and the current payment transaction deduction information is generated. Notably, the current payment transaction deduction information can also be referred to as a deduction instruction, so the mobile terminal can generate a payment authorization license after receiving the deduction information (deduction instruction) sent by the bus gate.
The current payment transaction deduction information includes a deduction amount, a date and time of the current payment transaction, an entrance/exit flag of the current payment transaction sign, and station information of the current payment transaction. The deduction amount is calculated by the bus gate based on information such as the entrance/exit flag of the current payment transaction.
In step S630, send the deduction information to the mobile terminal.
The bus gate sends the generated deduction information to the mobile terminal, so that after receiving the deduction information, the mobile terminal generates the payment authorization license based on the deduction information and the transaction information by using an eSE of the mobile terminal.
In step S640, when the payment authorization license is received, determine, based on the payment authorization license, that the current payment transaction is completed.
The payment authorization license includes: signature data and TAC. The bus gate verifies the signature data in the payment authorization license. If the verification fails, the current payment transaction ends. If the verification succeeds, a transaction log of the current payment transaction is recorded.
As refinement of the method in
In step S650, send an application public key certificate reading instruction to the mobile terminal.
In step S660, receive an application public key certificate sent by the predetermined mobile terminal.
After the bus gate sends the application public key certificate reading instruction to the mobile terminal, the mobile terminal sends the application public key certificate to the bus gate based on the instruction, and the bus gate receives the application public key certificate sent by the mobile terminal.
In step S670, verify the application public key certificate by using a credit authorization public key locally stored on a transaction terminal.
To determine whether the received application public key certificate is correct, and to use related information in the public key certificate, the application public key certificate needs to be verified by using the credit authorization public key. The credit authorization public key can be pre-stored on the bus gate.
When the application public key is restored from the application public key certificate during verification, step S620 is performed.
To describe in detail how the transaction terminal completes the current payment transaction based on the authorization license sent by the mobile terminal in the present implementation of the present disclosure, as refinement of the method in
In step S641, verify the signature data by using the application public key.
The application public key is restored by the bus gate from the payment authorization license sent by the mobile terminal, and the application public key checks whether related information in the signature data matches corresponding information in the application public key. If they match, the verification succeeds.
In step S642, generate a transaction log when the signature data is verified.
After the bus gate verifies the signature data, the transaction log of the current payment is generated. The transaction log includes: a deduction amount, a transaction date, a transaction time, a transaction terminal ID, a payment card number, an available limit, and a TAC.
In step S643, send the transaction log to a predetermined server, so that the predetermined server deducts a corresponding amount of money from a user account corresponding to the mobile terminal based on the transaction log.
As shown in
In step S691, determine whether the available limit in the transaction information is greater than or equal to a predetermined threshold.
If the available limit is greater than or equal to the predetermined threshold, step S692 is performed.
In step S692, check whether the entrance/exit flag in the transaction information is an exited state.
If the entrance/exit flag in the transaction information is an exited state, step S610 is performed.
Step S691 is mainly to enable the bus gate to check, based on the transaction information sent by the mobile terminal, whether an available limit of a user account corresponding to the mobile terminal is enough to pay for the current payment transaction. If the available limit is insufficient, the current payment transaction is rejected. If the available limit is sufficient, the bus gate checks whether the entrance/exit flag in the transaction information is 0. If the entrance/exit flag is not 0, the current payment transaction is rejected. If the entrance/exit flag is 0, the current payment transaction is continued. Notably, when the entrance/exit flag is 1, it indicates that the user who holds the mobile terminal is in an entered state, and then the current payment transaction is rejected; when the entrance/exit flag is 0, it indicates that the user who holds the mobile terminal is in an exited state, and an account can be settled, so the current payment transaction is made.
The transaction information includes a payment card number, an available limit, an entrance/exit flag, and information about a previous transaction.
The previous implementation describes in detail the execution procedures on the mobile terminal side and the transaction terminal side in the credit payment method based on a mobile terminal eSE provided in the present disclosure during a payment transaction. Before the payment transaction is made between the mobile terminal and the transaction terminal, data needs to be interacted between the mobile terminal and a server in a credit authorization system, so as to enable a payment transaction function of the mobile terminal. Execution procedures on a mobile terminal side and a server side when a payment transaction function of the mobile terminal is enabled are described in detail below.
As shown in
In step S710, separately generate an application public key and an application private key by using an eSE of a mobile terminal.
A credit authorization system application installed on the mobile terminal sends a request to the eSE of the mobile terminal, to request the eSE to generate a pair of public key and private key, that is, the application public key and the application private key. The eSE sends the generated application public key to the credit authorization system application on the mobile terminal.
In step S720, send the application public key to a predetermined server, so that the predetermined server signs the application public key by using a locally stored authorization private key, to generate an application public key certificate.
After obtaining the application public key sent by the eSE, the credit authorization system application on the mobile terminal sends the application public key to the predetermined server, so that the predetermined server signs the application public key by using the locally stored authorization private key, to generate the application public key certificate. Notably, the predetermined server here can be a server in a credit authorization system.
In step S730, obtain the public key certificate sent by the predetermined server, and save both the application public key certificate and the application private key on the eSE. The eSE chip is a secure chip and mainly responsible for data security storage, data encryption, etc. of the mobile terminal, and can well store the application public key certificate and the application private key, to avoid a property loss caused to a user due to a data loss.
In step S740, send a credit payment data obtaining request to the predetermined server.
In step S750, receive credit payment data sent by the predetermined server, and enable a credit payment function of the mobile terminal based on the credit payment data by using the eSE.
In another implementation provided in the present disclosure, as shown in
In step S701, obtain device parameter information of the mobile terminal.
The device parameter information of the mobile terminal can be hardware information of the mobile terminal. Because the credit payment method provided in the present disclosure is based on the mobile terminal eSE chip, whether the mobile terminal has a satisfactory eSE chip needs to be checked first. Further, whether the mobile terminal has another hardware condition required by a payment transaction, such as whether it has an NFC function, also needs to be checked based on the device parameter information. Certainly, the device parameter information can also be information such as a device model, a ROM version, a system model (such as, Android), an application version, etc. of the mobile terminal.
In step S702, send the device parameter information to the predetermined server, so that the predetermined server determines, based on the received device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment.
The mobile terminal sends the obtained device parameter information of the mobile terminal to the server in the credit authorization system, so that the server determines, based on the received device parameter information, whether the mobile terminal meets the hardware condition for enabling credit payment.
In step S703, check whether credit payment enabling information sent by the predetermined server is received.
If the mobile terminal meets the hardware condition for enabling credit payment, the server end sends the credit payment enabling information to the mobile terminal. The credit payment enabling information can be a credit payment application enabling page.
If the mobile terminal does not meet the hardware condition for enabling credit payment, the server end does not send the credit payment enabling information to the mobile terminal.
When the credit payment enabling information sent by the predetermined server is received, step S704 is performed.
In step S704, determine that the mobile terminal meets the hardware condition for enabling credit payment, and step S710 is performed.
In addition to checking whether the mobile terminal meets the hardware condition for enabling credit payment, based on
In step S705, obtain user identity information.
The user identity information can be information such as an identity card number, a name, a bank card number, a mailbox, etc. of the user.
In step S706, send the user identity information to the predetermined server, so that the predetermined server determines, based on the received user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment.
The mobile terminal sends the user identity information to the server in the credit authorization system, so that the server verifies the user identity information, for example, verifies whether the bank card number provides a service normally, whether a user account has a bad-credit transaction record, etc.
In step S707, check whether security authentication success information sent by the predetermined server is received.
After receiving the user information sent by the mobile terminal, the server end checks the user information, and if the mobile terminal meets the security authentication condition for enabling credit payment, the server end sends the security authentication success information to the mobile terminal.
When the security authentication success information sent by the predetermined server is received, step S708 is performed.
In step S708, determine that the mobile terminal meets the security authentication condition for enabling credit payment, and step S710 is performed.
When the mobile terminal receives the security authentication success information sent by the server end, the mobile terminal determines that the mobile terminal meets the security authentication condition for enabling credit payment.
When the mobile terminal does not receive the security authentication success information sent by the server end, the mobile terminal determines that the mobile terminal does not meet the security authentication condition for enabling credit payment.
Based on
In step S7091, send a request for obtaining a predetermined installation file to the predetermined server.
The predetermined installation file includes a credit payment application and a registration script.
In step S7092, obtain the credit payment application and the registration script that are sent by the predetermined server.
In step S7093, separately install the credit payment application and the registration script on the eSE, and step S710 is performed.
After the credit payment application and the registration script are separately installed on the eSE chip, user personalization of the mobile terminal is completed. As such, a procedure of enabling a credit payment function on the mobile terminal side ends. Based on the previous implementations, an execution procedure on a server side of the credit authorization system in which the mobile terminal enables the credit payment function is described in detail below.
In another implementation provided in the present disclosure, as shown in
In step S810, receive an application public key sent by a mobile terminal.
After the mobile terminal generates the application public key and an application private key, it sends the application public key to a server in a credit authorization system, and the server receives the application public key sent by the mobile terminal.
In step S820, sign the application public key by using an authorization private key locally stored on the server, to generate an application public key certificate.
The credit authorization private key is a private key pre-generated in the credit authorization system, and the server signs, by using the private key, the application public key sent by the mobile terminal, to generate the application public key certificate.
In step S830, send the application public key certificate to the mobile terminal, so that the mobile terminal saves the received application public key certificate on an eSE.
After generating the application public key certificate, the server in the credit authorization system returns the application public key certificate to the mobile terminal, so that after receiving the application public key certificate sent by the server, the mobile terminal saves the application public key certificate on the eSE chip.
The server in the credit authorization system not only can return the application public key certificate to the mobile terminal, but is also responsible for checking, based on information sent by the mobile terminal, whether the mobile terminal meets a condition for enabling credit payment.
In step S831, receive a credit payment data obtaining request sent by the mobile terminal.
Credit payment data can be a personalized script, and the personalized script includes a payment card number, a credit limit, an available limit, and a TAC sub-key. The payment card number is a unique character code generated by the credit authorization system for a credit payment application of each user. The available limit is an amount of money that the user can use currently. The TAC sub-key is obtained by the server in the credit authorization system based on a card number hash by using a TAC parent private key.
In step S832, generate credit payment data corresponding to the mobile terminal based on the credit payment data obtaining request, and send the credit payment data to the mobile terminal.
As such, the mobile terminal enables a credit payment function of the mobile terminal based on the received credit payment data.
Based on
In step S840, receive device parameter information sent by the mobile terminal.
In a process of enabling the credit payment function, the mobile terminal can communicate with the server in the credit authorization system through a network or other similar methods, and the server in the credit authorization system can receive the device parameter information sent by the mobile terminal.
In step S850, determine, based on the device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment.
The parameter information sent by the mobile terminal can be information such as a device model, a ROM version, a system model (such as, Android), an application version, etc. of the mobile terminal. The server can check, based on the information sent by the mobile terminal, whether the mobile terminal has an eSE chip, whether the mobile terminal has an NFC function, etc.
When the mobile terminal meets the hardware condition for enabling credit payment, step S860 is performed.
In step S860, send credit payment enabling information to the mobile terminal, and then step S810 is performed.
If the server detects that the mobile terminal meets the hardware condition for enabling credit payment, the server sends the credit payment enabling information to the mobile terminal. The credit payment enabling information can be a credit payment application enabling page. The user can enter user information on a credit payment application enabling interface on the mobile terminal, and upload the user information to the server.
If the server detects that the mobile terminal does not meet the hardware condition for enabling credit payment, the server does not send the credit payment enabling information to the mobile terminal.
In addition to check the device parameter information sent by the mobile terminal, the server in the credit authorization system further needs to check user identity information sent by the mobile terminal, and determine whether a user corresponding to the mobile terminal meets a security authentication condition. Therefore, based on
In step S870, receive user identity information sent by the mobile terminal.
The user identity information can be information such as an identity card number, a name, a bank card number, a mailbox, an Alipay account, etc. of the user.
In step S880, determine, based on the user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment.
For example, the server can check whether the bank card number in the user identity information provides a service normally, whether there is a bad transaction record, etc.
When the user identity information meets the security authentication condition for enabling credit payment, step S890 is performed.
In step S890, send security authentication success information to the mobile terminal, and then step S810 is performed.
If the server detects that the mobile terminal meets the security authentication condition for enabling credit payment, the server sends the security authentication success information to the mobile terminal.
When the mobile terminal enables credit payment, a credit payment application and a registration script further need to be installed on the mobile terminal, and these installation files need to be sent to the mobile terminal by the server in a credit payment system. Therefore, based on
In step S801, receive a request sent by the mobile terminal for obtaining a predetermined installation file.
The predetermined installation file includes a credit payment application and a registration script.
In step S802, separately send the credit payment application and the registration script to the mobile terminal based on the request for obtaining the predetermined installation file, and step S810 is performed.
After obtaining the credit payment application and the registration script that are sent by the server, the mobile terminal separately installs the credit payment application and the registration script on the eSE chip.
In a process used by the mobile terminal to enable a payment transaction and a repayment transaction, an execution procedure on a mobile terminal side and an execution procedure on a transaction terminal side are separately described in detail in the previous implementations. To further describe in detail how the mobile terminal enables a payment transaction, a payment transaction process, and how to exchange data between the mobile terminal and the transaction terminal, a data exchange relationship between the mobile terminal and the transaction terminal is described below by using a signaling diagram. Certainly, the transaction terminal involved in the implementation of the present disclosure can be a server in a credit authorization system, and details are not described subsequently.
In another implementation of the present disclosure, as shown in
Step 1001: A credit authorization system application sends a request for obtaining device parameter information of a mobile phone.
Step 1002: An eSE returns the device parameter information of the mobile phone.
Step 1003: The credit authorization system application uploads the device parameter information.
Step 1004: A server in a credit authorization system determines whether the mobile phone meets a hardware condition for enabling credit payment.
Step 1005: Return a determination result.
Step 1006: The credit authorization system application determination result is: present a credit payment application enabling interface.
Step 1007: The credit authorization system application uploads user identity information.
Step 1008: The server in the credit authorization system determines whether the mobile phone meets a security authentication condition for enabling credit payment.
Step 1009: The server in the credit authorization system returns a determination result.
Step 1010: A user chooses to enable a credit payment application.
Step 1011: The credit authorization system application sends a credit payment application installation file request.
Step 1012: The server in the credit authorization system returns a credit payment installation file.
Step 1013: The credit authorization system application delivers the credit payment installation file.
Step 1014: The eSE installs the received credit payment installation file.
Step 1015: The eSE returns an installation result.
Step 1016: The credit authorization system application determines the installation result, and if the installation result is not a success, prompts the user.
Step 1017: The credit authorization system application sends an application public and private key generation instruction.
Step 1018: The eSE generates an application public key and an application private key, and stores the application private key.
Step 1019: The eSE returns the application private key.
Step 1020: The credit authorization system application sends the application public key and an eSE personalization request.
Step 1021: The server in the credit authorization system generates an application public key certificate and credit payment data by using a private key of the credit authorization system, and generates a TAC sub-key through hash.
Step 1022: The server in the credit authorization system returns the application public key certificate and the credit payment data.
Step 1023 (see
Step 1024: The eSE stores the application public key certificate and enables a credit payment function of the mobile terminal based on the credit payment data.
Step 1025: The eSE returns a result of enabling the credit payment function of the mobile terminal.
Step 1026: The credit authorization system application determines the result of enabling credit payment, and if there is an error, prompts the user.
Step 1027: The credit authorization system application sends the result of enabling credit payment.
Step 1028: The server in the credit authorization system records the result of enabling credit payment.
Step 1029: The server in the credit authorization system sends a processing completion result.
Step 1030: The credit authorization system application prompts the user that the credit payment application is successfully enabled.
A detailed process of mutual data exchange between the mobile terminal and the server during enabling of a payment transaction function is described in the previous implementations, and details are not described here again.
In another implementation provided in the present disclosure, as shown in
Step 2001: The bus gate selects a credit authorization system application.
Step 2002: The credit authorization system application reads data that needs to be returned.
Step 2003: The credit authorization system application returns a payment card number, an available limit, an entrance/exit flag, and information about a previous transaction.
Step 2004: The bus gate checks the available limit and the entrance/exit flag, and if the check fails, prompts rejection information.
Step 2005: The bus gate calculates a deduction amount.
Step 2006: The bus gate deducts money based on the deduction amount, transaction time, the entrance/exit flag, and transaction information.
Step 2007: The credit authorization system application generates a payment authorization license, including signature data and TAC.
Step 2008: The credit authorization system application returns the signature data and the TAC.
Step 2009: The bus gate verifies the signature data by using an application public key, and if the verification succeeds, records a transaction log, or if the verification fails, prompts rejection information.
The previous implementations of the present disclosure are described by using credit payment for a bus as an example. The technical solutions of the present application can also be applied to other scenarios, such as subway payment and offline business payment. In different application scenarios, some procedures or some data in the previous payment can be different, and it is not limited here. There can be different implementations in specific application scenarios.
By using the descriptions of the previous method implementations, a person skilled in the art can clearly understand that the present disclosure can be implemented by using software and a necessary universal hardware platform, and can certainly be implemented by hardware, but in many cases, the former is a better implementation. Based on such an understanding, the technical solutions of the present disclosure essentially or the part contributing to the existing technology can be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which can be a personal computer, a server, a network device, etc.) to perform all or some steps of the methods described in the implementations of the present disclosure. The storage medium includes various media that can store program code, such as a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disc, etc.
In addition, as an implementation of the previous implementations, an implementation of the present disclosure further provides a credit payment apparatus based on a mobile terminal eSE. The apparatus is in a mobile terminal. As shown in
The transaction information sending unit 10 is configured to send transaction information to a transaction terminal when the transaction terminal is detected.
The deduction information receiving unit 20 is configured to receive current payment transaction deduction information that is sent by the transaction terminal based on the transaction information.
The payment authorization license generation unit 30 is configured to generate a payment authorization license based on the deduction information and the transaction information by using an eSE of the mobile terminal.
The payment authorization license sending unit 40 is configured to send the payment authorization license to the transaction terminal, so that the transaction terminal completes the current payment transaction based on the received payment authorization license.
In another implementation of the present disclosure, based on
In another implementation of the present disclosure, based on
The signature data generation module 31 is configured to generate signature data based on the deduction information by using an application private key stored on the eSE.
The TAC generation module 32 is configured to generate a TAC based on the deduction information and the transaction information by using a TAC sub-key that is pre-generated on the eSE.
The payment authorization license determining module 33 is configured to use the signature data and the TAC as a payment authorization license.
In another implementation of the present disclosure, based on
The current available limit generation unit 70 is configured to subtract a deduction amount from an available limit in the transaction information based on the deduction amount in the current payment transaction deduction information, to obtain a current available limit.
The available limit determining unit 80 is configured to use the current available limit as an available limit corresponding to a user in the mobile terminal.
An implementation of the present disclosure further provides a credit payment apparatus based on a mobile terminal eSE. The apparatus is in a transaction terminal. As shown in
The application public key certificate reading instruction sending unit 110 is configured to receive transaction information sent by a mobile terminal.
The deduction information generation unit 120 is configured to generate current payment transaction deduction information based on the transaction information.
The deduction information sending unit 130 is configured to send the deduction information to the mobile terminal.
The payment transaction completion determining unit 140 is configured to: when a payment authorization license is received, determine, based on the payment authorization license, that the current payment transaction is completed.
In another implementation of the present disclosure, based on
In another implementation of the present disclosure, based on
The signature data verification module 141 is configured to verify the signature data by using the application public key.
The transaction log generation module 142 is configured to generate a transaction log when the signature data is verified.
The transaction log sending module 143 is configured to send the transaction log to a predetermined server, so that the predetermined server deducts a corresponding amount of money from a user account corresponding to the mobile terminal based on the transaction log. The transaction log includes: a deduction amount, a transaction date, a transaction time, a transaction terminal ID, a payment card number, an available limit, and a TAC.
In another implementation of the present disclosure, based on
The threshold determining unit 180 is configured to determine whether the available limit in the transaction information is greater than or equal to a predetermined threshold.
The entrance/exit flag determining unit 190 is configured to: when the available limit is greater than or equal to the predetermined threshold, check whether the entrance/exit flag in the transaction information is in an exited state.
The application public key certificate reading instruction sending unit 110 is further configured to send the application public key certificate reading instruction to the mobile terminal when the entrance/exit flag in the transaction information is in an exited state.
An implementation of the present disclosure further provides a credit payment apparatus based on a mobile terminal eSE. The apparatus is in a mobile terminal. As shown in
The key generation unit 210 is configured to separately generate an application public key and an application private key by using an eSE of the mobile terminal.
The application public key sending unit 220 is configured to send the application public key to a predetermined server, so that the predetermined server signs the application public key by using a locally stored authorization private key, to generate an application public key certificate.
The public key certificate acquisition unit 230 is configured to obtain a public key certificate sent by the predetermined server, and save both the application public key certificate and the application private key on the eSE.
The credit payment data obtaining request sending unit 240 is configured to send a credit payment data obtaining request to the predetermined server.
The credit payment data setting unit 250 is configured to receive credit payment data sent by the predetermined server, and enable a credit payment function of the mobile terminal based on the credit payment data.
In another implementation of the present disclosure, based on
The device parameter information acquisition unit 260 is configured to obtain device parameter information of the mobile terminal.
The device parameter information sending unit 270 is configured to send the device parameter information to the predetermined server, so that the predetermined server determines, based on the received device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment.
The credit payment enabling information check unit 280 is configured to determine whether credit payment enabling information sent by the predetermined server is received.
The credit payment hardware enabling condition 290 is used to determine, when the credit payment enabling information sent by the predetermined server is received, that the mobile terminal meets the hardware condition for enabling credit payment.
In another implementation of the present disclosure, based on
The user identity information acquisition unit 201 is configured to obtain user identity information.
The user identity information sending unit 202 is configured to send the user identity information to the predetermined server, so that the predetermined server determines, based on the received user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment.
The security authentication success information check unit 203 is configured to check whether security authentication success information sent by the predetermined server is received.
The hardware enabling condition confirm unit 204 is configured to determine, when the security authentication success information sent by the predetermined server is received, that the mobile terminal meets the security authentication condition for enabling credit payment.
In another implementation of the present disclosure, based on
The predetermined installation file obtaining request sending unit 206 is configured to send a request for obtaining a predetermined installation file to the predetermined server.
The predetermined installation file includes a credit payment application and a registration script.
The file acquisition unit 207 is configured to obtain the credit payment application and the registration script that are sent by the predetermined server.
The file installation unit 208 is configured to separately install the credit payment application and the registration script on the eSE.
An implementation of the present disclosure further provides a credit payment apparatus based on a mobile terminal eSE. The apparatus is in a server. As shown in
The application public key receiving unit 310 is configured to receive an application public key sent by a mobile terminal.
The application public key certificate generation unit 320 is configured to sign the application public key by using an authorization private key locally stored on the server, to generate an application public key certificate.
The application public key certificate sending unit 330 is configured to send the application public key certificate to the mobile terminal, so that the mobile terminal saves the received application public key certificate on an eSE.
The credit payment data obtaining request receiving unit 340 is configured to receive a credit payment data obtaining request sent by the mobile terminal.
The credit payment data generation unit 350 is configured to generate credit payment data corresponding to the mobile terminal based on the credit payment data obtaining request, and send the credit payment data to the mobile terminal, so that the mobile terminal enables a credit payment function of the mobile terminal based on the received credit payment data.
In another implementation of the present disclosure, based on
The device parameter information receiving unit 360 is configured to receive device parameter information sent by the mobile terminal.
The credit payment enabling hardware condition determining unit 370 is configured to determine, based on the device parameter information, whether the mobile terminal meets a hardware condition for enabling credit payment.
The credit payment enabling information sending unit 380 is configured to send credit payment enabling information to the mobile terminal when the mobile terminal meets the hardware condition for enabling credit payment.
In another implementation of the present disclosure, based on
The user identity information receiving unit 301 is configured to receive user identity information sent by the mobile terminal.
The security authentication condition determining unit 302 is configured to determine, based on the user identity information, whether the mobile terminal meets a security authentication condition for enabling credit payment.
The security authentication success information sending unit 303 is configured to send security authentication success information to the mobile terminal when the user identity information meets the security authentication condition for enabling credit payment.
In another implementation of the present disclosure, based on
The predetermined installation file obtaining request receiving unit 304 is configured to receive a request sent by the mobile terminal for obtaining a predetermined installation file, and the predetermined installation file includes a credit payment application and a registration script.
The installation file sending unit 305 is configured to separately send the credit payment application and the registration script to the mobile terminal based on the request for obtaining the predetermined installation file.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs an operation has been described in detail in the embodiment related to the method, and details are not described here.
It can be understood that the present disclosure can be applied to many general-purpose or special purpose computing system environments or configurations, for example, a personal computer, a server computer, a handheld device or a portable device, a tablet device, a multi-processor system, a microprocessor-based system, a set top box, a programmable consumer electronic device, a network PC, a minicomputer, a mainframe computer, and a distributed computing environment including any one of the earlier described systems or devices.
The present disclosure can be described in the general context of an executable computer instruction executed by a computer, for example, a program module. Generally, the program module includes a routine, a program, an object, a component, a data structure, etc. for executing a particular task or implementing a particular abstract data type. The present disclosure can also be practiced in distributed computing environments. In the distributed computing environments, tasks are executed by remote processing devices that are connected through a communications network. In a distributed computing environment, the program module can be located in both local and remote computer storage media including storage devices.
Notably, in the present specification, relational terms such as “first”, “second”, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or sequence between these entities or operations. Moreover, the terms “include”, “comprise”, or their any other variant are intended to cover a non-exclusive inclusion, so that a process, a method, a product, or a device that includes a list of elements not only includes those elements but also includes other elements that are not expressly listed, or further includes elements inherent to such a process, method, product, or device. An element described by “includes a . . . ” further includes, without more constraints, another identical element in the process, method, commodity, or device that includes the element.
A person skilled in the art can easily figure out another implementation solution of the present disclosure after considering the specification and practicing the present disclosure here. The present application is intended to cover any variations, functions, or adaptive changes of the present disclosure. These variations, functions, or adaptive changes comply with general principles of the present disclosure and include common knowledge or a commonly used technical means in the technical field that is not disclosed in the present disclosure. The specification and the implementations are merely considered as examples, and the actual scope and the spirit of the present disclosure are pointed out by the appended claims.
It should be understood that the present disclosure is not limited to the accurate structures that are described above and that are shown in the accompanying drawings, and modifications and changes can be made without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the appended claims.
At 3602, a payment request is received from a mobile computing device associated with a user account. For ease of illustration, a gate scanner device at a public transportation station is used as an example of a payment collection device. A commuter can perform mobile credit payment for public transportation at the gate of a station using the gate scanner device. In some implementations, the gate scanner device can be an optical scanner that can scan a two-dimensional (2D) code or can register a mobile credit payment using NFC, RFID, or other wireless communication technologies. In some implementations, the 2D code can be a quick response (QR) code or a barcode. In some cases, a payment Applet or an application can be installed on an eSE of the mobile computing device. In some cases, the application can also communicate with a remote payment server to perform payment authorization. The payment application or the payment authorization application can be associated with a payment account of a user. The gate scanner device can parse the payment request to identify payment account information included in the payment request. In some cases, the payment request can include various payment account information, such as a payment account ID (for example, account ID, payment card number, or bank account number), available balance of the payment account, a service entrance registration, or a service exit registration. The service entrance and existing registration can include date, time, place, or station name that a user's mobile computing device registers at the gate scanner device (for example, when entering or exiting a bus or metro gate). In some cases, the gate scanner device can determine whether the payment account information can provide service qualification. For example, an available balance can be determined and compared to the public transportation fare. If the available balance is not enough to cover a public transportation fare, a gate entrance or exit can be denied.
In some cases, a gate scanner device can send a public key certificate request to the mobile computing device to retrieve a public key certificate after receiving the payment request. The public key certificate request can be used to retrieve a public key certificate pre-generated and stored on the eSE of the mobile computing device. After receiving the public key certificate from the mobile computing device, the gate scanner device can use a credit authorization public key to verify the public key certificate. If the verification fails, the gate scanner device can deny the payment request. Otherwise, the gate scanner device can retrieve a public key from the public key certificate before generating the payment information. From 3602, method 3600 proceeds to 3604.
At 3604, payment information, including a payment amount, is generated based on the payment request. The payment information can include a payment amount and at least one of a date and time of the payment request, a service entrance registration, a service exit registration, or station information associated with the payment request. From 3604, method 3600 proceeds to 3606.
At 3606, the payment information is sent to the mobile computing device. After receiving the payment information, the mobile computing device can generate a digital signature based on the payment information by using a private key stored in the eSE. The private key can be pre-generated and stored on the eSE of the mobile computing device. The payment application can digitally sign the payment information by using the private key to generate the digital signature. In some cases, the mobile computing device can also generate a TAC based on the payment information and the payment request by using a TAC sub-key that is pre-generated and stored in the eSE. The digital signature and the TAC can be used as the payment authorization. The digital signature and the TAC can be sent to the gate scanner device separately or together. The TAC sub-key can be obtained by a remote server of a credit authorization system based on a card number hash using a TAC parent private key. From 3606, method 3600 proceeds to 3608.
At 3608, a payment authorization encrypted by a private key based on asymmetric encryption is received from the mobile computing device. From 3608, method 3600 proceeds to 3610.
At 3610, a public key corresponding to the private key is used to verify the payment authorization. In some cases, the gate scanner device can verify the digital signature included in the payment authorization using the public key retrieved from the public key certificate. If the verification is successful, a translation log for collecting the payment according to the payment account can be generated. Otherwise, the payment request can be denied. From 3610, method 3600 proceeds to 3612.
At 3612, if the payment authorization is verified, a transaction log for collecting a payment according to the payment amount is generated. The transaction log can include a payment amount, a payment log generation time, a payment collection device ID, a payment card number, an available balance, or a TAC. In some cases, the gate scanner device can send the transaction log to a server to deduct the payment amount from the available balance of the user account based on the transaction log. After 3612, method 3600 stops.
Implementations of the subject matter described in this specification can be implemented so as to realize particular advantages or technical effects. For example, implementations of the subject matter permit a public transportation payment collection device to securely accept payment offline. The payment collection device receives a payment request, requesting a public key certificate from the mobile computing device to retrieve a public key, and use the retrieved public key to verify a payment authorization encrypted by the mobile computing device. A transaction can be recorded if the payment authorization is successfully verified. The transaction log can be sent to a credit payment authorization server to execute the payment. Since the transaction log can be recorded offline, the payment collection or registration device at the public transportation station only need to connect to the credit payment authorization server periodically to execute a plurality of payments together. As such, mobile payments of public transportation can be more efficiently and securely performed.
The described methodology permits enhancement of transaction/data security of various mobile computing device and payment collection device. Participants in transactions using eSE embedded in mobile computing devices and payment collection device such as a public transportation gate scanner can be confident that short-range communications such as NFC and security measures including asymmetric key encryption can ensure secured offline credit payment.
Asymmetric key encryption can be used to enhance data security. A public key is stored in the eSE of mobile computing devices instead of public transportation payment collection device and can be retrieved only by request. A private key can be used to provide digital signature to payment information and generate TAC to further enhance payment security.
The described methodology can ensure the efficient usage of computer resources (for example, processing cycles, network bandwidth, and memory usage), through the efficient offline payment processing. At least these actions can minimize or prevent waste of available computer and network resources with respect to multiple parties in mobile transactions by reducing bandwidth occupancy between the payment collection device, the mobile computing device, and the server. Instead of the payment collection device needing to verify data with additional communication or transactions with the server in real-time, transactions can be depended upon as valid when the payment collection device is offline to avoid delays cost by network delays. The payment can be more quickly and securely recorded to improve user experience.
Embodiments and the operations described in this specification can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification or in combinations of one or more of them. The operations can be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources. A data processing apparatus, computer, or computing device may encompass apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, a system on a chip, or multiple ones, or combinations, of the foregoing. The apparatus can include special purpose logic circuitry, for example, a central processing unit (CPU), a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC). The apparatus can also include code that creates an execution environment for the computer program in question, for example, code that constitutes processor firmware, a protocol stack, a database management system, an operating system (for example an operating system or a combination of operating systems), a cross-platform runtime environment, a virtual machine, or a combination of one or more of them. The apparatus and execution environment can realize various different computing model infrastructures, such as web services, distributed computing and grid computing infrastructures.
A computer program (also known, for example, as a program, software, software application, software module, software unit, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, object, or other unit suitable for use in a computing environment. A program can be stored in a portion of a file that holds other programs or data (for example, one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (for example, files that store one or more modules, sub-programs, or portions of code). A computer program can be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.
Processors for execution of a computer program include, by way of example, both general- and special-purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read-only memory or a random-access memory or both. The essential elements of a computer are a processor for performing actions in accordance with instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data. A computer can be embedded in another device, for example, a mobile device, a personal digital assistant (PDA), a game console, a Global Positioning System (GPS) receiver, or a portable storage device. Devices suitable for storing computer program instructions and data include non-volatile memory, media and memory devices, including, by way of example, semiconductor memory devices, magnetic disks, and magneto-optical disks. The processor and the memory can be supplemented by, or incorporated in, special-purpose logic circuitry.
Mobile devices can include handsets, user equipment (UE), mobile telephones (for example, smartphones), tablets, wearable devices (for example, smart watches and smart eyeglasses), implanted devices within the human body (for example, biosensors, cochlear implants), or other types of mobile devices. The mobile devices can communicate wirelessly (for example, using radio frequency (RF) signals) to various communication networks (described below). The mobile devices can include sensors for determining characteristics of the mobile device's current environment. The sensors can include cameras, microphones, proximity sensors, GPS sensors, motion sensors, accelerometers, ambient light sensors, moisture sensors, gyroscopes, compasses, barometers, fingerprint sensors, facial recognition systems, RF sensors (for example, Wi-Fi and cellular radios), thermal sensors, or other types of sensors. For example, the cameras can include a forward- or rear-facing camera with movable or fixed lenses, a flash, an image sensor, and an image processor. The camera can be a megapixel camera capable of capturing details for facial and/or iris recognition. The camera along with a data processor and authentication information stored in memory or accessed remotely can form a facial recognition system. The facial recognition system or one-or-more sensors, for example, microphones, motion sensors, accelerometers, GPS sensors, or RF sensors, can be used for user authentication.
To provide for interaction with a user, embodiments can be implemented on a computer having a display device and an input device, for example, a liquid crystal display (LCD) or organic light-emitting diode (OLED)/virtual-reality (VR)/augmented-reality (AR) display for displaying information to the user and a touchscreen, keyboard, and a pointing device by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, for example, visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending documents to and receiving documents from a device that is used by the user; for example, by sending web pages to a web browser on a user's client device in response to requests received from the web browser.
Embodiments can be implemented using computing devices interconnected by any form or medium of wireline or wireless digital data communication (or combination thereof), for example, a communication network. Examples of interconnected devices are a client and a server generally remote from each other that typically interact through a communication network. A client, for example, a mobile device, can carry out transactions itself, with a server, or through a server, for example, performing buy, sell, pay, give, send, or loan transactions, or authorizing the same. Such transactions may be in real time such that an action and a response are temporally proximate; for example an individual perceives the action and the response occurring substantially simultaneously, the time difference for a response following the individual's action is less than 1 millisecond (ms) or less than 1 second (s), or the response is without intentional delay taking into account processing limitations of the system.
Examples of communication networks include a local area network (LAN), a radio access network (RAN), a metropolitan area network (MAN), and a wide area network (WAN). The communication network can include all or a portion of the Internet, another communication network, or a combination of communication networks. Information can be transmitted on the communication network according to various protocols and standards, including Long Term Evolution (LTE), 5G, IEEE 802, Internet Protocol (IP), or other protocols or combinations of protocols. The communication network can transmit voice, video, biometric, or authentication data, or other information between the connected computing devices.
Features described as separate implementations may be implemented, in combination, in a single implementation, while features described as a single implementation may be implemented in multiple implementations, separately, or in any suitable sub-combination. Operations described and claimed in a particular order should not be understood as requiring that the particular order, nor that all illustrated operations must be performed (some operations can be optional). As appropriate, multitasking or parallel-processing (or a combination of multitasking and parallel-processing) can be performed.
Number | Date | Country | Kind |
---|---|---|---|
201610049851.4 | Jan 2016 | CN | national |
This application is a continuation of PCT Application No. PCT/CN2017/071246, filed on Jan. 16, 2017, which claims priority to Chinese Patent Application No. 201610049851.4, filed on Jan. 25, 2016, and each application is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2017/071246 | Jan 2017 | US |
Child | 16042772 | US |