Card reader and settlement system

The card reader determines card types and generates truncation data to output partial credit card numbers, addressing the issue of displaying credit card numbers in conventional systems, improving security and user convenience.

JP2024152855AActive Publication Date: 2024-10-25NIDEC INSTR CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024133999
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-25
Estimated Expiration
2040-05-13

AI Technical Summary

Technical Problem

Conventional payment systems cannot display or print credit card numbers due to security and legal requirements, leading to issues with processing credit card payments when a credit card is inserted while waiting for a non-credit card.

Method used

A card reader that determines the type of card medium and generates truncation data for credit cards, allowing partial credit card numbers to be output while ensuring security and legal compliance, and transmits non-credit card information without encryption.

Benefits of technology

Enables the output of recognizable credit card numbers while adhering to security and legal requirements, enhancing user convenience and preventing fraudulent activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024152855000001_ABST
    Figure 2024152855000001_ABST
Patent Text Reader

Abstract

To provide a card reader capable of outputting a portion of a credit card number.SOLUTION: A card information acquisition section 100 acquires card information 300 from a card medium. A card type determination section 110 determines whether the card medium is a credit card or a non-credit card, from the card information 300 acquired by the card information acquisition section 100. When a type of the card medium determined by the card type determination section 110 is a credit card, a data generation section 120 generates truncation data 310 which masks a portion of a card number included in the card information 300. If the most significant digits of the card information are those of the credit card but a result of Luhn calculation does not match a check digit, the card type determination section 110 transmits information indicating that an unauthorized card has been used or that there is a reading error, to a higher-level device 2, stores the information, and makes the credit card unreadable.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a card reader and a payment system, and more particularly to a card reader and a payment system that uses a credit card. [Background technology]

[0002] Conventionally, there have been payment systems that use various types of card-like recording media (hereinafter referred to as card media) to make payments. In such payment systems, for example, a user is identified by a so-called "house card" such as a patient registration card or a point card from a hospital, and then the payment is made by a "credit card" for the payment of money. In other words, in conventional payment systems, two types of card media may be used during one payment.

[0003] As an example of such a conventional payment system, Patent Document 1 describes an automated transaction device that processes accepted cards. The automated transaction device in Patent Document 1 includes a card information acquisition unit that acquires card information stored in the accepted card, an identification unit that identifies the type of the accepted card from the card information, a type information acquisition unit that acquires type information indicating the type of the card to be accepted, and a processing unit that executes processing on the card information based on the processing information switched by the processing setting unit. In this case, if the type of the card to be accepted is a card type whose card information should not be encrypted and the type of the accepted card is a card type whose card information should be encrypted, the processing unit erases the card information. That is, the technology of Patent Document 1 is configured to erase card information when a credit card is inserted in a standby state for a non-credit card such as a house card. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2019-109723 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, in the conventional payment system described in Patent Document 1, when a credit card is inserted in the credit card waiting state, the card information is encrypted and transferred to the server that settles the credit card due to security and legal requirements. Therefore, there was a problem that the upper device that outputs the settlement result could not display or print the credit card number at all.

[0006] The present invention has been made in consideration of the above circumstances, and has an object to solve the above-mentioned problems by making it possible to output at least a part of a credit card number on a higher-level device that outputs the settlement result. [Means for solving the problem]

[0007] The card reader of the present invention comprises a card information acquisition unit that acquires card information from a card medium, a card type determination unit that determines whether the card medium is a credit card or a non-credit card from the card information acquired by the card information acquisition unit, and a data generation unit that generates truncation data by masking a part of the card number included in the card information when the type of the card medium determined by the card type determination unit is a credit card, and the data generation unit transmits all digits of the card medium to a connected higher-level device without encryption when the type of the card medium is a house card that is a non-credit card, and transmits the truncation data without encryption in response to a request from the connected higher-level device when an instruction from the higher-level device indicates a state waiting for a credit card to be read and the type of the card medium is a credit card, and deletes or does not transmit the generated truncation data to the higher-level device and notifies an error that a credit card has been inserted when the instruction from the higher-level device indicates a state waiting for the house card to be read and the type of the card medium is a credit card. If the most significant digit of the card information is that of a credit card but the Luhn calculation result does not match the check digit, the card type determination unit transmits information indicating that an illegal card has been used or that there has been a reading error to a higher-level device, stores the information, and makes reading itself impossible.It is characterized by: By configuring in this way, it is possible to output at least a part of the credit card number. This will further enhance security and help prevent crimes involving counterfeit cards, etc. do.

[0008] The card reader of the present invention is characterized in that the truncation data includes some or all of the most significant or least significant digits defined in the PCI DSS standard. With this configuration, it is possible to output a number that allows the user to identify which card it is, while complying with security and legal requirements.

[0009] (delete)

[0010] (delete)

