Settlement terminal and program
The receipt server system addresses the lack of product information in electronic payments by linking POS and payment servers to transmit purchase data, enabling comprehensive transaction insights while managing processing loads effectively.
Patent Information
- Application Number
- JP2024128985
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2040-09-28
AI Technical Summary
Existing electronic payment systems fail to provide payment service providers with information on the products purchased by payers, limiting their understanding of transaction details beyond date, time, and amount.
A receipt server system that includes an acquisition unit to collect transaction identification from payment sales data and an output unit to provide product information to payment servers, linking POS terminals, receipt servers, and payment servers to facilitate the transmission of purchase data.
Enables payment service providers to access information on purchased products, enhancing transaction insights and reducing processing load on the receipt server through batch processing.
Smart Images

Figure 2024150764000001_ABST
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a receipt server and a program therefor, and a server system including the receipt server. [Background technology]
[0002] In recent years, electronic payments, which process payment for transactions electronically, have been attracting attention. Examples of electronic payments include credit card payments, electronic money payments, and code payments using barcodes or two-dimensional codes. When electronic payments are made at a brick-and-mortar store, payment sales data is output from the payment terminal to the server of the payment business operator. The payment sales data includes information on the person who made the payment, information on the date and time of the transaction, information on the transaction store, and information on the payment amount. However, it does not include information on the products purchased by the person who made the payment. Therefore, although the payment business operator can grasp information on who used electronic payment, when, where, and how much, it cannot grasp information on what was purchased. There is a demand for a service that provides payment business operators with information on the products purchased by the person who made the payment using electronic payment. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-113005 A Summary of the Invention [Problem to be solved by the invention]
[0004] The problem to be solved by the embodiments of the present invention is to provide a receipt server and a server system that can realize a service of providing a payment company with information about products purchased by a payer using electronic payment. [Means for solving the problem]
[0005] In one embodiment, the receipt server includes an acquisition unit and an output unit. The acquisition unit acquires receipt data of a commercial transaction identified by transaction identification information included in payment sales data notified from the payment terminal to a payment company supporting the payment of the commercial transaction from a receipt storage unit that stores receipt data generated by the payment terminal when the commercial transaction is settled. The output unit outputs information related to the purchased product included in the receipt data acquired by the acquisition unit to a payment server of the payment company. [Brief description of the drawings]
[0006] [Figure 1] FIG. 1 is a system diagram showing an outline of an embodiment. [Diagram 2] FIG. 4 is a schematic diagram showing a data structure of a POS-side setting table. [Diagram 3] 4 is a flowchart showing the main processing steps of a receipt processing unit. [Figure 4] FIG. 2 is a block diagram showing the main circuit configuration of a receipt server. [Diagram 5] FIG. 4 is a schematic diagram showing a data structure of a server-side setting table. [Figure 6] 11 is a flowchart showing the procedure of a receipt data sorting process executed by a processor of the receipt server. [Figure 7] FIG. 4 is a schematic diagram showing the structure of first receipt data stored in a first file. [Figure 8] FIG. 11 is a schematic diagram showing the structure of second receipt data stored in a second file. [Figure 9] FIG. 2 is a block diagram showing the main circuit configuration of a payment server. [Figure 10] Schematic diagram showing the structure of payment sales data stored in a payment information file. [Figure 11] 4 is a flow chart showing the main information processing steps executed by a processor of the payment server in one embodiment. [Figure 12] 4 is a flow chart showing the main information processing steps executed by a processor of a receipt server in one embodiment. [Figure 13] 11 is a flowchart showing a main information processing procedure executed by a processor of the payment server in another embodiment. [Figure 14] 10 is a flowchart showing the main information processing steps executed by a processor of the receipt server in another embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] An embodiment of a receipt server and a server system will be described below with reference to the drawings.
[0008] [First embodiment] 1 is a system diagram showing an overview of one embodiment. The system includes multiple POS (Point Of Sales) terminals 10, one receipt server 20, multiple payment servers 30, and a communication network 40. The communication network 40 is composed of one or more networks such as the Internet, a telephone network, or a LAN (Local Area Network).
[0009] Each POS terminal 10 is a computer terminal installed in a store and used for registering and settling products purchased by customers. The store may be of any type. The store may be a retail store such as a mass merchandiser or a specialty store, or may be a restaurant. Each POS terminal 10 is connected to a communication network 40. Each POS terminal 10 may be directly connected to the communication network 40, or one or more POS terminals 10 may be connected to the communication network 40 via a relay server.
[0010] The receipt server 20 is a server computer managed by a business entity that operates the electronic receipt service. The electronic receipt service is a service that digitizes print data on receipts issued from the POS terminal 10 during checkout at a store, allowing the customer who made the payment to view the receipt as an image on a communication terminal owned by the customer. The communication terminal is typically a smartphone. The communication terminal may also be a tablet terminal, a PC, etc. The receipt server 20 is connected to a communication network 40. The receipt server 20 works in cooperation with each POS terminal 10 connected to the communication network 40 to provide customers with an electronic receipt service.
[0011] A user who uses the electronic receipt service installs a dedicated application program, a so-called electronic receipt app, in a portable communication terminal, for example, a smartphone. By installing the electronic receipt app in the communication terminal, a receipt ID that serves as an identifier for the user is issued. The receipt ID is displayed, for example, in the form of a barcode on the display of the communication terminal. When the receipt ID is read by the scanner of the POS terminal 10 at the time of payment of a commercial transaction in which the user is a customer, receipt data showing the details of the commercial transaction is digitized and transmitted from the POS terminal 10 to the receipt server 20. The receipt data includes the receipt ID. The user accesses the receipt server 20 using the electronic receipt app of the communication terminal. Then, a receipt image based on the receipt data including the receipt ID set in the communication terminal is downloaded from the receipt server 20. The user can view the downloaded receipt image on the communication terminal.
[0012] Each payment server 30 is a server computer managed by a payment service provider that supports electronic payment for commercial transactions. Electronic payment includes credit card payment, electronic money payment, and code payment using a barcode or a two-dimensional code. Each payment server 30 is connected to a communication network 40. Each payment server 30 supports electronic payment executed at each POS terminal 10 through the communication network 40.
[0013] The payment server 30 issues a payment number each time an electronic payment supported by the payment server 30 is executed at the POS terminal 10. The payment number is typically a serial number. The payment number is also called an approval number, transaction serial number, slip number, etc. by the payment business operator. The payment number is included in the receipt data of the electronically paid commercial transaction together with the payment name, payment amount, etc.
[0014] The payment name is a name that indicates the type of payment amount. If the payment amount is the payment amount for a cash payment, the payment name is, for example, "current total." If the payment amount is the payment amount for a credit card payment, the payment name is, for example, "credit total" or "credit total." If the payment amount is the payment amount for an electronic money payment, the payment name is, for example, a unique name that indicates the type of electronic money. If the payment amount is the payment amount for a code payment, the payment name is, for example, a unique name that indicates the type of code payment.
[0015] Here, the receipt server 20 and each payment server 30 make up a server system 100. In other words, the server system 100 is a computer network system in which the receipt server 20 and each payment server 30 are connected via a communication network 40. Note that the server system 100 may also include servers other than the receipt server 20 and the payment server 30.
[0016] Next, the POS terminal 10, the receipt server 20, and the settlement server 30 will be described in detail. The POS terminal 10 has a function as a product registration unit 11, a function as a payment processing unit 12, and a function as a receipt processing unit 13. The product registration unit 11 has a function of registering sales data of products purchased by customers in a memory. This function calculates the total amount of a commercial transaction with a customer. The function of the product registration unit 11 is well known, so a detailed description will be omitted.
[0017] The payment processing unit 12 has a function of settling a commercial transaction based on payment data for the total amount of the commercial transaction. In the case of cash payment, the payment processing unit 12 executes cash payment processing. In the case of credit card payment, the payment processing unit 12 executes credit card payment processing. In the case of electronic money payment, the payment processing unit 12 executes electronic money payment processing. In the case of code payment, the payment processing unit 12 executes code payment processing. Cash payment processing, credit card payment processing, electronic money payment processing, and code payment processing are all well-known processes, so detailed explanations are omitted. When a commercial transaction is settled by electronic payment supported by the payment server 30, payment sales data is output from the POS terminal 10 to the payment server 30 as in the past. The payment sales data includes information on the customer who made the payment, information on the transaction date and time, information on the transaction store, the payment number, and the payment amount, etc.
[0018] The receipt processor 13 has a function for processing receipt data generated for each payment of a commercial transaction. The receipt processor 13 processes receipt data using a POS setting table 131 having the data structure shown in Fig. 2. The POS setting table 131 is downloaded to each POS terminal 10 from the receipt server 20, for example.
[0019] The POS side setting table 131 is a data table in which a payment name is set by business code. The business code is a unique code set for each payment business to identify each individual payment business. The payment name is a name that indicates the payment amount in electronic payment supported by the payment server 30 of the payment business identified by the corresponding business code.
[0020] 3 is a flow chart showing the main processing steps of the receipt processing unit 13. This processing is initiated each time a commercial transaction is settled by the payment processing unit 12. That is, when a commercial transaction is settled, the receipt processing unit 13 obtains receipt data showing the details of that commercial transaction as ACT1. The receipt data is generated by the payment processing unit 12. The receipt data includes the transaction date and time, transaction number, registered product data, total amount, payment name, payment amount, etc. Furthermore, if a receipt ID was read by the scanner of the POS terminal 10 when the commercial transaction was settled, the receipt ID is included in the receipt data. Furthermore, if the commercial transaction was settled by electronic payment, the payment number is included in the receipt data.
[0021] The receipt processing unit 13 checks whether or not a receipt ID is included in the receipt data in ACT 2. If a receipt ID is included in the receipt data, the receipt processing unit 13 judges YES in ACT 2 and proceeds to ACT 6. The processing after ACT 6 will be described later.
[0022] If the receipt data does not contain a receipt ID, the receipt processing unit 13 judges NO in ACT2 and proceeds to ACT3. The receipt processing unit 13 obtains the payment name included in the receipt data in ACT3. The receipt processing unit 13 checks whether the payment name is set in the POS setting table 131 in ACT4, that is, whether the payment name represents the payment amount of electronic payment. If the payment name is not set in the POS setting table 131, that is, if the payment is not electronic, the receipt processing unit 13 judges NO in ACT4 and proceeds to ACT5. The receipt processing unit 13 controls the printer of the POS terminal 10 in ACT5 to print out the receipt data on receipt paper.
[0023] On the other hand, if the payment name is set in the POS side setting table 131, the receipt processing unit 13 determines YES in ACT4 and proceeds to ACT6. In this way, if the receipt processing unit 13 acquires receipt data that includes a receipt ID, or if it acquires receipt data that does not include a receipt ID but does include the payment name of an electronic payment, it proceeds to ACT 6. The receipt processing unit 13 digitizes the receipt data in ACT 6. That is, the receipt processing unit 13 converts unstructured receipt data into structured receipt data, so-called electronic receipt data, in accordance with predetermined conversion rules.
[0024] Once the receipt data has been digitized, the receipt processing unit 13 sends the digitized receipt data as ACT7 to the receipt server 20. The receipt data is sent to the receipt server 20 via the communications network 40.
[0025] Once the receipt data has been printed out on receipt paper or digitized and sent to the receipt server 20, the receipt processor 13 ends the processing steps shown in the flowchart of FIG.
[0026] 4 is a block diagram showing the main circuit configuration of the receipt server 20. The receipt server 20 comprises a processor 21, a main memory 22, an auxiliary storage device 23, a clock 24, and a communication interface 25. In the receipt server 20, the processor 21 is connected to the main memory 22, the auxiliary storage device 23, the clock 24, and the communication interface 25 via a system bus 26. The system bus 26 includes an address bus, a data bus, etc. In the receipt server 20, the processor 21 is connected to the main memory 22, the auxiliary storage device 23, the clock 24, and the communication interface 25 via the system bus 26 to form a computer.
[0027] The processor 21 corresponds to the central part of the computer. The processor 21 controls each part to realize various functions of the receipt server 20 according to an operating system or application programs. The processor 21 is, for example, a CPU (Central Processing Unit).
[0028] The main memory 22 corresponds to the main storage portion of the computer. The main memory 22 includes a nonvolatile memory area and a volatile memory area. The main memory 22 stores an operating system or an application program in the nonvolatile memory area. The main memory 22 stores data required for the processor 21 to execute processes for controlling each part in the volatile memory area. The main memory 22 also uses the volatile memory area as a work area where data is appropriately rewritten by the processor 21. The nonvolatile memory area is, for example, a ROM (Read Only Memory). The volatile memory area is, for example, a RAM (Random Access Memory).
[0029] The auxiliary storage device 23 corresponds to the auxiliary storage portion of the computer. As the auxiliary storage device 23, for example, a well-known storage device such as an EEPROM (registered trademark) (Electric Erasable Programmable Read-Only Memory), a HDD (Hard Disc Drive), or an SSD (Solid State Drive) is used alone or in combination. The auxiliary storage device 23 stores data used by the processor 21 in performing various processes, data generated by the processes in the processor 21, etc. The auxiliary storage device 23 may also store an application program.
[0030] The application programs stored in the main memory 22 or the auxiliary storage device 23 include a control program, which will be described later. There is no particular limitation on the method for installing the control program into the main memory 22 or the auxiliary storage device 23. The control program can be installed into the main memory 22 or the auxiliary storage device 23 by recording it on a removable recording medium, or by distributing the control program by communication via a network. The recording medium may be in any form, such as a CD-ROM or memory card, as long as it can store a program and is readable by the device.
[0031] The clock 24 functions as a time information source for the receipt server 20. The processor 21 obtains the current date and time based on the time information kept by the clock 24.
[0032] The communication interface 25 connects to the communication network 40. The receipt server 20 performs data communication with the POS terminal 10 and the payment server 30 connected to the communication network 40 via the communication interface 25. The receipt server 20 also performs data communication with a communication terminal on which an electronic receipt app is installed via the communication interface 25.
[0033] In a receipt server 20 configured as above, part of the storage area of the auxiliary storage device 23 is used as an area for a server-side setting table 231, an area for a first file 232, and an area for a second file 233.
[0034] 5 is a schematic diagram showing the data structure of the server-side setting table 231. As shown in the figure, the server-side setting table 231 is a data table in which a payment name and an output flag are set for each business code. The output flag is one-bit data for identifying whether or not a payment business identified by a corresponding business code is a payment business to which purchasing information is provided. Purchasing information refers to the product purchased by a customer, that is, the product code, product name, price, etc. of the purchased product. In this embodiment, the output flag indicating a payment business to which purchasing information is provided is set to "1", and the output flag indicating a payment business to which purchasing information is not provided is set to "0".
[0035] The first file 232 and the second file 233 function as a receipt storage unit for storing receipt data received from each POS terminal 10. The processor 21 refers to the server-side setting table 231 and allocates the storage destination of the receipt data received from each POS terminal 10 to either the first file 232 or the second file 233, or both the first file 232 and the second file 233.
[0036] 6 is a flow diagram showing the steps of the receipt data sorting process executed by the processor 21 of the receipt server 20. The processor 21 waits to receive receipt data in ACT11. When receipt data is received, the processor 21 determines YES in ACT11 and proceeds to ACT12. The processor 21 checks whether the receipt data includes a receipt ID in ACT12. If the receipt data includes a receipt ID, the processor 21 determines YES in ACT12 and proceeds to ACT13. The processor 21 saves the receipt data in the first file 232 in ACT13. The processor 21 then proceeds to ACT14.
[0037] If the receipt data does not include a receipt ID, the processor 21 determines NO in ACT12. The processor 21 skips the processing of ACT13 and proceeds to ACT14. The processor 21 acquires the payment name included in the receipt data in ACT14. The processor 21 then checks whether the payment name is set in the server-side setting table 231 in ACT15, that is, whether the payment name is a name that represents the payment amount of electronic payment. If the payment name is not set in the server-side setting table 231, that is, if the payment is not electronic, the processor 21 determines NO in ACT15 and ends this allocation process.
[0038] If the payment name is set in the server-side setting table 231, i.e., if it is electronic payment, the processor 21 checks the output flag set in the server-side setting table 231 corresponding to that payment name in ACT 16. Here, if the output flag is "0", i.e., if it is electronic payment related to a payment business operator not subject to purchase information provision, the processor 21 judges NO in ACT 16 and ends this allocation process.
[0039] If the output flag is "1", i.e., if the payment is electronic and relates to a payment business to which the purchasing information is provided, the processor 21 determines YES in ACT 16 and proceeds to ACT 17. In ACT 17, the processor 21 saves the receipt data in the second file 233. With this, the processor 21 ends this allocation process.
[0040] As a result of this sorting process, receipt data including a receipt ID, that is, receipt data relating to a commercial transaction of a customer who receives the electronic receipt service, is stored in the first file 232. Receipt data of a commercial transaction settled by electronic payment related to the payment service provider to which the purchasing information is provided is stored in the second file 233. Note that even in the case of a commercial transaction of a customer who receives the electronic receipt service, receipt data of a commercial transaction settled by electronic payment related to the payment service provider to which the purchasing information is provided is stored in both the first file 232 and the second file 233. Hereinafter, the receipt data stored in the first file 232 will be referred to as first receipt data Ra (see FIG. 7). The receipt data stored in the second file 233 will be referred to as second receipt data Rb (see FIG. 8).
[0041] Here, the first file 232 and the second file 233 constitute a receipt storage section. The first file 232 constitutes a first receipt storage section, and the second file 233 constitutes a second receipt storage section.
[0042] The processor 21 that executes the allocation process constitutes a processing unit. That is, the processor 21 stores receipt data including second identification information (receipt ID) that identifies the electronic receipt user in the first receipt storage unit (first file 232), and stores receipt data including information (payment name) that indicates that the transaction was settled with the assistance of a payment service provider in the second receipt storage unit (second file 233).
[0043] FIG. 7 is a schematic diagram showing the structure of the first receipt data Ra stored in the first file 232. As shown in the figure, the first receipt data Ra includes at least a receipt ID, a store code, a transaction date and time, a register number, a transaction number, registered product data, a total amount, a payment name, a payment amount, and the like. The store code is an identifier of the store in which the POS terminal 10 that transmitted the first receipt data Ra is installed. The transaction date and time is the date and time when the transaction was settled at the POS terminal 10. The register number is an identifier of the POS terminal 10. The transaction number is a serial number issued to the transaction settled at the POS terminal 10. The registered product data is information related to the product registered as a purchased product, and includes a product code, a price, a sales quantity, a sales amount, and the like. The registered product data may include a product name instead of a product code. Alternatively, the registered product data may include a product code and a product name. The total amount is the sum of the sales amounts included in the registered product data. The payment name and the payment amount are the payment name and the payment amount of the payment data for that total amount. The first receipt data Ra relating to an electronically paid commercial transaction further includes a payment number.
[0044] 8 is a schematic diagram showing the structure of the second receipt data Rb stored in the second file 233. As shown in the figure, the second receipt data Rb includes at least the store code, transaction date and time, register number, transaction number, registered product data, total amount, payment name, payment amount, payment number, etc. Note that the second receipt data Rb related to a commercial transaction of a customer who receives an electronic receipt service includes a receipt ID.
[0045] The other second receipt data Rbb shown in Fig. 8 indicates the second receipt data after the purchase information transfer process described below has been performed. The second receipt data Rbb is data in which a user ID and a terminal ID have been added to the second receipt data Rb. The user ID and terminal ID will be described later.
[0046] 9 is a block diagram showing the main circuit configuration of the payment server 30. The payment server 30 includes a processor 31, a main memory 32, an auxiliary storage device 33, a clock 34, and a communication interface 35. The payment server 30 connects the processor 31 to the main memory 32, the auxiliary storage device 33, the clock 34, and the communication interface 35 via a system bus 36. The system bus 36 includes an address bus, a data bus, and the like. The payment server 30 configures a computer by connecting the processor 31 to the main memory 32, the auxiliary storage device 33, the clock 34, and the communication interface 35 via the system bus 36.
[0047] The processor 31 corresponds to the central part of the computer. The processor 31 controls each part to realize various functions of the payment server 30 according to an operating system or an application program. The processor 31 is, for example, a CPU.
[0048] The main memory 32 corresponds to the main storage portion of the computer. The main memory 32 includes a nonvolatile memory area and a volatile memory area. The main memory 32 stores an operating system or an application program in the nonvolatile memory area. The main memory 32 stores data required for the processor 31 to execute processes for controlling each part in the volatile memory area. The main memory 32 also uses the volatile memory area as a work area where data is appropriately rewritten by the processor 31. The nonvolatile memory area is, for example, a ROM. The volatile memory area is, for example, a RAM.
[0049] The auxiliary storage device 33 corresponds to the auxiliary storage portion of the computer. As the auxiliary storage device 33, for example, a well-known storage device such as an EEPROM, HDD, or SSD (is used alone or in combination). The auxiliary storage device 33 stores data used by the processor 31 when performing various processes, data generated by the processes in the processor 31, etc. The auxiliary storage device 33 may also store application programs.
[0050] The application programs stored in the main memory 32 or the auxiliary storage device 33 include a control program, which will be described later. There is no particular limitation on the method of installing the control program in the main memory 32 or the auxiliary storage device 33. The control program can be installed in the main memory 32 or the auxiliary storage device 33 by recording it on a removable recording medium, or by distributing the control program by communication via a network. The recording medium may be in any form, such as a CD-ROM or memory card, as long as it can store the program and is readable by the device.
[0051] The clock functions as a time information source for the payment server 30. The processor 31 obtains the current date and time based on the time information kept by the clock .
[0052] The communication interface 35 connects to the communication network 40. The payment server 30 performs data communication with the POS terminal 10 and the receipt server 20 connected to the communication network 40 via the communication interface 35.
[0053] The settlement server 30 configured as above uses a part of the memory area of the auxiliary memory device 33 as an area for a settlement information file 331. The settlement information file 331 is a data file for storing settlement sales data transmitted from each POS terminal 10 to the settlement server 30.
[0054] 10 is a schematic diagram showing the structure of payment sales data Rc stored in the payment information file 331. The payment sales data Rc includes a store code, transaction date and time, payment number, payment amount, user ID, and terminal ID. The user ID is an identifier for a customer who uses electronic payment. The terminal ID is an identifier for a communication terminal such as a smartphone.
[0055] A customer who uses electronic payment registers with a payment service provider in advance. This user registration results in a unique user ID being issued by the payment service provider. The user ID is stored in a medium for electronic payment, such as a credit card, electronic money card, or smartphone. The POS terminal 10 retrieves the user ID from the medium when executing electronic payment. The POS terminal 10 then transmits payment sales data Rc, including the user ID, to the payment server 30 of the relevant payment service provider. Here, if the medium is a communication terminal, the POS terminal 10 also retrieves the terminal ID from the communication terminal. The POS terminal 10 then transmits the payment sales data Rc, including this terminal ID, to the payment server 30. Incidentally, if the medium is not a communication terminal, the terminal ID of the payment sales data Rc relating to electronic payment becomes NULL data.
[0056] The other settlement sales data Rcc shown in Fig. 10 indicates the settlement sales data after the purchase information transfer process described later has been performed. The settlement sales data Rcc is data in which one or more registered product data are added to the settlement sales data Rc.
[0057] In this way, the payment sales data Rc before the purchase information transfer process is executed does not include registered product data. Therefore, the payment business operator can know from the payment sales data Rc in the payment information file 331 who used electronic payment, when, where, and how much, but cannot know the information of the product purchased by the payer, so-called purchase information. The purchase information is in the receipt server 20. Therefore, in this embodiment, a control program for realizing the process of acquiring purchase information from the receipt server 20, a so-called purchase information acquisition app, is implemented in the payment server 30. In addition, a control program for realizing the process of responding to the payment server 30 with the necessary purchase information in conjunction with the purchase information acquisition app, a so-called purchase information response app, is implemented in the receipt server 20.
[0058] Fig. 11 is a flow chart showing the procedure of main information processing executed by the processor 31 of the payment server 30 according to the purchase information acquisition application. Fig. 12 is a flow chart showing the procedure of main information processing executed by the processor 21 of the receipt server 20 according to the purchase information response application. Below, the main operations of the server system 100 according to the first embodiment will be described with reference to each figure. Note that the operations described below are merely examples. There are no particular limitations on the procedure of the operations as long as similar operational effects can be obtained.
[0059] The purchase information acquisition app is started every time the payment sales data Rc is saved in the payment information file 331. The purchase information acquisition app may be started at a preset time, for example, at 0 minutes past the hour every hour.
[0060] When the purchase information acquisition app is launched, the processor 31 of the payment server 30 starts processing the procedure shown in the flowchart of Fig. 11. First, the processor 31 checks whether the payment sales data to be processed is stored in the payment information file 331 as ACT21. The payment sales data to be processed is payment sales data Rc to which registered product data has not been added. Payment sales data Rcc to which registered product data has been added is not processed.
[0061] If the payment sales data Rc to be processed is stored in the payment information file 331, the processor 31 determines YES in ACT21 and proceeds to ACT22. The processor 31 acquires the payment sales data Rc from the payment information file 331 in ACT22. The processor 31 then acquires the payment number from the payment sales data Rc in ACT23. The processor 31 also acquires the user ID and terminal ID from the payment sales data Rc in ACT24.
[0062] The processor 31 sends a purchase information request command as ACT25 to the receipt server 20. The purchase information request command includes the payment number, user ID, and terminal ID obtained from the payment sales data Rc. The purchase information request command is sent to the receipt server 20 via the communication network 40.
[0063] A purchasing information response application resides in the receipt server 20. The processor 21 of the receipt server 20 waits for a purchasing information request command in ACT31 of FIG. 12. When the purchasing information request command is received via the communications network 40, the processor 21 determines YES in ACT31 and proceeds to ACT32. The processor 21 obtains the payment number from the purchasing information request command in ACT32. The processor 21 then searches the second file 233 using this payment number as a search key in ACT33.
[0064] The processor 21 determines whether or not there is second receipt data Rb that includes the payment number as a search key in ACT 34. If the corresponding second receipt data Rb is not stored in the second file 233, the processor 21 determines NO in ACT 34 and proceeds to ACT 35. The processor 21 sends an error response command in ACT 35 to the payment server 30 that sent the purchase information request command.
[0065] For example, if a communication failure occurs between the POS terminal 10 and the receipt server 20, the settlement sales data of an electronically settled commercial transaction is sent to the corresponding settlement server 30, but the receipt data of that commercial transaction is not saved in the second file 233. In such a case, an error occurs.
[0066] If the second receipt data Rb containing the payment number as the search key is stored in the second file 233, the processor 21 determines YES in ACT34 and proceeds to ACT36. The processor 21 acquires registered product data from the second receipt data Rb in ACT36. The processor 21 then transmits a normal response command to the payment server 30 that transmitted the purchase information request command in ACT37. The normal response command includes the registered product data acquired in the processing of ACT36.
[0067] The processor 21 detects the user ID and terminal ID from the purchase information request command in ACT 38. Then, the processor 21 adds the user ID and terminal ID to the second receipt data Rb that includes the payment number as a search key in ACT 39.
[0068] This is how the processor 21 completes the response process to the purchasing information request command. When the processor 21 receives the next purchasing information request command, it executes the processes in ACT32 to ACT38 in the same manner as described above.
[0069] Returning to the explanation of Figure 11. The normal response command or the error response command is received by the payment server 30 that sent the purchase information request command via the communication network 40. The processor 31 of the payment server 30 that sent the purchase information request command waits for a response command in ACT 26. In this waiting state, if an error response command is received, the processor 31 judges NO in ACT 26 and returns to ACT 21.
[0070] On the other hand, if a normal response command is received, the processor 31 determines YES in ACT26 and proceeds to ACT27. The processor 31 adds the registered product data included in the normal response command in ACT27 to the payment sales data Rc to be processed that was acquired in the processing of ACT22. As a result, the payment sales data Rc becomes the payment sales data Rcc. The processor 31 then returns to ACT21.
[0071] The processor 31 checks whether other payment sales data Rc to be processed is stored in the payment information file 331. If the payment sales data Rc to be processed is stored, the processor 31 executes the processes of ACT22 to ACT27 for that payment sales data Rc in the same manner as described above. If the payment sales data Rc to be processed is not stored, the processor 31 ends the information processing of the procedure shown in the flowchart of FIG.
[0072] Here, the processor 31 of the payment server 30 constitutes an inquiry unit by executing the processes of ACT21 to ACT25 in Fig. 11. That is, the processor 31 makes an inquiry to the receipt server 20 using the transaction identification information (payment number) included in the payment sales data Rc notified from the payment terminal (POS terminal 10).
[0073] The processor 31 also configures a storage unit by executing the processes of ACT26 and ACT27 in Fig. 11. That is, the processor 31 stores information on the purchased product (registered product data) output from the receipt server 20 in response to an inquiry in association with the payment sales data Rc including the transaction identification information (payment number).
[0074] The processor 21 of the receipt server 20 constitutes an acquisition unit by executing the processes of ACT31 to ACT36 in Fig. 12. That is, the processor 21 acquires receipt data of a commercial transaction identified by transaction identification information (payment number) included in the payment sales data notified from the payment terminal to the payment company supporting the payment of the commercial transaction, from the receipt storage unit (second file 233) that stores receipt data (second receipt data Rb) generated by the payment terminal (POS terminal 10) at the time of payment of the commercial transaction.
[0075] The processor 21 also configures an output unit by executing the process of ACT37 in Fig. 12. That is, the processor 21 outputs information on the purchased product (registered product data) included in the receipt data (second receipt data Rb) acquired by the acquisition unit to the payment server 30 of the payment service provider.
[0076] Furthermore, the processor 21 configures a detection unit and an addition unit by executing the processes of ACT38 and ACT39 in Fig. 12. That is, the processor 21 detects the first identification information (user ID, terminal ID) set for the person who makes the payment of the commercial transaction identified by the transaction identification information (payment number). The processor 21 then adds the first identification information (user ID, terminal ID) to the receipt data (second receipt data Rb) stored in the receipt storage unit (second file 233) and acquired by the acquisition unit.
[0077] As described above in detail, the server system 100 is linked between the payment server 30 that implements the purchase information acquisition app and the receipt server 20 that implements the purchase information response app. This linkage enables the payment sales data Rc stored in the payment information file 331 of the payment server 30 to become purchase information provided by the receipt server 20, that is, payment sales data Rcc that includes registered product data. Therefore, the payment business operator can grasp not only who used electronic payment, when, where, and how much, but also what was purchased.
[0078] In this way, the receipt server 20 can realize a service that provides the payment business operator with information about the product purchased by the payer using electronic payment.
[0079] Moreover, the receipt server 20 is configured to provide information about purchased items to the settlement server 30 in response to a request command from the settlement server 30. Therefore, the receipt server 20 needs to provide information about purchased items only to the settlement server 30 that has made a request, and the processing burden required for providing information is small.
[0080] Furthermore, the receipt server 20 is equipped with a server-side setting table 231. The receipt server 20 saves in the second file 233 only receipt data of electronic payments related to payment providers whose output flags are set to "1," i.e., payment providers to which purchasing information is provided. This saves storage capacity in the second file 233. Also, if a payment provider that was not a recipient of purchasing information requests to provide purchasing information, or if a payment provider that was a recipient of purchasing information requests that purchasing information is no longer required, it is only necessary to switch the value of the output flag. This makes it possible to easily and quickly respond to the requests of payment providers.
[0081] The receipt server 20 has a function to add the user ID and terminal ID included in the purchase information request command to the second receipt data Rb saved in the second file 233 to generate second receipt data Rbb. The user ID or terminal ID added to the second receipt data Rb is valid as an identifier for the person who made the electronic payment.
[0082] On the other hand, the second receipt data Rb does not necessarily include a receipt ID, which is an identifier for the electronic receipt user. That is, in this embodiment, each POS terminal 10 is not limited to receipt data that includes a receipt ID, and even if the receipt ID is not included, the POS terminal 10 digitizes receipt data that includes the payment name set in the POS side setting table 131 and sends it to the receipt server 20. The receipt server 20 then saves the second receipt data Rb that includes the payment name in the second file 233, regardless of whether the data includes a receipt ID.
[0083] Therefore, the server system 100 includes a means for linking a user ID or terminal ID with the receipt ID of the settlor identified by that ID. This means may be the receipt server 20 or the payment server 30. By linking the user ID or terminal ID with the receipt ID, the second receipt data Rbb to which the user ID and terminal ID are added can become the first receipt data Ra that can receive the electronic receipt service. Therefore, for example, even if a settlor is not eligible for the electronic receipt service at the time of electronic payment, by linking the user ID or terminal ID later, he or she can receive the electronic receipt service.
[0084] [Second embodiment] In the first embodiment, the processor 21 of the receipt server 20 outputs information on purchased items in real time in response to each purchase information request command from the payment server 30. For this reason, there is a concern that the processing load on the processor 21 will increase as the number of purchase information request commands increases. Therefore, the second embodiment illustrates a case in which the processor 21 collectively outputs information on purchased items to the payment server 30 by batch processing.
[0085] The second embodiment differs from the first embodiment in part of the processing steps executed by the processor 31 of the payment server 30 described using Figure 11, and part of the processing steps executed by the processor 21 of the receipt server 20 described using Figure 12. The other parts described using Figures 1 to 10 are common to the first embodiment, and are therefore used as is in the second embodiment.
[0086] Fig. 13 is a flow chart showing the procedure of main information processing executed by the processor 31 of the payment server 30 according to the purchase information acquisition application. Fig. 14 is a flow chart showing the procedure of main information processing executed by the processor 21 of the receipt server 20 according to the purchase information response application. Below, the main operations of the server system 100 according to the second embodiment will be described with reference to each figure. Note that the operations described below are merely examples. There are no particular limitations on the procedure of the operations as long as similar effects can be obtained.
[0087] The purchase information acquisition app starts at a preset time, for example, 0:00 AM. When the purchase information acquisition app starts, the processor 31 of the payment server 30 starts processing the procedure shown in the flowchart of FIG. 13. First, the processor 31 checks whether the payment sales data to be processed is stored in the payment information file 331 in ACT41. The payment sales data to be processed is payment sales data Rc to which registered product data is not added. Payment sales data Rcc to which registered product data is added is not processed. If the payment sales data Rc to be processed is not stored in the payment information file 331, the processor 31 judges NO in ACT41 and ends this process.
[0088] If the payment sales data Rc to be processed is stored in the payment information file 331, the processor 31 determines YES in ACT41 and proceeds to ACT42. The processor 31 acquires the payment sales data Rc to be processed from the payment information file 331 in ACT42. The processor 31 then acquires the payment number from the payment sales data Rc in ACT43. The processor 31 also acquires the user ID and terminal ID from the payment sales data Rc in ACT44.
[0089] The processor 31 creates a request record as ACT45. The request record includes the payment number, user ID, and terminal ID obtained from the payment sales data Rc. The processor 31 saves the request record in a request file as ACT46. Note that the request file is cleared prior to the start of this process.
[0090] The processor 31 checks in ACT47 whether the payment sales data Rc to be processed is further stored in the payment information file 331. If the payment sales data Rc is stored, the processor 31 judges YES in ACT47 and returns to ACT42. The processor 31 then executes the processes from ACT42 onwards in the same manner as described above. Therefore, the request record created based on the payment sales data Rc to be processed is stored in the request file.
[0091] If it is confirmed that the payment sales data Rc to be processed is not saved in the payment information file 331, the processor 31 judges NO in ACT 47 and proceeds to ACT 48. In ACT 48, the processor 31 sends the request file to the receipt server 20. The request file is sent to the receipt server 20 via the communications network 40.
[0092] Meanwhile, the purchasing information response app also starts at a preset time, for example, 2:00 a.m. When the purchasing information response app starts, the processor 21 of the receipt server 20 checks whether a requested file has been received in ACT61 of Fig. 14. If the requested file has not been received, the processor 21 determines NO in ACT61 and ends this process.
[0093] If a request file has been received, the processor 21 determines YES in ACT61 and proceeds to ACT62. The processor 21 acquires a request record from the request file in ACT62. The processor 21 then acquires a payment number from the request record in ACT63. The processor 21 searches the second file 233 using this payment number as a search key in ACT64.
[0094] The processor 21 determines whether or not there is second receipt data Rb that includes the payment number as a search key in ACT 65. If the corresponding second receipt data Rb is not stored in the second file 233, the processor 21 determines NO in ACT 65 and proceeds to ACT 70.
[0095] If second receipt data Rb including the payment number as the search key is stored in the second file 233, the processor 21 determines YES in ACT65 and proceeds to ACT66. The processor 21 obtains registered product data from the second receipt data Rb in ACT66. The processor 21 then adds the registered product data to the requested record detected from the requested file in the processing of ACT62 in ACT67.
[0096] The processor 21 detects the user ID and terminal ID from the requested record (ACT 68). The processor 21 then adds the user ID and terminal ID to the second receipt data Rb, which includes the payment number as a search key (ACT 69). As a result, the second receipt data Rb becomes second receipt data Rbb to which the user ID and terminal ID have been added.
[0097] The processor 21 checks whether or not another request record exists in the request file in ACT 70. If a request record exists, the processor 21 judges YES in ACT 70 and returns to ACT 62. The processor 21 then executes the processes from ACT 62 onwards in the same manner as described above.
[0098] When the processes of ACT62 to ACT69 have been executed for all the request records stored in the request file in this way, the processor 21 judges NO in ACT70 and proceeds to ACT71. The processor 21 creates a response file with the request data to which the registered product data has been added in ACT71. Then, the processor 21 transmits the response file to the payment server 30 that transmitted the request file in ACT72. With this, the processor 21 ends the information processing of the procedure shown in FIG.
[0099] The response file sent from the receipt server 20 is transmitted via the communication network 40 to the settlement server 30 that sent the request file.
[0100] Returning to the explanation of Figure 13. Processor 31 of payment server 30 that sent the request file waits for a response file in ACT49. When processor 31 receives the response file, processor 31 determines YES in ACT49 and proceeds to ACT50. Processor 31 acquires the request data from the response file in ACT50. Then, processor 31 adds the registered product data added to the request data to the payment sales data Rc specified by the request data in ACT51. As a result, the payment sales data Rc becomes payment sales data Rcc to which the registered product data has been added.
[0101] The processor 31 checks whether other request data exists in the response file in ACT 52. If other request data exists, the processor 31 determines YES in ACT 52 and returns to ACT 50. That is, the processor 31 repeats the process of acquiring registered product data from the request data and adding it to the corresponding settlement sales data Rc.
[0102] If no other request data exists in the response file, the processor 31 determines NO in ACT 52. The processor 31 ends the information processing of the procedure shown in the flowchart of FIG.
[0103] In the second embodiment with such a configuration, the payment service provider can also obtain information on who, when, where, and how much used electronic payment, as well as information on what was purchased. In other words, the receipt server 20 can provide a service that provides the payment service provider with information on the products purchased by the payer using electronic payment.
[0104] Furthermore, the receipt server 20 performs the information provision service to the settlement server 30 by batch processing. Therefore, even if the amount of purchase information requests increases, the processing load on the receipt server 20 does not increase significantly.
[0105] In the second embodiment, the processor 31 of the payment server 30 may perform the processes in ACT41 to ACT47 and ACT48 to ACT52 at different times. That is, like the first embodiment, the processor 31 creates request data based on the payment sales data Rc each time it detects the payment sales data Rc to be processed. The processor 31 then stores the request data in a request file. After that, for example at a preset time, the processor 31 sends the request file to the receipt server 20. Then, when the processor 31 receives a response file from the receipt server 20, the processor 31 adds registered product data to the payment sales data Rc based on the data in the response file. Even if such a configuration is adopted, the same effect can be achieved.
[0106] Although an embodiment of the server system 100 including the receipt server 20 and the payment server 30 has been described above, the embodiment is not limited to this.
[0107] In the above embodiment, the receipt server 20 is exemplified as a receipt server that provides an electronic receipt service. The receipt server 20 does not necessarily have to support the electronic receipt service. For example, the receipt server 20 may be a receipt server that specializes in saving receipt data including the payment name of a specific payment service provider in the second file 233, and responding with registered product data, which is purchasing information, from the corresponding receipt data in response to a purchasing information request command from the payment server 30. Such a receipt server does not require the first file 232. Also, the processor 21 does not require ACT12 and ACT13 of the steps shown in the flowchart of FIG. 6.
[0108] In the above embodiment, the transaction identification information included in the payment sales data Rc was described as a payment number. Some payment service providers may not issue a payment number for electronic payment transactions. In such cases, the store code and the transaction date and time, or the transaction date and time and the transaction amount may be used as the transaction identification information.
[0109] However, the transaction date and time included in the payment sales data Rc may be the date and time when the payment server 30 acquired the payment sales data Rc. In such cases, the clock of the POS terminal 10 and the clock 34 of the payment server 30 do not necessarily match, so there is a possibility that the transaction date and time of the payment sales data Rc and the transaction date and time of the receipt data may differ. Therefore, the receipt server 20 needs to allow some flexibility in the search range for the transaction date and time, rather than searching for an exact match.
[0110] In the above embodiment, a setting table that does not store output flags is provided in the POS terminal 10 as the POS side setting table 131. In another embodiment, a POS side setting table equivalent to the server side setting table 231 that stores output flags may be provided in the POS terminal 10. This eliminates the need to send receipt data for electronic payments made by payment providers that are not subject to purchase information provision from the POS terminal 10 to the receipt server 20. This has the effect of reducing the amount of communication traffic on the communication network 40.
[0111] In the above embodiment, the POS terminal 10 has been described as having the functions of the product registration unit 11, the payment processing unit 12, and the receipt processing unit 13. For example, the functions of the payment processing unit 12 and the receipt processing unit 13 may be provided by a payment terminal dedicated to electronic payments that is connected to the POS terminal 10. In this case, the POS side setting table 131 is provided in the payment terminal, not the POS terminal 10.
[0112] Although several other embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included within the scope of the invention and the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0113] 10...POS terminal, 11...product registration unit, 12...payment processing unit, 13...receipt processing unit, 20...receipt server, 21,31...processor, 22,32...main memory, 23,33...auxiliary storage device, 24,34...clock, 25,35...communication interface, 26,36...system bus, 30...payment server, 40...communication network, 131...POS side setting table, 231...server side setting table, 232...first file, 233...second file, 331...payment information file.
Claims
1. an acquisition unit that acquires, from a receipt storage unit that stores receipt data generated by a payment terminal at the time of payment of a commercial transaction, receipt data of the commercial transaction identified by transaction identification information included in payment sales data notified from the payment terminal to a payment company that supports the payment of the commercial transaction; an output unit that outputs information related to the purchased item included in the receipt data acquired by the acquisition unit to a payment server of the payment service provider; A receipt server comprising:
2. the acquisition unit acquires receipt data of a commercial transaction identified by the transaction identification information included in a request command from the payment server, The receipt server according to claim 1 , wherein the output unit outputs information related to the purchased item to the settlement server that is a source of the request command.
3. a detection unit that detects first identification information set for a settlement party of a commercial transaction identified by the transaction identification information; an adding unit that adds the first identification information to the receipt data stored in the receipt storage unit and acquired by the acquiring unit; The receipt server according to claim 1 or 2, further comprising:
4. the receipt storage unit includes a first receipt storage unit and a second receipt storage unit; a processing unit that stores receipt data including second identification information for identifying an electronic receipt user in the first receipt storage unit, and stores receipt data including information indicating that the commercial transaction has been settled with the assistance of a settlement company in the second receipt storage unit; Further comprising: The receipt server according to claim 1 , wherein the acquisition unit acquires the receipt data from the second receipt storage unit.
5. A receipt server according to any one of claims 1 to 4; a payment server having an inquiry unit that makes an inquiry to the receipt server using transaction identification information included in payment sales data notified from a payment terminal, and a storage unit that stores information on purchased items output from the receipt server in response to the inquiry in association with the payment sales data including the transaction identification information; A server system comprising:
6. On the computer, A function of acquiring, from a receipt storage unit that stores receipt data generated by a payment terminal at the time of payment of a commercial transaction, receipt data of the commercial transaction identified by transaction identification information included in payment sales data notified from the payment terminal to a payment business operator supporting the payment of the commercial transaction; a function of outputting information related to the purchased item included in the acquired receipt data to a payment server of the payment service provider; A program to achieve this.
Citation Information
Patent Citations
Product sales data processing device, information processing device, and program
JP2014194760A
Sales data processing device
JP2015049525A
Information processor, portable terminal device and program
JP2015232826A
Terminal device, control method, program, and non-temporary computer-readable information recording medium
JP6189572B1
Information processing method, information processing device, and program
JP2020113005A