[0011] The payment processing system of the present invention is a payment processing system including a card reader that reads a card medium, and a higher-level device that is connected to the card reader and performs payment processing, the card reader includes a card information acquisition unit that acquires card information from the card medium, a card type determination unit that determines whether the card medium is a credit card or a non-credit card from the card information acquired by the card information acquisition unit, and a data generation unit that generates truncation data in which a part of the card number included in the card information is masked when the type of the card medium determined by the card type determination unit is a credit card, and the higher-level device includes a data acquisition unit that acquires the truncation data from the card reader, and a data generation unit that generates truncation data in which a part of the card number included in the card information is masked by the data acquisition unit. and a data output unit which includes the acquired truncation data in payment information in the payment process and outputs the truncation data, wherein when the type of the card medium is a house card that is a non-credit card, the data generating unit transmits all digits of the card medium to the host device without encryption, when an instruction from the host device indicates a state in which a credit card is waiting to be read and the type of the card medium is a credit card, transmits the truncation data without encryption in response to a request from the connected host device, and when an instruction from the host device indicates a state in which the house card is waiting to be read and the type of the card medium is a credit card, deletes the generated truncation data or does not transmit it to the host device and notifies an error that a credit card has been inserted. If the most significant digit of the card information is that of a credit card but the Luhn calculation result does not match the check digit, the card type determination unit transmits information indicating that an illegal card has been used or that there has been a reading error to a higher-level device, stores the information, and makes reading itself impossible. It is characterized by: By configuring in this way, at least a part of the credit card number can be output by the higher-level device. This will further enhance security and help prevent crimes involving counterfeit cards, etc. do. Effect of the Invention

[0012] According to the present invention, when the type of card medium determined to be a credit card is determined, a card reader capable of outputting part of the credit card number can be provided by generating truncation data that masks part of the card number contained in the card information. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a system configuration diagram of a payment system X according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a conceptual diagram of card information and truncation data shown in FIG. [Diagram 3] 11 is a flowchart of a payment process according to an embodiment of the present invention. [Figure 4] 4 is a flowchart of a read data transmission process shown in FIG. 3. [Diagram 5] 4 is a conceptual diagram showing data creation and transmission in the read data transmission process shown in FIG. 3. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] <Embodiment Mode> [Settlement system configuration] First, the configuration of a payment system X according to an embodiment of the present invention will be described with reference to Figs. The payment system X includes a card reader 1 and a higher-level device 2 on which the card reader 1 is mounted. In this embodiment, the card reader 1 and the higher-level device 2 are connected via a LAN (Local Area Network) such as USB (Universal Serial Bus), RS-232C, or Ethernet (registered trademark). Furthermore, in this embodiment, the higher-level device 2 of the payment system X is connected to a server 3 for performing credit card payments via a WAN (Wide Area Network) such as a dedicated line or the Internet.

[0015] Card reader 1 is an example of a device that is controlled by higher-level device 2 and can read (read) and write (write) to card medium 4. Card reader 1 is a manual or motor-driven card reader / writer device. In the manual type, the user manually inserts card medium 4 into the device and pulls card medium 4 out of the device to reproduce data recorded on card medium 4. In the motor-driven type, card reader 1 carries out various processes of transporting, reading, and writing card medium 4 in response to commands from higher-level device 2.

[0016] The higher-level device 2 is, for example, a hospital settlement (payment) system, other payment systems, a kiosk, a ticket issuing system for transportation, a point card payment system for convenience stores, a member card issuing system for retail stores, etc. Alternatively, the higher-level device 2 may be a PC (Personal Computer), a cash register, or other payment terminal.

[0017] The server 3 is a secure server or the like that provides a service for making credit card payments. The server 3 may be connected to servers of other banks, card companies, etc. Also, various other information regarding the payment can be obtained from the server 3 and other servers.

[0018] The card medium 4 is a card-shaped magnetic recording medium such as a rectangular vinyl chloride card having a thickness of about 0.7 to 0.8 mm, an IC card, a non-contact IC card, etc. In the case of a magnetic recording medium, a magnetic stripe in which a magnetic signal is stored is formed on one side of the card medium 4. In the case of an IC card, the card medium 4 may include, for example, a contact for connecting to the card reader 1, and an IC chip including a memory area and an MPU (Micro Processing Unit) or the like. In the case of a non-contact IC card, an electromagnetic induction antenna for short-distance wireless communication is built in. The card medium 4 may be a recording medium that combines any one or all of these. In addition, a mobile terminal such as a mobile phone or smartphone used by a user can also be used as the card medium 4 for transactions.

[0019] In this embodiment, an example will be described in which card information 300 for payment as a credit card or non-credit card is recorded in the magnetic stripe of the card medium 4. In this embodiment, a credit card is a card used for payment at a bank or the like. Non-credit cards include so-called "house cards" such as, for example, patient registration cards for hospitals, transportation cards, retail point cards, and membership cards.

[0020] In addition, in this embodiment, the higher-level device 2 is connected to a business server for settlement (not shown). This business server is a business server for hospitals, transportation facilities, retail stores, service providers, etc.

[0021] Next, the control configuration of the payment system X will be described. The card reader 1 includes a control unit 10, a storage unit 11, and a magnetic head 12. The higher-level device 2 includes a control unit 20, a storage unit 21, an input unit 22, a display unit 23, and a printing unit 24.

[0022] The control unit 10 performs overall control of the card reader 1. The control unit 10 is a control and calculation means including, for example, a CPU (Central Processing Unit), an MPU (Micro Processing Unit), a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), and the like.

[0023] The storage unit 11 is a recording medium that stores various setting values, control programs, temporary data, etc. of the card reader 1. Among these various setting values, details of the setting values ​​related to transactions will be described later. The control program is firmware, etc. for controlling the entire card reader 1 and reading and writing to and from the card medium 4.

[0024] The storage unit 11 includes a volatile recording medium such as a RAM, and a non-volatile recording medium such as a ROM. Among these, the ROM includes recording media such as flash memory, EEPROM, ReRAM, and FeRAM.

[0025] The magnetic head 12 is a reading unit that reads the recorded information of the card medium 4. Specifically, the magnetic head 12 reads and reproduces the recorded information written in the magnetic stripe of the card medium 4 as a magnetic signal. The magnetic signal of the magnetic stripe of the card medium 4 read by the magnetic head 12 is output as an analog signal, and is converted to a digital signal by a magnetic information processing circuit (not shown) and output. Here, the magnetic head 12 may be an encryption magnetic head that incorporates an encryption circuit that encrypts this digital signal or an MPU (Micro Processing Unit). In addition, in order to read and write the recorded information of the card medium 4, an IC contact other than the magnetic head, a receiving circuit and an antenna for NFC (Near-Field Communications), and the like may be further provided.

[0026] In addition to these, the card reader 1 also includes an LED (Light Emitting Diode) that displays the status of a transaction, etc., various buttons and DIP switches for setting, and an interface such as USB or RS-232C for connecting to a higher-level device 2.

[0027] The control unit 20 is, for example, a CPU, an MPU, a DSP, an ASIC, a GPU (Graphics Processing Unit), etc., which controls the entire upper level device 2. The control unit 20 may include an accelerator circuit for performing encryption and decryption at high speed.

[0028] The storage unit 21 is a recording medium that stores various setting values, control programs, temporary data, etc. of the higher-level device 2. The control programs include an OS (Operating System), various application software (hereinafter simply referred to as "applications"), middleware that relays between the card reader 1 and the higher-level device 2, etc. The storage unit 21 includes a RAM, a ROM, a HDD (Hard Disk Drive), other optical recording media, and the like.

[0029] The input unit 22 is an operation input unit including buttons such as a touch panel and a numeric keypad, etc. In addition, the input unit 22 may include an input device for inputting biometric information such as a fingerprint, a vein pattern, an iris pattern, or a camera for face authentication.

[0030] The display unit 23 is a dot matrix display including a liquid crystal display, an organic EL display, a vacuum fluorescent display, an LED, or the like. The input unit 22 and the display unit 23 may be integrally formed, such as a touch panel display.

[0031] The printing unit 24 is a printing device that uses a thermal method, a dot impact method, an inkjet method, or the like. The printing unit 24 may be capable of printing using an ink ribbon or liquid ink. This allows the printing unit 24 to record information about the payment on recording paper such as a receipt or invoice for the payment.

[0032] The higher-level device also includes a network connection unit for connecting to the server 3. In addition, the higher-level device may include an audio output unit for outputting audio.

[0033] Next, the functional configuration of the payment system X will be described. The control unit 10 of the card reader 1 includes a card information acquisition unit 100, a card type determination unit 110, and a data generation unit 120. The storage unit 11 stores card information 300, truncation data 310, and status information 320. The control unit 20 of the higher-level device 2 includes a data acquisition unit 200 and a data output unit 210. The memory unit 21 stores the truncation data 310 and the payment information 330.

[0034] The card information acquiring unit 100 acquires card information 300 from the card medium. In this embodiment, the card information acquiring unit 100 acquires the card information 300 based on an analog signal acquired by the magnetic head 12. At this time, the card information acquiring unit 100 can also decrypt the encrypted signal from the encryption magnetic head and acquire it as the card information 300.

[0035] The card type determination unit 110 determines whether the card medium is a credit card or a non-credit card from the card information 300 acquired by the card information acquisition unit 100. Specifically, the card type determination unit 110 can determine whether the card medium is a credit card or a non-credit card from the most significant digits of the PAN and the result of the Luhn calculation described below, among the card information 300.

[0036] If the type of card medium determined by the card type determination unit 110 is a credit card, the data generation unit 120 generates truncation data 310 by masking a part of the card number included in the card information 300.

[0037] Furthermore, when the type of the card medium is a non-credit card, the data generating unit 120 can transmit all digits of the card medium to the connected higher-level device without encryption. On the other hand, when the type of the card medium is a credit card, the data generating unit 120 can transmit the truncation data 310 without encryption in response to a request from the connected higher-level device. In addition, the data generation unit 120 can be configured to delete the generated truncation data 310 or not send it to the upper device if the type of card medium is a credit card but the instruction from the upper device is not in a credit card waiting state.

[0038] The data acquiring unit 200 acquires the truncation data 310 from the card reader 1. More specifically, when the data acquiring unit 200 acquires the encrypted card information 300 of the credit card in the credit card waiting state, the data acquiring unit 200 can acquire this.

[0039] The data output unit 210 outputs the truncation data 310 acquired by the data acquisition unit 200, by including it in the payment information 330 in the payment process. At this time, the data output unit 210 can, for example, print a part or all of the truncation data 310 on a receipt, invoice, or the like using the printing unit 24.

[0040] Card information 300 is information for identifying card medium 4, recorded on a magnetic stripe or the like of card medium 4. In this embodiment, an example is shown in which card information 300 uses at least 14-16 digit information such as PAN (Primary Account Number) information described below. In the case of a house card, an arbitrary value is set at each digit position of this PAN information by the provider of card medium 4. In addition, card information 300 may include other information recorded on card medium 4.

[0041] An example of the card information 300 will now be described with reference to FIGS. 2(a) and 2(b). 2(a) shows an example in which PAN information is used as credit card information 300-1. Here, the PAN information indicates a user's card number, and the number is different for each individual user. 2(b) shows an example in which house card information is used as card information 300-2 for a house card, which is an example of a non-credit card. This card information 300-2 is arbitrary information recorded in the location where the PAN information of a credit card is recorded, and the number of digits is variable. In other words, for a non-credit card, arbitrary information can be used in place of the PAN information depending on the configuration of the payment system X.

[0042] The truncation data 310 is information in which a part of the credit card number is masked. In this embodiment, the truncation data 310 includes some or all of the upper or lower digits of the above-mentioned PAN information as stipulated in the PCI DSS standard.

[0043] An example of the truncation data 310 will now be described with reference to FIG. 3(c) shows an example in which the truncation data 310 uses six digits for the first half of the PAN information and four digits for the second half of the PAN information. That is, for the 7th to 12th digits to be masked, a number or character different from the value of the corresponding digit in card information 300, such as "0," "1," "None (None)," or a random number, is set (hereinafter referred to as "truncation"). When printed, this truncated portion is output as an asterisk (*) or the like so that the entire card number cannot be identified.

[0044] The status information 320 is information indicating the status of the card reader 1 corresponding to a command from a higher-level device. In this embodiment, the status information 320 is, for example, information such as a flag indicating whether the card reader 1 is waiting to read a house card or a credit card.

[0045] The payment information 330 is information on payments (settlements) using house cards and credit cards in the payment system X of this embodiment. In this embodiment, the payment information 330 includes, for example, information to be printed on receipts, invoices, etc., as text data, XML data, etc.

[0046] Here, the control unit 10 of the card reader 1 executes a control program including firmware and the like stored in the storage unit 11, thereby functioning as a card information acquisition unit 100, a card type determination unit 110, and a data generation unit 120. The control unit 10 of the higher-level device 2 functions as a data acquisition unit 200 and a data output unit 210 by executing a control program stored in the storage unit 11, the control program including firmware, an OS (Operating System), application software, and the like. The data stored in the storage unit 11 and the storage unit 21 may be variable depending on the processing state, procedure, and the like.

[0047] [Payment Processing] Next, the payment process according to the embodiment of the present invention will be described with reference to FIGS. In the payment process of this embodiment, the card information 300 is read by the card reader 1 in the order of the house card and the credit card, and payment is made. When reading this credit card, the higher-level device 2 acquires the truncation data 310 from the card reader 1. Then, the acquired truncation data 310 is included in the payment information 330 in the payment process and output.

[0048] In the payment process of this embodiment, control units 10 and 20 mainly execute the control programs stored in storage units 11 and 21 in cooperation with the various units, using hardware resources. Below, first, the main steps of the payment processing of this embodiment will be explained step by step with reference to the flowchart in Fig. 3. In the flowchart in Fig. 3, mainly, transmission and reception of plaintext (unencrypted) data and commands are indicated by dashed lines, and transmission and reception of encrypted data are indicated by dashed lines.

[0049] (Step S201) First, the data acquisition unit 200 of the higher-level device 2 performs a house card standby process. After the start of the payment, the data acquiring unit 200 displays on the display unit 23 a message instructing the user to insert a non-credit card, for example, a house card. Then, the data acquiring unit 200 transmits to the card reader 1 a command to acquire the card information 300 of the house card, which is a non-credit card.

[0050] (Step S101) Next, the card information acquisition unit 100, the card type determination unit 110, and the data generation unit 120 of the card reader 1 perform a read data transmission process. Here, the state information 320 is set to a house card reading waiting state. Then, the house card information is transmitted in plain text. This process will be described in detail later.

[0051] (Step S202) Here, the data output unit 210 of the higher-level device 2 performs house card processing. The data output unit 210 identifies the user based on the card information 300 of the house card and performs various payment processes. Specifically, when the card medium 4 is, for example, a patient appointment card or a point card, the data output unit 210 can connect to a business server separately to calculate the payment amount of the user and obtain payment information 330 including the calculation result. If an error is returned in the above-mentioned read data transmission process, the data output unit 210 performs processing such as issuing a warning to the user to insert a correct house card or canceling the payment.

[0052] (Step S203) Next, the data acquisition unit 200 of the higher-level device 2 performs a credit card standby process. After processing the house card, if the user selects to pay with a credit card, the data acquisition unit 200 displays on the display unit 23 a message instructing the user to insert the credit card. Then, the data acquiring unit 200 transmits to the card reader 1 a command to acquire the card information 300 of the credit card.

[0053] (Step S102) Here, the card information acquisition unit 100, the card type determination unit 110, and the data generation unit 120 of the card reader 1 perform a read data transmission process. The content of this process itself is the same as that of step S101 described above. However, in this case, the status information 320 is set to a waiting state for reading of the credit card, and the credit card information is transmitted as encrypted data. The host device 2 receives this encrypted data and transfers it to the server 3 as is.

[0054] (Step S301) Next, the server 3 performs the credit card payment process. The server 3 acquires the encrypted card number (encrypted data) of the credit card acquired by the card reader 1 via the higher-level device 2 and performs the settlement. At this time, the server 3 can also acquire the PIN number, biometric information, signature, etc. inputted by the input unit 22 of the higher-level device 2. Due to security and legal requirements, the card reader 1 and the higher-level device 2 do not retain this credit card data, except for the truncation data 310. The server 3 returns this payment result data to the higher-level device 2.

[0055] (Step S204) Next, the data output unit 210 of the higher-level device 2 performs a result printing process. When the data output unit 210 acquires the payment result data, it causes the printing unit 24 to render (draw) the payment information 330 and print it on a receipt, invoice, etc. At this time, the data output unit 210 can include at least a part of the truncation data 310 in the payment information 330 and print it on recording paper and output it. For example, the data output unit 210 can output the last four digits of the card information 300 of a credit card, etc., on recording paper as card details. This completes the payment process according to the embodiment of the present invention.

[0056] Next, the read data transmission process in steps S101 and S102 in FIG. 3 will be described in detail. In this read data transmission process, first, card information 300 is obtained from the card medium. Then, from the obtained card information 300, it is determined whether the card medium is a credit card or a non-credit card. In this embodiment, it is determined whether the card medium 4 inserted into the card reader 1 is a credit card or a house card, and the operation is changed depending on the determination result. If the type of the determined card medium is a credit card, truncation data 310 is generated by masking a part of the card number included in the card information 300. The details of the read data transmission process will be described below step by step with reference to the flowchart in FIG. 4 and the conceptual diagram in FIG.

[0057] (Step S110) First, the card information acquisition unit 100 performs a command reception process. The card information acquisition unit 100 receives a command to acquire credit card or non-credit card information 300. In this embodiment, a command to acquire card information 300 of a house card as a non-credit card is received. In response to this command, the card information acquisition unit 100 sets the status information 320 to a waiting state for reading of a credit card or non-credit card.

[0058] (Step S111) Next, the card information acquisition unit 100 performs a card information acquisition process. The card information acquisition unit 100 acquires card information 300 from the card medium 4 read by the magnetic head 12, and temporarily stores it in the memory unit 11. At this time, the card information acquisition unit 100 acquires all information recorded on the card medium 4. In other words, the card information acquisition unit 100 acquires card information 300 including the position values ​​of all digits corresponding to the PAN information.

[0059] (Step S112) Next, the card type determination unit 110 performs a high-order digit acquisition process. The card type determination unit 110 acquires data on the most significant digits of the PAN from the card information 300. Specifically, the card type determination unit 110 can acquire, for example, the most significant (first) six digits called an Issuer Identification Number (IIN) or a Bank Identification Number (BIN) from the portion of the card information 300 that corresponds to the PAN information.

[0060] (Step S113) Next, the card type determination unit 110 determines whether or not the acquired upper digits are upper digits of a credit card. The card type determination unit 110 determines whether the acquired upper digits are a credit card. Specifically, for example, the card type determination unit 110 determines Yes when the most significant digit of the acquired card information 300 matches a Major Industry Identifier (MII) that indicates a credit card issuer, and the remaining digits also clearly indicate an international brand or a card issuer. The card type determination unit 110 determines No in other cases, that is, when the industrial classification or division of the most significant digit does not indicate a credit card or the remaining digits are unknown. If the answer is Yes, the card type determination unit 110 advances the process to step S114. If the answer is No, the card type determination unit 110 advances the process to step S120.

[0061] (Step S114) If it is a high-order digit of a credit card, the card type determination unit 110 performs the Luhn arithmetic process. The card type determination unit 110 performs a calculation on each digit corresponding to the PAN information using the Luhn algorithm defined in ISO / IEC 7812-1 or the like. The card type determination unit 110 temporarily stores the calculation result in the storage unit 11.

[0062] (Step S115) Next, the card type determination unit 110 determines whether the Luhn operation result matches the end of the number. The card type determination unit 110 judges whether the value of the least significant (last) digit of the card information 300 corresponds to the calculation result of the above-mentioned Luhn algorithm. That is, the card type determination unit 110 checks the "check digit", which is the last number of the credit card number. The card type determination unit 110 judges Yes when the value of the least significant digit at the position corresponding to the PAN information of the card information 300 matches the calculation result. In this case, the card type determination unit 110 judges that it is a credit card. In other cases, the card type determination unit 110 determines No. In this case, the card type determination unit 110 determines that the card is a non-credit card, and in this embodiment, a house card. If the answer is Yes, the card type determination unit 110 advances the process to step S116. If the answer is No, the card type determination unit 110 advances the process to step S120.

[0063] (Step S116) If it is a credit card, the data generating unit 120 performs a truncation data generating process. The data generating unit 120 generates truncated data 310 by masking a portion of the card number included in the card information 300. Specifically, the data generating unit 120 creates truncated data 310 that includes some or all of the upper or lower digits as stipulated in the PCI DSS standard. In this embodiment, the data generating unit 120 generates data in which the 7th to 12th digits of the PAN information as shown in Fig. 2(c) above have been truncated.

[0064] (Step S117) Next, the data generating unit 120 judges whether or not the card was in a credit card waiting state. Data generation unit 120 refers to state information 320, and if the reception of the command has caused the card reader to wait for reading, determines Yes. In other cases, the data generator 120 determines No. If the answer is Yes, the data generator 120 advances the process to step S118. If the answer is No, the data generator 120 advances the process to step S119.

[0065] (Step S118) If the card is waiting to be read, the data generating unit 120 performs a credit card transmission process. This process is carried out when the credit card is inserted while waiting for it to be read. 5(a), the data generation unit 120 encrypts the card information 300 of the credit card and temporarily transmits the encrypted data to the higher-level device 2. After that, the data generation unit 120 also transmits the truncation data 310 to the higher-level device 2 in plain text. Thereafter, the data generating unit 120 ends the read data transmission process.

[0066] (Step S119) If the card is not waiting to be read, the data generating unit 120 performs a data erasing process. In this embodiment, this process is performed when the type of the card medium 4 is a credit card, but the instruction from the higher-level device 2 is a waiting state for reading of a house card, or the like. 5(b), in this embodiment, the data generating unit 120 erases (deletes) the truncation data 310 from the storage unit 11 and does not transmit it to the higher-level device 2. Alternatively, the data generating unit 120 may simply not transmit the truncation data 310, rather than simply deleting it. In this case, the next time truncation data 310 is generated, it may be overwritten in the same area of ​​the storage unit 11 that stores the card information 300. Then, the data generating unit 120 notifies the higher-level device 2 of an error that a credit card has been inserted. Thereafter, the data generating unit 120 ends the read data transmission process.

[0067] (Step S120) Here, the data generating unit 120 performs the house card transmission process. In this embodiment, this process is carried out when a house card is inserted, regardless of whether the card reader is waiting for a credit card or house card to be read. 5(c), the data generation unit 120 does not encrypt card information 300, which is position information corresponding to PAN information recorded on a house card, which is a non-credit card, and transmits it in plain text (unencrypted data) to the higher-level device 2. In other words, the data generation unit 120 transmits the values ​​of all digits of the card medium 4 to the higher-level device 2 connected to the card reader 1 without encrypting them.

[0068] As a result, when the card information 300 is transmitted while waiting for the house card to be read, the higher-level device 2 that acquires it can execute house card processing. On the other hand, when the house card is read while waiting for the credit card to be read, the higher-level device 2 can display an error message such as "Please insert your credit card" on the display unit 23 and request the user to insert the credit card again. This completes the read data transmission process according to the embodiment of the present invention.

[0069] [Main Effects of the Present Embodiment] With the above configuration, the following effects can be obtained. The card reader 1 according to an embodiment of the present invention is characterized by comprising a card information acquisition unit 100 which acquires card information 300 from a card medium, a card type determination unit 110 which determines whether the card medium 4 is a credit card or a non-credit card from the card information 300 acquired by the card information acquisition unit 100, and a data generation unit 120 which generates truncation data 310 by masking a portion of the card number included in the card information 300 when the type of the card medium determined by the card type determination unit 110 is a credit card. With this configuration, it is possible to output a portion of the credit card number. Specifically, since the credit card number has been truncated, it can be held without being encrypted in the card reader 1 or the higher-level device 2. As a result, although the card number cannot be specified in the higher-level device 2, it is possible to print a number that allows the user to recognize which card it is. In other words, for example, the last four digits of the card number can be printed on a receipt or invoice. This makes it possible to provide a portion of the card number in accordance with the provisions of the Installment Sales Act and the like, while improving user convenience.

[0070] The card reader 1 according to the embodiment of the present invention is characterized in that the truncation data 310 includes some or all of the upper or lower digits defined in the PCI DSS standard. With this configuration, it is possible to prepare truncation data 310 as required for security and legal reasons, and based on this, a number that enables the user to identify which card it is, can be printed on receipts, invoices, etc.

[0071] The card reader 1 of the embodiment of the present invention is characterized in that the data generation unit 120 transmits all digits of the card medium 4 to the connected higher-level device 2 without encryption if the type of the card medium 4 is a non-credit card, and is capable of transmitting the truncation data 310 without encryption upon request of the connected higher-level device 2 if the type of the card medium 4 is a credit card. With this configuration, the truncation data 310 can be transmitted in plain text and stored and used by the higher-level device 2 while the credit card is safely settled. Furthermore, the processing load can be reduced compared to when the truncation data 310 is encrypted and transmitted.

[0072] The card reader 1 according to an embodiment of the present invention is characterized in that the data generation unit 120 does not delete or send the generated truncation data 310 to the higher-level device if the type of the card medium 4 is a credit card but the instruction from the higher-level device 2 is not waiting for the credit card to be read. With this configuration, even if a credit card is inserted and read by mistake, the truncation data 310 once generated can be prevented from being acquired by the higher-level device 2. This enhances security and allows the truncation data 310 to be used effectively.

[0073] A payment system X according to an embodiment of the present invention is a payment system including a card reader 1 that reads out a card medium, and a higher-level device 2 that is connected to the card reader 1 and performs payment processing. The card reader 1 includes a card information acquisition unit 100 that acquires card information 300 from the card medium 4, a card type determination unit 110 that determines whether the card medium 4 is a credit card or a non-credit card from the card information 300 acquired by the card information acquisition unit 100, and a data generation unit 120 that generates truncation data 310 by masking a portion of the card number included in the card information 300 when the type of the card medium 4 determined by the card type determination unit 110 is a credit card. The higher-level device 2 includes a data acquisition unit 200 that acquires the truncation data 310 from the card reader, and a data output unit 210 that includes the truncation data 310 acquired by the data acquisition unit 200 in payment information 330 for outputting the data. With this configuration, a part of the credit card number can be output by the printing unit 24 of the higher-level device 2, improving user convenience. That is, even in the payment system X that encrypts the card number before transmitting it to the server, it becomes possible for the higher-level device 2, which is the payment terminal, to print the last four digits of the card number, etc., on receipts, invoices, etc.

[0074] Other Embodiments In the above embodiment, it has been described that the card information 300 is deleted when a credit card is inserted while the house card is waiting to be read. However, instead of deleting the card information 300 itself, it is also possible to erase address information (address information) of the address of the storage area of ​​the storage unit 11 in which the card information 300 is recorded. In other words, it is also possible to delete the pointer of the card information 300, etc. With this configuration, the memory area of ​​the storage unit 11 can be used effectively.

[0075] In the above embodiment, when a house card is inserted while waiting for a credit card to be read, all digits of the card information 300 are transmitted in plain text. However, in such a case, the higher-level device 2 may be notified of only the error, or only a part of the house card information 300 may be transmitted. With this configuration, it becomes possible for the higher-level device 2 to immediately know that an incorrect card has been inserted, thereby reducing the processing load on the higher-level device 2. In addition, security can be further improved.

[0076] Furthermore, in the above embodiment, it has been described that even if the result of the Luhn operation does not match the check digit, the card information 300 is transmitted to the higher-level device 2 as plain text. However, in such a case, it is possible to transmit a message to the higher-level device 2 indicating that an illegal card has been used or that a reading error has occurred. Furthermore, this information may be stored in the card reader 1, or reading itself may be made impossible. Such a configuration can further enhance security and contribute to the prevention of crimes involving counterfeit cards, etc.

[0077] In the above embodiment, the house card is read first, and then the credit card is read in the payment process. However, it may be configured such that the house card is read after the payment is made by credit card. In this case, it is also possible to carry out house card processing to confirm the user's intention, and then transmit the encrypted data to the server 3 to carry out the actual payment. Alternatively, it is possible to use a non-credit card other than the house card, or to read multiple house cards such as a point card and a card for a different service, etc. Furthermore, if the user pays with cash, etc., it is not necessary to read the credit card itself. This configuration makes it possible to accommodate a variety of payment system configurations.

[0078] In the above embodiment, the server 3 is a server that provides a payment service for credit card payments. Furthermore, in the above embodiment, the higher-level device 2 is separately connected to a business server for settlement. However, the upper device 2 and the server 3 alone may be capable of settling the account and making the payment and settlement by credit card. Alternatively, the server 3 may also function as the business server described above. Furthermore, the business server may be configured using a so-called "cloud" service. Additionally, in the above embodiment, the server 3 and the higher-level device 2 are directly connected to each other. However, the server 3 may be connected to the higher-level device 2 via the above-mentioned business server. This configuration makes it possible to accommodate flexible payment system configurations using credit cards and house cards.

[0079] In the above embodiment, the card reader 1 and the higher-level device 2 are separate devices. However, a settlement terminal device (system) in which the functions of the card reader and the higher-level device are integrated may be used. Such a configuration makes it possible to accommodate a flexible configuration.

[0080] It goes without saying that the configurations and operations of the above-described embodiments are merely examples and can be modified as appropriate without departing from the spirit and scope of the present invention. [Explanation of symbols]

[0081] 1 Card Reader 2. Upper device 3 Server 4. Card media 10, 20 Control section 11, 21 Storage section 12 Magnetic head 22 Input section 23 Display section 24 Printing Department 100 Card information acquisition section 110 Card type determination unit 120 Data Generation Division 200 Data Acquisition Department 210 Data output section 300, 300-1, 300-2 Card Information 310 Truncation Data 320 Status Information 330 Payment Information X Payment System

Claims

1. a card information acquisition unit that acquires card information from a card medium; a card type determination unit that determines whether the card medium is a credit card or a non-credit card based on the card information acquired by the card information acquisition unit; a data generating unit that generates truncation data by masking a part of the card number included in the card information when the type of the card medium determined by the card type determining unit is a credit card; The data generation unit If the type of the card medium is a house card that is not a credit card, all digits of the card medium are transmitted to the connected higher-level device without encryption, If the instruction from the host device indicates a waiting state for reading of a credit card and the type of the card medium is a credit card, the truncation data is transmitted without encryption in response to a request from the connected host device; If the instruction from the host device indicates a waiting state for reading of the house card and the type of the card medium is a credit card, the generated truncation data is not deleted or transmitted to the host device, and an error that a credit card has been inserted is notified; The card type determination unit If the most significant digits of the card information are those of a credit card but the Luhn calculation result does not match the check digit, information indicating that an illegal card was used or a reading error is sent to the host device, and the information is stored, making reading itself impossible. A card reader characterized by:

2. The truncation data is Includes some or all of the upper or lower digits specified in the PCI DSS standard 2. The card reader according to claim 1.

3. A payment system including a card reader that reads a card medium and a host device that is connected to the card reader and performs payment processing, The card reader includes: a card information acquisition unit that acquires card information from the card medium; a card type determination unit that determines whether the card medium is a credit card or a non-credit card based on the card information acquired by the card information acquisition unit; a data generating unit that generates truncation data by masking a part of the card number included in the card information when the type of the card medium determined by the card type determining unit is a credit card; The higher-level device is a data acquisition unit that acquires the truncation data from the card reader; a data output unit that includes the truncation data acquired by the data acquisition unit in payment information in the payment processing and outputs the same; The data generation unit If the type of the card medium is a house card that is not a credit card, all digits of the card medium are transmitted to the host device without encryption, If the instruction from the host device indicates a waiting state for reading of a credit card and the type of the card medium is a credit card, the truncation data is transmitted without encryption in response to a request from the connected host device; If the instruction from the host device indicates a waiting state for reading of the house card and the type of the card medium is a credit card, the generated truncation data is not deleted or transmitted to the host device, and an error that a credit card has been inserted is notified; The card type determination unit If the most significant digits of the card information are those of a credit card but the Luhn calculation result does not match the check digit, information indicating that an illegal card was used or a reading error is sent to the host device, and the information is stored, making reading itself impossible. A payment system characterized by:

Citation Information

Patent Citations

  • Forged identification card deciding method, identification card reader, identification card settling device, identification card and computer-readable recording medium with program for making computer perform the method

    JP2001338272A

  • Transaction settlement apparatus

    JP2006215723A

  • Systems and methods for flexibly securing card data

    JP2017097875A

  • Automatic transaction device, automatic transaction system, automatic transaction method, and automatic transaction program

    JP2019109723A

  • Card data acquisition system, card reader and card data acquisition method

    JP2020052444A