JP6482700B2 - Payment system, sales server device, payment server device and server program - Google Patents

Payment system, sales server device, payment server device and server program Download PDF

Info

Publication number
JP6482700B2
JP6482700B2 JP2018038636A JP2018038636A JP6482700B2 JP 6482700 B2 JP6482700 B2 JP 6482700B2 JP 2018038636 A JP2018038636 A JP 2018038636A JP 2018038636 A JP2018038636 A JP 2018038636A JP 6482700 B2 JP6482700 B2 JP 6482700B2
Authority
JP
Japan
Prior art keywords
settlement
payment
server device
unit
user terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018038636A
Other languages
Japanese (ja)
Other versions
JP2018110024A (en
Inventor
博是 竹内
博是 竹内
吉田 龍一
龍一 吉田
菅原 淳
淳 菅原
直樹 武田
直樹 武田
一真 北村
一真 北村
信弥 小椋
信弥 小椋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nintendo Co Ltd
Original Assignee
Nintendo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nintendo Co Ltd filed Critical Nintendo Co Ltd
Priority to JP2018038636A priority Critical patent/JP6482700B2/en
Publication of JP2018110024A publication Critical patent/JP2018110024A/en
Application granted granted Critical
Publication of JP6482700B2 publication Critical patent/JP6482700B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ネットワークを介した商品(物品、デジタルコンテンツ、サービス又は仮想通貨等)の販売に関する決済処理を行う決済システム、販売サーバ装置、決済サーバ装置及びサーバプログラムに関する。   The present invention relates to a payment system, a sales server device, a payment server device, and a server program for performing payment processing related to sales of products (articles, digital contents, services, virtual currencies, etc.) via a network.

従来、ユーザ端末装置を利用するユーザがネットワークを介してサーバ装置にアクセスし、ユーザ端末装置及びサーバ装置の間で情報を送受信することにより商品の売買を行うシステム、いわゆるオンラインショッピングなどのシステムが広く普及している(例えば特許文献1参照)。このようなシステムにおいて、購入した商品の対価の支払い方法として、種々の手段が提供されている。支払方法には、例えばクレジットカードを利用する方法、電子マネーを利用する方法、銀行振込、商品及び代金の引き換え、及び、店舗などでの後払い等がある。   Conventionally, a system in which a user using a user terminal device accesses a server device via a network and buys and sells goods by transmitting and receiving information between the user terminal device and the server device, a system such as so-called online shopping has been widely used. It is widespread (see, for example, Patent Document 1). In such a system, various means are provided as a method of paying for the purchased goods. Payment methods include, for example, a method using a credit card, a method using electronic money, bank transfer, exchange of goods and prices, and post-payment at a store.

特開2013−248292号公報JP 2013-248292 A

ユーザ端末装置及びサーバ装置間で商品の売買処理を行うシステムにおいては、商品の対価の支払いをクレジットカード又は電子マネー等を利用して行うことにより、支払いをオンライン上で完了することができる。これを実現するため、商品を販売するサーバ装置(以下、販売サーバ装置という)とは別に、支払いに関する処理(決済処理)を行う決済サーバ装置が設けられる場合が多い。ユーザ端末装置、販売サーバ装置及び決済サーバ装置の間では、円滑な通信を行うことが求められる。   In a system for selling and selling products between a user terminal device and a server device, payment can be completed online by using a credit card or electronic money to pay for the product. In order to realize this, in many cases, a settlement server device that performs processing (settlement processing) related to payment is provided separately from a server device that sells products (hereinafter referred to as sales server device). Smooth communication is required between the user terminal device, the sales server device, and the settlement server device.

本発明の目的とするところは、ユーザ端末装置、販売サーバ装置及び決済サーバ装置が円滑な通信を行うことを可能とする決済システム、販売サーバ装置、決済サーバ装置及びサーバプログラムを提供することにある。   An object of the present invention is to provide a payment system, a sales server device, a payment server device, and a server program that enable a user terminal device, a sales server device, and a payment server device to perform smooth communication. .

本発明に係る決済システムは、商品の販売に係る販売処理を行う販売サーバ装置と、前記販売処理により前記販売サーバ装置が販売する商品に係る決済処理を行う決済サーバ装置と、ネットワークを介して前記販売サーバ装置及び前記決済サーバ装置との通信を行う通信部、金額情報を記憶する記憶媒体との間で非接触通信を行う非接触通信部、並びに、前記商品の購入に係る操作を受け付ける操作受付部を有するユーザ端末装置とを備え、前記販売サーバ装置は、前記決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶部と、前記識別情報及び前記処理ステータス情報に基づいて、決済処理に係る不具合の有無を確認する不具合確認部とを有するThe payment system according to the present invention includes a sales server device that performs sales processing related to sales of products, a payment server device that performs payment processing related to products sold by the sales server device through the sales processing, and the network via a network. A communication unit that communicates with the sales server device and the settlement server device, a non-contact communication unit that performs non-contact communication with a storage medium that stores amount information, and an operation reception that receives an operation related to the purchase of the product and a user terminal having a part, the shop server in association with the identification information attached to the payment processing, a storage unit for storing a processing status information relating to the settlement processing, the identification information and based on said processing status information, and a trouble confirmation unit for confirming the presence or absence of defects of the settlement process.

また、本発明に係る決済システムは、前記記憶部が、前記販売処理又は前記決済処理が未完了で終了した場合であっても、前記処理ステータス情報を保持する。   In the payment system according to the present invention, the storage unit holds the processing status information even when the sales process or the payment process is not completed.

また、本発明に係る決済システムは、前記販売サーバ装置が、前記決済処理に対して付された識別情報と、前記ユーザ端末装置を使用するユーザに付されたユーザ識別情報との対応を記憶しておく。   In the payment system according to the present invention, the sales server device stores correspondence between identification information given to the payment processing and user identification information given to a user who uses the user terminal device. Keep it.

また、本発明に係る決済システムは、前記販売サーバ装置が、前記決済処理に対して付された識別情報に対応付けて、該決済処理の結果を記憶しておく。   In the payment system according to the present invention, the sales server device stores the result of the payment process in association with the identification information attached to the payment process.

また、本発明に係る決済システムは、前記ユーザ端末装置が、当該ユーザ端末装置のユーザへ決済処理に係る不具合を通知する。   In the payment system according to the present invention, the user terminal device notifies the user of the user terminal device of a problem related to the payment processing.

また、本発明に係る決済システムは、前記ユーザ端末装置が、前記販売サーバ装置に対するログイン処理がなされた場合に、当該ユーザ端末装置のユーザへ不具合に係る通知を行う。   In the payment system according to the present invention, when the user terminal device performs a login process to the sales server device, the user terminal device notifies the user of the user terminal device of the problem.

また、本発明に係る決済システムは、前記ユーザ端末装置が、決済処理に不具合が発生した後から、少なくとも次の決済処理が開始されるまでの間に、当該ユーザ端末装置のユーザへ不具合に係る通知を行う。   In addition, the payment system according to the present invention relates to a problem with the user of the user terminal device after the user terminal device has failed in the payment process and at least until the next payment process is started. Make a notification.

また、本発明に係る決済システムは、前記ユーザ端末装置が不具合に係る通知を行った後、不具合が発生した決済処理を再開させる再開部を備える。   In addition, the payment system according to the present invention includes a resuming unit that resumes the payment process in which the failure has occurred after the user terminal device has notified the failure.

また、本発明に係る決済システムは、前記不具合確認部により不具合が有ることが確認された場合に、不具合が発生した決済処理を再開させる再開部を備える。   In addition, the payment system according to the present invention includes a resuming unit that resumes the payment process in which a defect has occurred when the defect confirmation unit confirms that there is a defect.

また、本発明に係る決済システムは、前記決済処理に対して付された識別情報及び前記記憶部に記憶した処理ステータス情報に基づいて、決済処理の処理過程における不具合の発生個所を判定する不具合判定部を備える。   Further, the settlement system according to the present invention is configured to determine a failure occurrence location in a process of payment processing based on the identification information attached to the payment processing and the processing status information stored in the storage unit. A part.

また、本発明に係る決済システムは、前記不具合確認部により不具合が有ることが確認された場合に、前記不具合判定部が判定した個所から決済処理を再開させる再開部を備える。   In addition, the settlement system according to the present invention includes a resuming unit that resumes the settlement process from the location determined by the defect determination unit when the defect confirmation unit confirms that there is a defect.

また、本発明に係る決済システムは、前記販売サーバ装置が、前記決済処理に対して付す識別情報を生成する生成部を有する。   In addition, the payment system according to the present invention includes a generation unit that generates identification information that the sales server device attaches to the payment processing.

また、本発明に係る決済システムは、前記記憶媒体が、記憶した金額情報の履歴情報を記憶し、前記決済サーバ装置は、前記記憶媒体から取得した履歴情報に基づいて、前記記憶媒体に記憶された金額情報の更新処理に係る不具合の有無を判定する更新判定部を有する。   Further, in the payment system according to the present invention, the storage medium stores history information of the stored amount information, and the payment server device is stored in the storage medium based on the history information acquired from the storage medium. An update determination unit that determines whether there is a defect related to the update processing of the amount information.

また、本発明に係る決済システムは、前記記憶媒体が、前記更新処理に対して付された識別情報に対応付けて金額情報の変化を記憶し、前記決済サーバ装置は、前記更新処理に対して付された識別情報、及び、前記決済処理に対して付された識別情報との対応を記憶する。   In the payment system according to the present invention, the storage medium stores a change in amount information in association with the identification information attached to the update process, and the payment server device The correspondence between the attached identification information and the identification information attached to the settlement process is stored.

また、本発明に係る決済システムは、金額情報及び該金額情報の履歴情報を記憶する記憶媒体との間で非接触通信を行う非接触通信部を有するユーザ端末装置と、前記ユーザ端末装置との通信を行って前記記憶媒体に記憶された金額情報を更新する更新処理部、並びに、前記更新処理部による処理の履歴及び前記記憶媒体から取得した履歴情報に基づいて、前記更新処理部による処理に係る不具合の有無を判定する更新判定部を有する決済サーバ装置とを備える。   A payment system according to the present invention includes a user terminal device having a non-contact communication unit that performs non-contact communication with a storage medium that stores amount information and history information of the amount information, and the user terminal device. An update processing unit that performs communication to update the amount information stored in the storage medium, and a process by the update processing unit based on a history of processing by the update processing unit and history information acquired from the storage medium. A settlement server device having an update determination unit for determining the presence or absence of such a defect.

また、本発明に係る決済システムは、前記更新判定部が、不具合が有る場合に、該不具合の内容を判定する。   Further, in the settlement system according to the present invention, when the update determination unit has a defect, the content of the defect is determined.

また、本発明に係る決済システムは、前記ユーザ端末装置が、非対面型の装置である。   In the payment system according to the present invention, the user terminal device is a non-face-to-face device.

また、本発明に係る販売サーバ装置は、ユーザ端末装置との通信を行う通信部を備え、商品の販売に係る販売処理を行う販売サーバ装置であって、前記販売処理により販売する商品に係る決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶部と、前記識別情報及び前記処理ステータス情報に基づいて、決済処理に係る不具合の有無を確認する不具合確認部とを備える。   In addition, a sales server device according to the present invention is a sales server device that includes a communication unit that communicates with a user terminal device, and that performs sales processing related to sales of products. A storage unit that stores processing status information related to the payment processing in association with the identification information attached to the processing, and confirms whether there is a defect related to the payment processing based on the identification information and the processing status information And a failure confirmation unit.

また、本発明に係る決済サーバ装置は、ユーザ端末装置との通信を行う通信部を備え、商品の決済に係る決済処理を行う決済サーバ装置であって、前記決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶部と、前記決済処理に対して付された識別情報及び前記記憶部に記憶した処理ステータス情報に基づいて、決済処理の処理過程における不具合の発生個所を判定する不具合判定部とを備える。   The settlement server device according to the present invention is a settlement server device that includes a communication unit that communicates with a user terminal device, and that performs a settlement process related to the settlement of a product, and includes an identification attached to the settlement process The processing of the settlement process based on the storage unit that stores the processing status information related to the settlement process in association with the information, the identification information attached to the settlement process, and the processing status information stored in the storage unit A defect determination unit that determines a position where a defect occurs in the process.

また、本発明に係るサーバプログラムは、ユーザ端末装置との通信を行う通信部を備え、商品の販売に係る販売処理を行う販売サーバ装置を、前記販売処理により販売する商品に係る決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶手段と、前記識別情報及び前記処理ステータス情報に基づいて、決済処理に係る不具合の有無を確認する不具合確認手段として動作させる。   In addition, a server program according to the present invention includes a communication unit that communicates with a user terminal device, and provides a sales server device that performs a sales process related to sales of a product to a settlement process related to a product that is sold through the sales process. A storage means for storing processing status information related to the payment processing in association with the identification information attached, and a defect confirmation for checking whether there is a defect related to the payment processing based on the identification information and the processing status information Operate as a means.

また、本発明に係るサーバプログラムは、ユーザ端末装置との通信を行う通信部を備え、商品の決済に係る決済処理を行う決済サーバ装置を、前記決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶手段と、前記決済処理に対して付された識別情報及び前記記憶部に記憶した処理ステータス情報に基づいて、決済処理の処理過程における不具合の発生個所を判定する不具合判定手段として動作させる。   In addition, the server program according to the present invention includes a communication unit that communicates with the user terminal device, and corresponds to a settlement server device that performs a settlement process related to the settlement of a product to the identification information attached to the settlement process. In addition, based on the storage means for storing the processing status information related to the payment processing, the identification information attached to the payment processing, and the processing status information stored in the storage unit, a defect in the processing process of the payment processing It is made to operate as a failure determination means for determining the occurrence location.

本発明は、販売サーバ装置及び決済サーバ装置の間の情報の送受信をユーザ端末装置が中継する。これにより、決済処理に必要な情報の送受信を円滑に行うことが可能となる。   In the present invention, the user terminal device relays transmission / reception of information between the sales server device and the settlement server device. This makes it possible to smoothly transmit and receive information necessary for the payment process.

本実施の形態に係る決済システムの概要を説明するための模式図である。It is a schematic diagram for demonstrating the outline | summary of the payment system which concerns on this Embodiment. ユーザ端末装置の構成を示すブロック図である。It is a block diagram which shows the structure of a user terminal device. ICカードの構成を示すブロック図である。It is a block diagram which shows the structure of an IC card. ICカードが記憶部に記憶する残高履歴情報の一例を示す模式図である。It is a schematic diagram which shows an example of the balance log | history information which an IC card memorize | stores in a memory | storage part. 販売サーバ装置の構成を示すブロック図である。It is a block diagram which shows the structure of a sales server apparatus. 販売サーバ装置が記憶部に記憶する販売履歴情報の一例を示す模式図である。It is a schematic diagram which shows an example of the sales history information which a sales server apparatus memorize | stores in a memory | storage part. 第1決済サーバ装置の構成を示すブロック図である。It is a block diagram which shows the structure of a 1st payment server apparatus. 第1決済サーバ装置が記憶部に記憶する決済履歴情報の一例を示す模式図である。It is a schematic diagram which shows an example of the payment history information which a 1st payment server apparatus memorize | stores in a memory | storage part. 第2決済サーバ装置の構成を示すブロック図である。It is a block diagram which shows the structure of a 2nd payment server apparatus. 本実施の形態に係る決済システムによる決済処理の一例を示す模式図である。It is a schematic diagram which shows an example of the payment process by the payment system which concerns on this Embodiment. 販売サーバ装置が行う販売処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the sales process which a sales server apparatus performs. ユーザ端末装置が行う中継処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the relay process which a user terminal device performs. ユーザ端末装置が行う中継処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the relay process which a user terminal device performs. 第1決済サーバ装置が行う決済処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the payment process which a 1st payment server apparatus performs. 第1決済サーバ装置が行う決済処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the payment process which a 1st payment server apparatus performs. 第2決済サーバ装置が行う決済処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the payment process which a 2nd payment server apparatus performs. 第2決済サーバ装置が行う決済処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the payment process which a 2nd payment server apparatus performs. 本実施の形態に係る決済システムの不具合確認処理の一例を示す模式図である。It is a schematic diagram which shows an example of the malfunction confirmation process of the payment system which concerns on this Embodiment. 販売サーバ装置が行う復帰処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the return process which a sales server apparatus performs. 販売サーバ装置が行う復帰処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the return process which a sales server apparatus performs. 第1決済サーバ装置が行う不具合判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the malfunction determination process which a 1st payment server apparatus performs. 第2決済サーバ装置が行う履歴照会処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the log | history inquiry process which a 2nd payment server apparatus performs.

<システム概要>
図1は、本実施の形態に係る決済システムの概要を説明するための模式図である。本実施の形態に係る決済システムは、ユーザ端末装置1、販売サーバ装置3及び決済サーバ装置5を含んで構成されている。ユーザ端末装置1は、ユーザが商品の購入に際して利用する装置であり、例えばゲーム機、パーソナルコンピューター、携帯電話機、スマートフォン又はタブレット型端末等の装置である。ユーザ端末装置1は、有線又は無線のネットワークを介して、販売サーバ装置3及び決済サーバ装置5との通信をそれぞれ行うことができる。またユーザ端末装置1は、非接触通信機能によりICカード7との通信を行うことができる。
<System overview>
FIG. 1 is a schematic diagram for explaining the outline of the settlement system according to the present embodiment. The payment system according to the present embodiment includes a user terminal device 1, a sales server device 3, and a payment server device 5. The user terminal device 1 is a device that a user uses when purchasing a product. For example, the user terminal device 1 is a device such as a game machine, a personal computer, a mobile phone, a smartphone, or a tablet terminal. The user terminal device 1 can communicate with the sales server device 3 and the settlement server device 5 through a wired or wireless network. Further, the user terminal device 1 can communicate with the IC card 7 by a non-contact communication function.

本実施の形態に係る決済システムは、販売サーバ装置3がネットワークを介して商品を販売し、ユーザ端末装置1を利用してユーザが商品の購入を行ういわゆるオンライン販売システムである。即ち本実施の形態に係る決済システムは、販売者及び購入者(消費者)が対面することなく、ユーザ端末装置1を利用して消費者がインターネットなどのネットワークを介して物品又はサービス等の購入を行うシステムである。よってユーザ端末装置1は、店舗設置型の装置ではなく、非対面型の装置である。即ちユーザ端末装置1は、商品の販売者が操作する装置ではなく、商品の購入者が操作する装置である。   The settlement system according to the present embodiment is a so-called online sales system in which the sales server device 3 sells products via a network, and the user purchases products using the user terminal device 1. That is, in the settlement system according to the present embodiment, the consumer purchases goods or services through the network such as the Internet using the user terminal device 1 without the seller and the purchaser (consumer) facing each other. It is a system that performs. Therefore, the user terminal device 1 is not a store installation type device but a non-face-to-face type device. That is, the user terminal device 1 is not a device operated by a merchandise seller, but a device operated by a merchandise purchaser.

販売サーバ装置3が販売する商品は、例えば後日に郵送などでユーザの自宅などへ配送される物品であってよく、また例えば購入したユーザなどに対して提供される何らかのサービスであってよく、また例えば購入によりユーザ端末装置1へダウンロードされるデジタルコンテンツであってよく、その他種々のものであってよい。   The product sold by the sales server device 3 may be, for example, an article delivered to the user's home or the like at a later date by mail or the like, or may be any service provided to the purchased user, for example. For example, it may be digital content downloaded to the user terminal device 1 by purchase, or may be various other types.

販売サーバ装置3が販売する商品がデジタルコンテンツである場合、ユーザ端末装置1は、購入したデジタルコンテンツをダウンロードして利用することができる。デジタルコンテンツには、例えば映画又はテレビジョン放送等の映像作品、ゲーム、アプリケーション、データベース、ウェブサイト、プログラムソフト、テキストデータ、コミック、音楽、アニメーション、写真、アート、コンピュータグラフィック又はキャラクタ等が挙げられる。例えばデジタルコンテンツとして映像作品を購入した場合、ユーザ端末装置1は、この映像作品の動画データを販売サーバ装置3又は他のサーバ装置等からダウンロードし、動画データを再生して表示部などに表示する処理を行うことができる。なお映像作品又は音楽等のデジタルコンテンツは、いわゆるストリーミング配信により提供されるものであってもよい。また例えばデジタルコンテンツとしてゲームを購入した場合、ユーザ端末装置1は、ゲームのプログラム及びデータ等をダウンロードして実行することができる。このようにユーザ端末装置1は、購入したデジタルコンテンツを利用するための処理を行うことができる。   When the product sold by the sales server device 3 is digital content, the user terminal device 1 can download and use the purchased digital content. Examples of digital content include video works such as movies or television broadcasts, games, applications, databases, websites, program software, text data, comics, music, animation, photographs, art, computer graphics, or characters. For example, when a video work is purchased as digital content, the user terminal device 1 downloads video data of the video work from the sales server device 3 or another server device, and reproduces the video data and displays it on a display unit or the like. Processing can be performed. Digital content such as video works or music may be provided by so-called streaming distribution. For example, when a game is purchased as digital content, the user terminal device 1 can download and execute a game program and data. Thus, the user terminal device 1 can perform processing for using the purchased digital content.

また例えば、販売サーバ装置3が販売する商品を仮想通貨としてもよい。例えば仮想通貨には、特定のウェブサイトにおいて商品の購入に利用できるポイント、又は、特定のゲーム内でアイテム又は追加シナリオ等の購入に利用できるポイント等を含む。ユーザ端末装置1は、販売サーバ装置3にて仮想通貨を購入しておき、特定のウェブサイト又はゲーム内において仮想通貨を用いて商品の購入を行うことができる。   Further, for example, a product sold by the sales server device 3 may be a virtual currency. For example, the virtual currency includes points that can be used to purchase a product on a specific website or points that can be used to purchase an item or an additional scenario in a specific game. The user terminal device 1 can purchase a virtual currency in the sales server device 3 and purchase a product using the virtual currency in a specific website or game.

また本実施の形態に係る決済システムでは、商品を購入したユーザは、代金の支払いにICカード7を利用することができる。ユーザは、商品の購入に使用することができる電子マネー又はポイント等を、例えば店舗などにてチャージしておくことができる。ICカード7は、チャージされた電子マネー又はポイント等の残高を、内部のメモリなどに記憶している。ICカード7は、非接触通信機能を有しており、ユーザ端末装置1を介して決済サーバ装置5との間で決済処理を行うことができる。   In the settlement system according to the present embodiment, a user who has purchased a product can use the IC card 7 for payment. The user can charge electronic money, points, or the like that can be used to purchase a product, for example, at a store. The IC card 7 stores a balance of charged electronic money or points in an internal memory or the like. The IC card 7 has a non-contact communication function, and can perform payment processing with the payment server device 5 via the user terminal device 1.

オンライン販売を利用するユーザは、まずユーザ端末装置1を操作して販売サーバ装置3にアクセスし、本システムに対するログイン処理を行う。ログインに成功した場合、販売サーバ装置3からユーザ端末装置1へ販売している商品のリストなどの情報が送信され、ユーザ端末装置1の表示部に購入可能な商品のリストが表示される。ユーザは、ユーザ端末装置1を操作して購入する商品を選択し、販売サーバ装置3に対して購入要求を与える(図中(1)参照)。ユーザ端末装置1から購入要求が与えられた販売サーバ装置3は、購入対象の商品の合計金額などを算出し、この金額に対する支払いの要求を決済要求としてユーザ端末装置1へ送信する(図中(2a)参照)。販売サーバ装置3からの決済要求を受信したユーザ端末装置1は、受信した決済要求を決済サーバ装置5へ送信する(図中(2b)参照)。   A user who uses online sales first operates the user terminal device 1 to access the sales server device 3 and performs login processing for the system. When the login is successful, information such as a list of products for sale is transmitted from the sales server device 3 to the user terminal device 1, and a list of products that can be purchased is displayed on the display unit of the user terminal device 1. The user operates the user terminal device 1 to select a product to purchase and gives a purchase request to the sales server device 3 (see (1) in the figure). The sales server device 3 to which the purchase request is given from the user terminal device 1 calculates the total price of the product to be purchased, and transmits a payment request for this price to the user terminal device 1 as a settlement request (in the figure ( 2a)). The user terminal device 1 that has received the payment request from the sales server device 3 transmits the received payment request to the payment server device 5 (see (2b) in the figure).

ユーザ端末装置1から決済要求を受信した決済サーバ装置5は、ユーザ端末装置1を介してユーザが所有するICカード7との通信を行い、ICカード7に記憶された残高から商品代金に相当する金額を減額する処理を行う(図中(3)参照)。このときにユーザ端末装置1は、例えば支払いに使用するICカード7をユーザ端末装置1の所定箇所に接触させるよう促すメッセージなどを表示部に表示し、ICカード7との非接触通信を行う。ユーザ端末装置1は、決済サーバ装置5から受信した情報をICカード7へ送信すると共に、ICカード7から受信した情報を決済サーバ装置5へ送信する。ユーザ端末装置1を介した決済サーバ装置5及びICカード7の通信は、複数回行われ、これによりICカード7の残高から商品代金が減額される。   The payment server device 5 that has received the payment request from the user terminal device 1 communicates with the IC card 7 owned by the user via the user terminal device 1, and corresponds to a product price from the balance stored in the IC card 7. A process of reducing the amount is performed (see (3) in the figure). At this time, the user terminal device 1 displays, for example, a message for prompting the IC card 7 used for payment to contact a predetermined location of the user terminal device 1 on the display unit, and performs non-contact communication with the IC card 7. The user terminal device 1 transmits the information received from the settlement server device 5 to the IC card 7 and transmits the information received from the IC card 7 to the settlement server device 5. Communication between the settlement server device 5 and the IC card 7 via the user terminal device 1 is performed a plurality of times, whereby the commodity price is reduced from the balance of the IC card 7.

ICカード7との通信を終えた決済サーバ装置5は、決済処理の結果をユーザ端末装置1へ送信する(図中(4a)参照)。ICカード7の残高から商品代金を減額することができた場合、決済処理が成功した旨の結果が送信される。これに対して、残高が不足している又は通信に不具合が発生した等の要因により商品代金を減額することができなかった場合、決済処理が失敗した旨の結果が送信される。決済サーバ装置5から決済結果を受信したユーザ端末装置1は、受信した決済結果を販売サーバ装置3へ送信する(図中(4b)参照)。販売サーバ装置3は、ユーザ端末装置1から受信した決済結果に基づいて、商品の販売処理を行う。例えば決済処理に成功していた場合、販売サーバ装置3は販売対象の商品の代金が支払われたものと判断し、商品の発送準備又はダウンロード許可等の段階へ販売処理を進める。また例えば決済処理に失敗していた場合、販売サーバ装置3は、ユーザ端末装置1へ決済処理に失敗した旨又は決済処理を再び行う旨等を通知する。   The settlement server device 5 that has finished the communication with the IC card 7 transmits the result of the settlement process to the user terminal device 1 (see (4a) in the figure). When the product price can be reduced from the balance of the IC card 7, a result indicating that the payment process has been successful is transmitted. On the other hand, if the product price cannot be reduced due to a shortage of balance or a failure in communication, a result indicating that the payment process has failed is transmitted. The user terminal device 1 that has received the settlement result from the settlement server device 5 transmits the received settlement result to the sales server device 3 (see (4b) in the figure). The sales server device 3 performs a product sales process based on the settlement result received from the user terminal device 1. For example, if the payment process is successful, the sales server device 3 determines that the price of the product to be sold has been paid, and proceeds with the sales process to a stage such as preparation for shipment of the product or permission to download. Further, for example, when the payment processing has failed, the sales server device 3 notifies the user terminal device 1 that the payment processing has failed or that the payment processing is to be performed again.

このように本実施の形態に係る決済システムでは、販売サーバ装置3及び決済サーバ装置5は直接的に通信を行わず、ユーザ端末装置1を介して通信を行う。このため販売サーバ装置3及び決済サーバ装置5の間の通信不具合などにより決済処理に失敗するなどの虞がなく、円滑な決済処理を実現することができる。   Thus, in the payment system according to the present embodiment, the sales server device 3 and the payment server device 5 do not communicate directly, but communicate via the user terminal device 1. For this reason, there is no possibility that the payment processing will fail due to a communication failure between the sales server device 3 and the payment server device 5, and smooth payment processing can be realized.

また本実施の形態に係る決済システムでは、販売サーバ装置3が送信する決済要求は、この中に含まれている情報が暗号化され、ユーザ端末装置1では解読及び改変等を行うことができず、決済サーバ装置5で解読することが可能である。同様に、決済サーバ装置5が送信する決済結果は暗号化され、ユーザ端末装置1では解読及び改変等を行うことができず、販売サーバ装置3で解読することが可能である。このような暗号化を行うことによって、決済システムの信頼性を高めることができる。   Further, in the payment system according to the present embodiment, the payment request transmitted by the sales server device 3 is such that the information contained therein is encrypted, and the user terminal device 1 cannot be decrypted or altered. The settlement server device 5 can decrypt the data. Similarly, the settlement result transmitted by the settlement server device 5 is encrypted, and cannot be decrypted and modified by the user terminal device 1 but can be decrypted by the sales server device 3. By performing such encryption, the reliability of the payment system can be improved.

なお本実施の形態に係る決済システムは、上記のように決済要求及び決済結果を暗号化して送受信する構成とするが、これに限るものではない。例えば販売サーバ装置3は、決済要求に対して電子署名を付して送信し、ユーザ端末装置1を介してこれを受信した決済サーバ装置5は電子署名が正当なものであるか否かを確認する構成としてもよい。この場合に決済サーバ装置5は、決済結果に対して電子署名を付して送信し、ユーザ端末装置1を介してこれを受信した販売サーバ装置3は電子署名が正当なものであるか否かを確認する構成としてもよい。   The payment system according to the present embodiment is configured to encrypt and transmit / receive the payment request and the payment result as described above, but is not limited thereto. For example, the sales server device 3 sends a payment request with an electronic signature, and the payment server device 5 that has received the electronic signature via the user terminal device 1 checks whether the electronic signature is valid. It is good also as composition to do. In this case, the settlement server device 5 transmits the settlement result with an electronic signature, and the sales server device 3 that has received this via the user terminal device 1 determines whether the electronic signature is valid. It is good also as a structure which confirms.

<装置構成>
図2は、ユーザ端末装置1の構成を示すブロック図である。本実施の形態に係るユーザ端末装置1は、処理部10、記憶部11、記録媒体装着部12、表示部13、操作部14、通信部15及び非接触通信部16等を備えて構成されている。ユーザ端末装置1の処理部10は、CPU(Central Processing Unit)などの演算処理装置を用いて構成されている。処理部10は、記録媒体装着部12に装着された記録媒体91に記録されたクライアントプログラム91aを読み出して実行することにより、商品の購入及び決済等に係る種々の情報処理を行う。なお記録媒体91から読み出したクライアントプログラム91aを記憶部11に記憶しておき、処理部10が記憶部11からクライアントプログラム91aを読み出す構成としてもよい。
<Device configuration>
FIG. 2 is a block diagram illustrating a configuration of the user terminal device 1. The user terminal device 1 according to the present embodiment includes a processing unit 10, a storage unit 11, a recording medium mounting unit 12, a display unit 13, an operation unit 14, a communication unit 15, a non-contact communication unit 16, and the like. Yes. The processing unit 10 of the user terminal device 1 is configured using an arithmetic processing device such as a CPU (Central Processing Unit). The processing unit 10 reads and executes the client program 91a recorded on the recording medium 91 mounted on the recording medium mounting unit 12, thereby performing various information processing related to product purchase and payment. The client program 91a read from the recording medium 91 may be stored in the storage unit 11, and the processing unit 10 may read the client program 91a from the storage unit 11.

記憶部11は、揮発性若しくは不揮発性の半導体メモリ素子、又は、ハードディスクドライブ等を用いて構成されている。記憶部11は、クライアントプログラム91aなどの種々のプログラム及びこのプログラムの実行に必要なデータを記憶する。また記憶部11は、販売サーバ装置3にて購入したデジタルコンテンツを記憶しておくことができる。記録媒体装着部12は、カード型、カセット型又はディスク型等の記録媒体91を着脱できるように構成されている。処理部10は、記録媒体装着部12に装着された記録媒体91からクライアントプログラム91a及び種々のデータを読み出すことができる。また処理部10が記録媒体91に対してプログラム又はデータ等を書き込むことが可能な構成としてもよい。   The storage unit 11 is configured by using a volatile or nonvolatile semiconductor memory element, a hard disk drive, or the like. The storage unit 11 stores various programs such as the client program 91a and data necessary for executing the programs. In addition, the storage unit 11 can store digital content purchased by the sales server device 3. The recording medium mounting unit 12 is configured so that a recording medium 91 such as a card type, a cassette type, or a disk type can be attached and detached. The processing unit 10 can read the client program 91a and various data from the recording medium 91 mounted on the recording medium mounting unit 12. The processing unit 10 may be configured to be able to write a program or data to the recording medium 91.

表示部13は、液晶パネルなどを用いて構成され、処理部10から与えられた画像を表示する。操作部14は、例えば押下式のボタン又は表示部13に設けられたタッチパネル等であり、ユーザによりなされた操作の内容(例えばボタンの押し下げ又は解放等)に応じた信号を処理部10へ与える。通信部15は、例えばインターネットなどのネットワーク99を介して、販売サーバ装置3、決済サーバ装置5、他のサーバ装置又は他のユーザ端末装置1等との間で情報の送受信を行う。例えばユーザ端末装置1は、通信部15にてサーバ装置との通信を行ってクライアントプログラム91aなどをダウンロードし、記憶部11に記憶することができる。   The display unit 13 is configured using a liquid crystal panel or the like, and displays an image provided from the processing unit 10. The operation unit 14 is, for example, a push-down button or a touch panel provided on the display unit 13, and gives a signal corresponding to the content of an operation performed by the user (for example, pressing or releasing the button) to the processing unit 10. The communication unit 15 transmits / receives information to / from the sales server device 3, the settlement server device 5, another server device, another user terminal device 1, and the like via a network 99 such as the Internet. For example, the user terminal device 1 can communicate with the server device at the communication unit 15 to download the client program 91a and the like and store it in the storage unit 11.

なお本実施の形態においては、決済サーバ装置5は第1決済サーバ装置5A及び第2決済サーバ装置5Bを含んで構成されている。ユーザ端末装置1は、ネットワーク99を介して第1決済サーバ装置5Aとの通信を行い、第2決済サーバ装置5Bとの通信は行わない。   In the present embodiment, the settlement server device 5 includes a first settlement server device 5A and a second settlement server device 5B. The user terminal device 1 communicates with the first settlement server device 5A via the network 99 and does not communicate with the second settlement server device 5B.

非接触通信部16は、例えばISO/IEC18092(いわゆるNFC)の通信規格などに従って、ICカード7などとの間で無線による非接触のデータ送受信を行うものである。非接触通信部16の通信距離は、典型的には数mm〜数cm程度である。非接触通信部16は、ICカード7に内蔵されたICタグ70に対して、記憶したデータの読み出しを指示する信号を送信し、これに対する応答として所望のデータを受信する。非接触通信部16は、いわゆるICタグのリーダの機能を有するものである。また非接触通信部16は、書き込みデータと共に書き込みを指示する信号を送信することにより、ICタグ70にデータの書き込みを行わせることができる。即ち非接触通信部16は、ICタグのライタの機能を有する。ただし、非接触通信部16による通信方式はNFCに限らず、例えばRFIDなど、非接触通信又は近距離無線通信等として採用される種々の通信方式であってよい。   The non-contact communication unit 16 performs wireless non-contact data transmission / reception with the IC card 7 or the like in accordance with, for example, ISO / IEC 18092 (so-called NFC) communication standard. The communication distance of the non-contact communication unit 16 is typically about several mm to several cm. The non-contact communication unit 16 transmits a signal instructing reading of stored data to the IC tag 70 built in the IC card 7 and receives desired data as a response thereto. The non-contact communication unit 16 has a so-called IC tag reader function. Further, the non-contact communication unit 16 can cause the IC tag 70 to write data by transmitting a write instruction signal together with the write data. That is, the non-contact communication unit 16 has a function of an IC tag writer. However, the communication method by the non-contact communication unit 16 is not limited to NFC, and may be various communication methods adopted as non-contact communication or near field communication such as RFID.

また本実施の形態に係るユーザ端末装置1は、処理部10がクライアントプログラム91aを実行することにより、決済要求中継部21、決済仲介部22、決済結果中継部23、購入処理部24及び操作受付部25等がソフトウェア的な機能ブロックとして処理部10に実現される。決済要求中継部21は、通信部15にて販売サーバ装置3から受信した決済要求を、通信部15にて第1決済サーバ装置5Aへ送信する処理を行う。決済仲介部22は、通信部15による第1決済サーバ装置5Aとの通信及び非接触通信部16によるICカード7との非接触通信により、第1決済サーバ装置5A及びICカード7の間で行われる決済処理を仲介する処理を行う。決済結果中継部23は、通信部15にて第1決済サーバ装置5Aから受信した決済結果を、通信部15にて販売サーバ装置3へ送信する処理を行う。購入処理部24は、通信部15にて販売サーバ装置3との通信を行い、購入可能な商品のリストを表示部13に表示する処理、購入する商品の選択を受け付ける処理、及び、選択された商品の購入要求を通信部15にて販売サーバ装置3へ送信する処理等を行う。操作受付部25は、操作部14からの入力信号に基づいて、ユーザの操作を受け付ける処理を行う。処理部10は、操作受付部25が受け付けた操作部14へのユーザ操作に基づいて、種々の処理を行うことができる。   Further, in the user terminal device 1 according to the present embodiment, when the processing unit 10 executes the client program 91a, the settlement request relay unit 21, the settlement mediation unit 22, the settlement result relay unit 23, the purchase processing unit 24, and the operation reception The unit 25 and the like are implemented in the processing unit 10 as a software functional block. The settlement request relay unit 21 performs processing for transmitting the settlement request received from the sales server device 3 by the communication unit 15 to the first settlement server device 5A by the communication unit 15. The settlement intermediary unit 22 performs communication between the first settlement server device 5A and the IC card 7 by communication with the first settlement server device 5A by the communication unit 15 and non-contact communication with the IC card 7 by the non-contact communication unit 16. The process that mediates the settlement process is performed. The settlement result relay unit 23 performs processing for transmitting the settlement result received from the first settlement server device 5A by the communication unit 15 to the sales server device 3 by the communication unit 15. The purchase processing unit 24 communicates with the sales server device 3 in the communication unit 15 to display a list of commodities that can be purchased on the display unit 13, a process to accept selection of commodities to be purchased, and the selected Processing for transmitting a purchase request for the product to the sales server device 3 through the communication unit 15 is performed. The operation reception unit 25 performs a process of receiving a user operation based on an input signal from the operation unit 14. The processing unit 10 can perform various processes based on a user operation on the operation unit 14 received by the operation receiving unit 25.

図3は、ICカード7の構成を示すブロック図である。本実施の形態に係るICカード7は、例えば合成樹脂製又は紙製等のカード体の内部にICタグ70及びアンテナ77が埋め込まれた構成の記憶媒体である。ICカード7は、電子マネー又はポイント等の残高に関する情報を記憶しており、オンライン販売などにおいて商品代金の支払いに用いられる。ICカード7のアンテナ77は、例えばICカード7内に金属線を渦巻状に配し、その両端をICタグ70に接続した構成とすることができる。ICタグ70は、1つのICチップとして提供されるものであり、その内部に処理部71、非接触通信部72、記憶部73及び電力供給部74等を有している。   FIG. 3 is a block diagram showing the configuration of the IC card 7. The IC card 7 according to the present embodiment is a storage medium having a configuration in which an IC tag 70 and an antenna 77 are embedded in a card body made of synthetic resin or paper, for example. The IC card 7 stores information related to the balance of electronic money or points, and is used for payment of merchandise prices in online sales or the like. The antenna 77 of the IC card 7 may have a configuration in which, for example, a metal wire is spirally arranged in the IC card 7 and both ends thereof are connected to the IC tag 70. The IC tag 70 is provided as one IC chip, and includes a processing unit 71, a non-contact communication unit 72, a storage unit 73, a power supply unit 74, and the like.

ICタグ70は、電池などの電源を有しておらず、アンテナ77にてユーザ端末装置1からの無線信号を受信した際に電磁誘導などによって発生する起電力により動作する。ICタグ70は、いわゆるパッシブ型のタグである。電力供給部74は、上記の起電力に基づき、ICタグ70内の処理部71、非接触通信部72及び記憶部73等への電力供給を行い、これにより各部の動作が行われる。なお本実施の形態においてはICタグ70をパッシブ型としたが、アクティブ型であってもよい。   The IC tag 70 does not have a power source such as a battery, and operates by an electromotive force generated by electromagnetic induction or the like when the antenna 77 receives a radio signal from the user terminal device 1. The IC tag 70 is a so-called passive tag. Based on the electromotive force, the power supply unit 74 supplies power to the processing unit 71, the non-contact communication unit 72, the storage unit 73, and the like in the IC tag 70, whereby the operations of the respective units are performed. Although the IC tag 70 is a passive type in the present embodiment, it may be an active type.

ICタグ70の非接触通信部72は、ユーザ端末装置1から送信された信号をアンテナ77にて受信し、受信した信号に係るデータを処理部71へ与えると共に、処理部71から与えられたデータをアンテナ77からユーザ端末装置1へ送信する。記憶部73は、データ書き換え可能な揮発性又は不揮発性のメモリ素子で構成されている。記憶部73は、ICタグ70に対して個別に付されるカードID(IDentifier)73a、及び、電子マネー又はポイント等の残高の変更履歴である残高履歴情報73b等を記憶している。処理部71は、非接触通信部72から与えられたデータに応じて、記憶部73からデータを読み出し、読み出したデータをユーザ端末装置1へ送信すべく非接触通信部72へ与える。また処理部71は、非接触通信部72から与えられたデータに応じて、記憶部73へのデータ書き込みを行う。   The non-contact communication unit 72 of the IC tag 70 receives the signal transmitted from the user terminal device 1 by the antenna 77 and provides the data related to the received signal to the processing unit 71 and the data provided from the processing unit 71. Is transmitted from the antenna 77 to the user terminal device 1. The storage unit 73 includes a volatile or nonvolatile memory element that can rewrite data. The storage unit 73 stores a card ID (IDentifier) 73a that is individually assigned to the IC tag 70, balance history information 73b that is a change history of balance such as electronic money or points, and the like. The processing unit 71 reads out data from the storage unit 73 according to the data given from the non-contact communication unit 72, and gives the read data to the non-contact communication unit 72 so as to transmit it to the user terminal device 1. Further, the processing unit 71 writes data to the storage unit 73 in accordance with the data given from the non-contact communication unit 72.

図4は、ICカード7が記憶部73に記憶する残高履歴情報73bの一例を示す模式図である。本例の残高履歴情報73bには、更新日時、残高及び更新IDが対応付けて記憶されている。更新日時は、ICカード7の残高が更新された日時である。残高は、更新された時点においてICカード7にチャージされている電子マネー又はポイント等の金額である。更新IDは、ICカード7に対する残高の更新処理に対して付される識別情報であり、第2決済サーバ装置5Bにより与えられる。記憶部73に記憶できる残高履歴は、例えば10件又は100件等のように記憶部73の記憶容量に応じて記憶可能な件数が定められている。記憶可能な件数を超えて更新が行われた場合、更新日時が古いものが削除されて、新たな更新に関する情報が追加される。なお残高履歴情報73bに記憶される履歴は、残されている金額そのものの値であってもよく、金額の変化(即ち増減値)であってもよい。   FIG. 4 is a schematic diagram illustrating an example of the balance history information 73 b stored in the storage unit 73 by the IC card 7. In the balance history information 73b of this example, the update date and time, the balance, and the update ID are stored in association with each other. The update date / time is the date / time when the balance of the IC card 7 is updated. The balance is the amount of electronic money or points charged in the IC card 7 at the time of renewal. The update ID is identification information given to the balance update process for the IC card 7 and is given by the second settlement server device 5B. For the balance history that can be stored in the storage unit 73, the number of cases that can be stored is determined according to the storage capacity of the storage unit 73, such as 10 or 100 cases. When the update is performed exceeding the number of records that can be stored, the update with the oldest update date is deleted, and information about the new update is added. Note that the history stored in the balance history information 73b may be the value of the remaining money amount itself, or may be a change in money amount (that is, an increase / decrease value).

図5は、販売サーバ装置3の構成を示すブロック図である。本実施の形態に係る販売サーバ装置3は、処理部30、記憶部31、記録媒体装着部32及び通信部33等を備えて構成されている。処理部30は、CPUなどの演算処理装置を用いて構成され、記憶部31に記憶されたサーバプログラム92aを読み出して実行することにより、商品の販売に係る種々の処理を行う。記憶部31は、不揮発性の記憶装置を用いて構成され、サーバプログラム92aなどのプログラム及び種々のデータを記憶することができる。本実施の形態において記憶部31は、商品の販売処理に係る履歴を販売履歴情報31aとして記憶している。   FIG. 5 is a block diagram showing the configuration of the sales server device 3. The sales server device 3 according to the present embodiment includes a processing unit 30, a storage unit 31, a recording medium mounting unit 32, a communication unit 33, and the like. The processing unit 30 is configured using an arithmetic processing device such as a CPU, and performs various processes related to the sale of products by reading and executing the server program 92a stored in the storage unit 31. The storage unit 31 is configured using a nonvolatile storage device, and can store programs such as the server program 92a and various data. In the present embodiment, the storage unit 31 stores a history relating to the sale processing of products as sales history information 31a.

記録媒体装着部32は、ディスク形などの記録媒体92を着脱できるよう構成されている。処理部30は、記録媒体装着部32に装着された記録媒体92からサーバプログラム92a及びその他の種々のデータを読み出して記憶部31にインストールすることができる。通信部33は、インターネットなどのネットワーク99を介してユーザ端末装置1との間でデータの送受信を行う。なお本実施の形態において販売サーバ装置3は、第1決済サーバ装置5A及び第2決済サーバ装置5Bとの通信を行わない。   The recording medium mounting unit 32 is configured such that a disk-shaped recording medium 92 can be attached and detached. The processing unit 30 can read the server program 92 a and other various data from the recording medium 92 mounted on the recording medium mounting unit 32 and install it in the storage unit 31. The communication unit 33 transmits and receives data to and from the user terminal device 1 via a network 99 such as the Internet. In the present embodiment, sales server device 3 does not communicate with first payment server device 5A and second payment server device 5B.

また本実施の形態に係る販売サーバ装置3は、処理部30がサーバプログラム92aを実行することにより、販売処理部41、ID生成部42、暗号処理部43及び不具合確認部44等がソフトウェア的な機能ブロックとして実現される。販売処理部41は、販売している商品のリストなどの情報をユーザ端末装置1へ送信する処理、商品の購入要求をユーザ端末装置1から受け付ける処理、要求された商品に関する決済要求をユーザ端末装置1へ送信する処理、決済処理の結果をユーザ端末装置1から受信する処理、及び、決済処理の結果に応じて商品を販売する処理等を行う。   Further, in the sales server device 3 according to the present embodiment, when the processing unit 30 executes the server program 92a, the sales processing unit 41, the ID generation unit 42, the encryption processing unit 43, the defect confirmation unit 44, and the like are software-like. Realized as a functional block. The sales processing unit 41 performs processing for transmitting information such as a list of products for sale to the user terminal device 1, processing for receiving a purchase request for products from the user terminal device 1, and a settlement request for the requested product. 1, a process of receiving a result of the payment process from the user terminal device 1, a process of selling a product according to the result of the payment process, and the like.

ID生成部42は、ユーザ端末装置1から購入要求を受け付けた際に、購入を要求された商品に関する販売処理及び決済処理等の一連の処理に対する識別情報を生成する。本実施の形態においてこの識別情報を、トランザクションIDという。ID生成部42は、例えばランダムな数値を生成してこれをトランザクションIDとしてもよく、また例えば通し番号などをトランザクションIDとしてもよく、これら以外の方法でトランザクションIDを生成してもよい。販売処理部41がユーザ端末装置1へ送信する決済要求には、ID生成部42が生成したトランザクションIDが付される。販売サーバ装置3は、商品の販売処理の進行状況などをトランザクションIDを利用して管理する。   When receiving a purchase request from the user terminal device 1, the ID generation unit 42 generates identification information for a series of processes such as a sales process and a settlement process related to a product requested for purchase. In the present embodiment, this identification information is referred to as a transaction ID. For example, the ID generation unit 42 may generate a random numerical value and use it as a transaction ID, or may use a serial number or the like as a transaction ID, or may generate a transaction ID by a method other than these. The transaction ID generated by the ID generation unit 42 is attached to the settlement request transmitted from the sales processing unit 41 to the user terminal device 1. The sales server device 3 manages the progress of the sales process of the product using the transaction ID.

暗号処理部43は、ユーザ端末装置1へ決済要求を送信する際に、決済要求に含まれる情報を暗号化する処理を行う。例えば決済要求には、上記のトランザクションID、決済要求を行った日時情報、購入された商品の金額情報、又は、電子署名等の情報を含み得る。販売処理部41は、暗号処理部43により暗号化された決済要求をユーザ端末装置1へ送信する。なお暗号化された決済要求は、ユーザ端末装置1にて復号又は改変することはできず、第1決済サーバ装置5Aにて復号することができる。またユーザ端末装置1から受信する決済結果は同様に暗号化されており、暗号処理部43は受信した決済結果を復号する処理を行う。暗号処理部43は、例えば公開鍵暗号のアルゴリズムにより情報の暗号化及び復号を行う。   The encryption processing unit 43 performs processing for encrypting information included in the payment request when the payment request is transmitted to the user terminal device 1. For example, the payment request may include information such as the transaction ID, date and time information when the payment request is made, price information of purchased products, or an electronic signature. The sales processing unit 41 transmits the settlement request encrypted by the encryption processing unit 43 to the user terminal device 1. The encrypted payment request cannot be decrypted or modified by the user terminal device 1 but can be decrypted by the first payment server device 5A. The settlement result received from the user terminal device 1 is similarly encrypted, and the encryption processing unit 43 performs a process of decrypting the received settlement result. The encryption processing unit 43 encrypts and decrypts information using, for example, a public key encryption algorithm.

不具合確認部44は、例えば決済要求の後にユーザ端末装置1から決済結果が所定時間以上に亘って得られない場合、又は、決済失敗の結果がユーザ端末装置1から与えられた場合等に、決済処理に不具合が発生しているか否かを確認する処理、及び、決済処理の処理過程における不具合の発生個所を確認する処理等を行う。このときに不具合確認部44は、トランザクションIDを指定して決済処理の進行状況をユーザ端末装置1へ問い合わせ、これに対する応答に基づいて不具合の発生の有無及び発生個所等を確認する。また不具合確認部44は、不具合が発生して停止している決済処理又は販売処理等を再開する処理を行う。   For example, the defect confirmation unit 44 performs payment when a payment result is not obtained from the user terminal device 1 for a predetermined time or more after a payment request, or when a payment failure result is given from the user terminal device 1. A process for confirming whether or not a defect has occurred in the processing, a process for confirming the occurrence of a defect in the process of the settlement process, and the like are performed. At this time, the defect confirmation unit 44 designates the transaction ID and inquires the user terminal device 1 about the progress status of the payment process, and confirms whether or not a defect has occurred and the location of the occurrence based on the response thereto. In addition, the defect confirmation unit 44 performs processing for resuming settlement processing or sales processing that has been stopped due to a defect.

図6は、販売サーバ装置3が記憶部31に記憶する販売履歴情報31aの一例を示す模式図である。販売履歴情報31aには、トランザクションIDに対応付けて、ユーザID、販売商品情報、合計金額、決済要求日時、決済結果及び販売処理状況等の情報が記憶されている。ユーザIDは、ユーザ端末装置1を利用して商品を購入するユーザに対して付される識別情報であり、本システムへのログイン処理を行う際にユーザ端末装置1にてユーザにより入力される。販売商品情報は、販売した(ユーザが購入を要求した)商品に関する情報であり、例えば商品名又は商品番号等の情報と販売した個数又は量等の情報とが含まれている。合計金額は、販売した商品の合計金額を示す数値情報である。決済要求日時は、このトランザクションIDに関する決済要求をユーザ端末装置1へ送信した日時である。決済結果は、決済要求に対してユーザ端末装置1から受信した決済の結果を示す情報であり、決済完了、決済失敗、処理未了又は未受信のいずれかである。決済完了は、決済サーバ装置5による決済処理が正常に終了したことが確認された状態である。決済失敗は、例えばICカード7の残高不足などにより、決済処理が正常に終了しなかったことが確認された状態である。処理未了は、ICカード7に対する情報の書き込みが正常に終了したか否かが不明確な状態である。未受信は、決済結果をユーザ端末装置1から受信していない状態である。販売処理状況は、このトランザクションIDに関する商品の販売処理を完了したか否かを示すフラグである。なお図6に示す販売履歴情報31aの構成は一例であり、これに限るものではない。   FIG. 6 is a schematic diagram illustrating an example of sales history information 31 a stored in the storage unit 31 by the sales server device 3. In the sales history information 31a, information such as a user ID, sales merchandise information, total amount, settlement request date, settlement result, and sales processing status is stored in association with the transaction ID. The user ID is identification information given to a user who purchases a product using the user terminal device 1 and is input by the user at the user terminal device 1 when performing login processing to the system. Sales merchandise information is information relating to merchandise sold (user requested to purchase), and includes, for example, information such as a merchandise name or merchandise number and information such as the number or quantity sold. The total price is numerical information indicating the total price of the sold products. The settlement request date and time is the date and time when the settlement request related to the transaction ID is transmitted to the user terminal device 1. The payment result is information indicating the result of payment received from the user terminal device 1 in response to the payment request, and is either payment completion, payment failure, processing incomplete or unreceived. Payment completion is a state in which it has been confirmed that the payment processing by the payment server device 5 has been completed normally. The settlement failure is a state in which it has been confirmed that the settlement processing has not been completed normally, for example, due to an insufficient balance of the IC card 7 or the like. Incomplete processing means that it is unclear whether or not the writing of information to the IC card 7 has been completed normally. Unreceived is a state in which the settlement result has not been received from the user terminal device 1. The sales process status is a flag indicating whether or not the sales process of the product related to the transaction ID has been completed. The configuration of the sales history information 31a shown in FIG. 6 is an example, and the present invention is not limited to this.

本実施の形態に係る決済システムは、上述のように決済サーバ装置5を第1決済サーバ装置5A及び第2決済サーバ装置5Bの2つの装置で構成する。第1決済サーバ装置5Aは、図1に示した決済サーバ装置5が行う決済処理において、ユーザ端末装置1を介して販売サーバ装置3との通信を行う処理、及び、決済処理に関する履歴情報を記憶する処理等を行う。第2決済サーバ装置5Bは、ICカード7から商品の代金を減額する処理などを行う。   In the payment system according to the present embodiment, as described above, the payment server device 5 is composed of two devices, the first payment server device 5A and the second payment server device 5B. The first settlement server device 5A stores the history information regarding the processing for communicating with the sales server device 3 via the user terminal device 1 in the settlement processing performed by the settlement server device 5 shown in FIG. The processing to do is performed. The second settlement server device 5B performs processing for reducing the price of the product from the IC card 7.

図7は、第1決済サーバ装置5Aの構成を示すブロック図である。本実施の形態に係る第1決済サーバ装置5Aは、処理部50、記憶部51、記録媒体装着部52及び通信部53等を備えて構成されている。処理部50は、CPUなどの演算処理装置を用いて構成され、記憶部51に記憶されたサーバプログラム93aを読み出して実行することにより、決済に係る上述の処理を行う。記憶部51は、不揮発性の記憶装置を用いて構成され、サーバプログラム93aなどのプログラム及び種々のデータを記憶することができる。本実施の形態において記憶部51は、決済処理に係る履歴を決済履歴情報51aとして記憶している。   FIG. 7 is a block diagram showing the configuration of the first settlement server device 5A. The first settlement server device 5A according to the present embodiment includes a processing unit 50, a storage unit 51, a recording medium mounting unit 52, a communication unit 53, and the like. The processing unit 50 is configured using an arithmetic processing device such as a CPU, and performs the above-described processing related to settlement by reading and executing the server program 93a stored in the storage unit 51. The memory | storage part 51 is comprised using a non-volatile memory | storage device, and can memorize | store programs and various data, such as a server program 93a. In the present embodiment, the storage unit 51 stores a history related to a payment process as payment history information 51a.

記録媒体装着部52は、ディスク形などの記録媒体93を着脱できるよう構成されている。処理部50は、記録媒体装着部52に装着された記録媒体93からサーバプログラム93a及びその他の種々のデータを読み出して記憶部51にインストールすることができる。通信部53は、インターネットなどのネットワーク99を介してユーザ端末装置1及び第2決済サーバ装置5Bとの間でデータの送受信を行う。なお本実施の形態において第1決済サーバ装置5Aは、販売サーバ装置3との通信を行わない。   The recording medium mounting unit 52 is configured so that a recording medium 93 such as a disk can be attached and detached. The processing unit 50 can read the server program 93 a and other various data from the recording medium 93 mounted on the recording medium mounting unit 52 and install it in the storage unit 51. The communication unit 53 transmits and receives data to and from the user terminal device 1 and the second settlement server device 5B via a network 99 such as the Internet. In the present embodiment, the first settlement server device 5A does not communicate with the sales server device 3.

また本実施の形態に係る第1決済サーバ装置5Aは、処理部50がサーバプログラム93aを実行することにより、第1決済処理部50a、暗号処理部50b及び不具合判定部50c等がソフトウェア的な機能ブロックとして実現される。暗号処理部50bは通信部53にてユーザ端末装置1から受信した決済要求を復号する処理、及び、ユーザ端末装置1へ送信する決済結果に含まれる情報を暗号化する処理を行う。   In the first settlement server device 5A according to the present embodiment, the processing unit 50 executes the server program 93a, so that the first settlement processing unit 50a, the encryption processing unit 50b, the defect determination unit 50c, and the like function as software. Realized as a block. The encryption processing unit 50 b performs processing for decrypting the payment request received from the user terminal device 1 by the communication unit 53 and processing for encrypting information included in the payment result transmitted to the user terminal device 1.

第1決済処理部50aは、ユーザ端末装置1から受信して復号された決済要求に基づき、第2決済サーバ装置5Bに適した形式の決済要求を生成し、生成した決済要求を通信部53にて第2決済サーバ装置5Bへ送信する処理を行う。即ち第1決済処理部50aは、販売サーバ装置3からの決済要求を、第2決済サーバ装置5Bに適した決済要求(第2決済サーバ装置5Bにおいて解釈可能なコマンドなど)に変換又は翻訳する処理を行う。   The first payment processing unit 50 a generates a payment request in a format suitable for the second payment server device 5 B based on the payment request received and decrypted from the user terminal device 1, and sends the generated payment request to the communication unit 53. And processing to transmit to the second settlement server device 5B. That is, the first settlement processing unit 50a converts or translates the settlement request from the sales server device 3 into a settlement request suitable for the second settlement server device 5B (such as a command that can be interpreted by the second settlement server device 5B). I do.

第1決済処理部50aは、第2決済サーバ装置5Bから受信したICカード7に対する処理要求を、ICカード7にアクセスするためのコマンドに変換してユーザ端末装置1へ送信する。第1決済処理部50aは、ユーザ端末装置1を介してICカード7からの応答を受信し、当該ICカード7からの応答に基づいて第2決済サーバ装置5Bの処理要求に対する応答を作成し、通信部53にて第2決済サーバ装置5Bへ送信する。   The first settlement processing unit 50a converts the processing request for the IC card 7 received from the second settlement server device 5B into a command for accessing the IC card 7, and transmits the command to the user terminal device 1. The first settlement processing unit 50a receives a response from the IC card 7 via the user terminal device 1, creates a response to the processing request of the second settlement server device 5B based on the response from the IC card 7, The communication unit 53 transmits it to the second settlement server device 5B.

また第1決済処理部50aは、通信部53にて第2決済サーバ装置5Bから受信した決済処理の結果に基づき、販売サーバ装置3に適した決済結果を生成し、生成した決済結果を通信部53にて販売サーバ装置3へ送信する処理を行う。即ち第1決済処理部50aは、第2決済サーバ装置5Bからの決済結果を、販売サーバ装置3に適した決済結果(販売サーバ装置3において解釈可能な形式のコマンドなど)に変換又は翻訳する処理を行う。   The first settlement processing unit 50a generates a settlement result suitable for the sales server device 3 based on the result of the settlement process received from the second settlement server device 5B by the communication unit 53, and the generated settlement result is transmitted to the communication unit. A process of transmitting to the sales server device 3 is performed at 53. That is, the first settlement processing unit 50a converts or translates the settlement result from the second settlement server device 5B into a settlement result suitable for the sales server device 3 (such as a command in a format that can be interpreted by the sales server device 3). I do.

このように第1決済処理部50aは、販売サーバ装置3及び第2決済サーバ装置5Bの間で送受信される情報の変換処理及び転送処理、並びに、第2決済サーバ装置5B及びICカード7の間で送受信される情報の変換処理及び転送処理を行う。このような処理を行う第1決済サーバ装置5Aを設けることにより、例えば構成が異なる複数種の販売サーバ装置3、第2決済サーバ装置5Bとはプロトコルなどが異なるユーザ端末装置1、又は、複数種のICカード7等に対して、第2決済サーバ装置5Bの決済処理を容易に対応させることができる。また販売サーバ装置3又は第2決済サーバ装置5Bのいずれか一方の仕様変更に対して、他方を容易に対応させることができる。   In this way, the first settlement processing unit 50a performs the conversion process and transfer process of information transmitted and received between the sales server device 3 and the second settlement server device 5B, and between the second settlement server device 5B and the IC card 7. Performs a conversion process and a transfer process for information transmitted and received in the network. By providing the first settlement server device 5A for performing such processing, for example, a plurality of types of sales server devices 3 having different configurations, a user terminal device 1 having a different protocol from the second settlement server device 5B, or a plurality of types. The payment processing of the second payment server device 5B can be easily associated with the IC card 7 or the like. Moreover, the other can be easily made compatible with the specification change of one of the sales server device 3 and the second settlement server device 5B.

また第1決済処理部50aは、決済処理に係る履歴を決済履歴情報51aとして記憶部51に記憶する処理を行う。このときに第1決済処理部50aは、トランザクションIDに対応付けて決済処理の履歴を記憶する。販売サーバ装置3などからトランザクションIDを指定して決済処理の不具合確認の要求が与えられた場合、第1決済サーバ装置5Aの不具合判定部50cは、記憶部51の決済履歴情報51aを参照して決済処理に不具合が生じたか否かを判定する。不具合判定部50cは、不具合の有無及び決済処理の処理過程における不具合の発生個所等を、ユーザ端末装置1を介して販売サーバ装置3へ通知する。   In addition, the first settlement processing unit 50a performs a process of storing the history related to the settlement process in the storage unit 51 as the settlement history information 51a. At this time, the first settlement processing unit 50a stores a history of settlement processing in association with the transaction ID. When a transaction ID is specified from the sales server device 3 or the like and a payment confirmation failure check request is given, the failure determination unit 50c of the first payment server device 5A refers to the payment history information 51a of the storage unit 51. It is determined whether or not a failure has occurred in the settlement process. The defect determination unit 50c notifies the sales server device 3 via the user terminal device 1 of the presence / absence of the defect and the occurrence location of the defect in the process of the settlement process.

図8は、第1決済サーバ装置5Aが記憶部51に記憶する決済履歴情報51aの一例を示す模式図である。決済履歴情報51aは、トランザクションIDに対応付けて、決済状態、カードID、更新ID及び決済日時等の情報が記憶されている。決済状態は、決済処理の進行状態を示す情報であり、本実施の形態において決済非成立、処理未了及び決済成立の3状態のいずれかである。決済非成立は、ユーザ端末装置1から決済要求を受信した後、ICカード7に対するデータ書き込みを行うまでの状態である。処理未了は、ICカード7に対するデータ書き込み命令を与えたが、その応答が得られておらず、書き込みが正常に行われたか否かが不明な状態である。決済成立は、ICカード7に対するデータの書き込みを正常に終えた状態である。   FIG. 8 is a schematic diagram illustrating an example of payment history information 51 a stored in the storage unit 51 by the first payment server device 5 </ b> A. The payment history information 51a stores information such as a payment state, a card ID, an update ID, and a payment date and time in association with the transaction ID. The payment state is information indicating the progress state of the payment process, and is one of three states of payment non-successful, process unsuccessful, and payment successful in the present embodiment. The settlement failure is a state from when a settlement request is received from the user terminal device 1 until data writing to the IC card 7 is performed. When the processing is not completed, a data write command to the IC card 7 is given, but no response is obtained, and it is unknown whether the writing has been performed normally. The settlement is a state in which data writing to the IC card 7 has been normally completed.

決済履歴情報51aのカードIDは、ユーザが決済処理に利用したICカード7に記憶されたものである。第1決済処理部50aは、ユーザ端末装置1を介して行うICカード7との通信の初回において、このICカード7のカードIDを取得することができる。更新IDは、ICカード7に対する残高の更新処理に対して付される識別情報であり、第2決済サーバ装置5Bにより与えられる。この更新IDは、ICカード7の残高履歴情報73bにも記憶されている。決済日時は、決済処理を開始した日時であり、ユーザ端末装置1から決済要求を受信した日時である。   The card ID of the payment history information 51a is stored in the IC card 7 used for the payment process by the user. The first settlement processing unit 50 a can acquire the card ID of the IC card 7 at the first communication with the IC card 7 performed via the user terminal device 1. The update ID is identification information given to the balance update process for the IC card 7 and is given by the second settlement server device 5B. This update ID is also stored in the balance history information 73b of the IC card 7. The settlement date and time is the date and time when the settlement process is started, and is the date and time when the settlement request is received from the user terminal device 1.

第1決済サーバ装置5Aの第1決済処理部50aは、ユーザ端末装置1を介して販売サーバ装置3からの決済要求を受信した場合に、記憶部51の決済履歴情報51aに、受信した決済要求に付されたトランザクションIDに関する情報を追加する。このとき決済履歴情報51aに追加される情報は、決済状態が決済非成立であり、カードID及び更新IDが不明であり、決済日時が決済要求を受信した日時となる。その後、第1決済処理部50aは、第2決済サーバ装置5B及びICカード7の間の情報交換を仲介し、ICカード7からカードIDが得られた場合にこれを決済履歴情報51aに記憶し、第2決済サーバ装置5Bから更新IDが得られた場合にこれを決済履歴情報51aに記憶する。更に第1決済処理部50aは、ICカード7に対するデータの書き込み命令が与えられた場合に決済状態を処理未了に変更し、ICカード7から書込完了の応答が得られた場合に決済状態を決済成立に変更する。   When the first settlement processing unit 50a of the first settlement server device 5A receives the settlement request from the sales server device 3 via the user terminal device 1, the first settlement processing unit 50a receives the received settlement request in the settlement history information 51a of the storage unit 51. The information regarding the transaction ID attached to is added. At this time, the information added to the settlement history information 51a is that the settlement state is not settled, the card ID and the update ID are unknown, and the settlement date and time is the date and time when the settlement request is received. Thereafter, the first settlement processing unit 50a mediates information exchange between the second settlement server device 5B and the IC card 7, and stores the card ID in the settlement history information 51a when the card ID is obtained from the IC card 7. When the update ID is obtained from the second settlement server device 5B, it is stored in the settlement history information 51a. Furthermore, the first settlement processing unit 50a changes the settlement state to “unfinished” when a data write command is given to the IC card 7, and the settlement state when a response indicating completion of writing is obtained from the IC card 7. Is changed to settlement completion.

図9は、第2決済サーバ装置5Bの構成を示すブロック図である。本実施の形態に係る第2決済サーバ装置5Bは、処理部60、記憶部61、記録媒体装着部62及び通信部63等を備えて構成されている。処理部60は、CPUなどの演算処理装置を用いて構成され、記憶部61に記憶されたサーバプログラム94aを読み出して実行することにより、決済に係る処理を行う。記憶部61は、不揮発性の記憶装置を用いて構成され、サーバプログラム94aなどのプログラム及び種々のデータを記憶することができる。   FIG. 9 is a block diagram showing a configuration of the second settlement server device 5B. The second settlement server device 5B according to the present embodiment includes a processing unit 60, a storage unit 61, a recording medium mounting unit 62, a communication unit 63, and the like. The processing unit 60 is configured using an arithmetic processing device such as a CPU, and performs processing related to settlement by reading and executing the server program 94a stored in the storage unit 61. The memory | storage part 61 is comprised using a non-volatile memory | storage device, and can memorize | store programs and various data, such as a server program 94a.

記録媒体装着部62は、ディスク形などの記録媒体94を着脱できるよう構成されている。処理部60は、記録媒体装着部62に装着された記録媒体94からサーバプログラム94a及びその他の種々のデータを読み出して記憶部61にインストールすることができる。通信部63は、インターネットなどのネットワーク99を介して第1決済サーバ装置5Aとの間でデータの送受信を行う。なお本実施の形態において第2決済サーバ装置5Bは、ユーザ端末装置1及び販売サーバ装置3との通信を行わない。   The recording medium mounting unit 62 is configured so that a recording medium 94 such as a disk can be attached and detached. The processing unit 60 can read the server program 94 a and other various data from the recording medium 94 mounted on the recording medium mounting unit 62 and install it in the storage unit 61. The communication unit 63 transmits / receives data to / from the first settlement server device 5A via a network 99 such as the Internet. In the present embodiment, the second settlement server device 5B does not communicate with the user terminal device 1 and the sales server device 3.

また本実施の形態に係る第2決済サーバ装置5Bは、処理部60がサーバプログラム94aを実行することにより、第2決済処理部60a、ID生成部60b及び履歴照会部60c等がソフトウェア的な機能ブロックとして実現される。第2決済処理部60aは、第1決済サーバ装置5Aから与えられた決済要求に基づき、ICカード7の残高から商品代金を減額する処理を行う。このときに第2決済処理部60aは、第1決済サーバ装置5A及びユーザ端末装置1を介してICカード7との間で情報交換を複数回行って、ICカード7の残高を更新する。   Further, in the second settlement server device 5B according to the present embodiment, the processing unit 60 executes the server program 94a, so that the second settlement processing unit 60a, the ID generation unit 60b, the history inquiry unit 60c, and the like function as software. Realized as a block. The second settlement processing unit 60a performs a process of reducing the product price from the balance of the IC card 7 based on the settlement request given from the first settlement server device 5A. At this time, the second settlement processing unit 60a exchanges information with the IC card 7 a plurality of times via the first settlement server device 5A and the user terminal device 1 to update the balance of the IC card 7.

ID生成部60bは、第1決済サーバ装置5Aから決済要求を受け付けた際に、ICカード7との間で行う一連の決済処理に対する識別情報を生成する。本実施の形態においてこの識別情報を、更新IDという。ID生成部60bは、例えばランダムな数値を生成してこれを更新IDとしてもよく、また例えば通し番号などを更新IDとしてもよく、これら以外の方法で更新IDを生成してもよい。ICカード7の残高履歴情報73b及び第1決済サーバ装置5Aの決済履歴情報51aには、この更新IDが記憶されている。   The ID generation unit 60b generates identification information for a series of payment processes performed with the IC card 7 when a payment request is received from the first payment server device 5A. In the present embodiment, this identification information is referred to as an update ID. The ID generation unit 60b may generate a random numerical value and use it as an update ID, for example, or may use a serial number or the like as an update ID, or may generate an update ID using a method other than these. The update ID is stored in the balance history information 73b of the IC card 7 and the settlement history information 51a of the first settlement server device 5A.

履歴照会部60cは、第1決済サーバ装置5AからICカード7の残高履歴の照会要求が与えられた場合に、ICカード7から残高履歴情報73bを読み出す処理を行う。履歴照会部60cは、読み出した残高履歴情報73bを第1決済サーバ装置5Aへ送信する。第1決済サーバ装置5Aの不具合判定部50cは、第2決済サーバ装置5Bから受信したICカード7の残高履歴情報73bに基づいて、決済処理に不具合が生じたか否かを判定することができる。   The history inquiry unit 60c performs a process of reading the balance history information 73b from the IC card 7 when a request for inquiry of the balance history of the IC card 7 is given from the first settlement server device 5A. The history inquiry unit 60c transmits the read balance history information 73b to the first settlement server device 5A. The failure determination unit 50c of the first payment server device 5A can determine whether or not a failure has occurred in the payment processing based on the balance history information 73b of the IC card 7 received from the second payment server device 5B.

<決済処理>
図10は、本実施の形態に係る決済システムによる決済処理の一例を示す模式図である。例えばユーザは、ユーザ端末装置1の表示部13に表示された商品のリストから購入するものを選択し、操作部14を操作して販売サーバ装置3に対する購入要求を行うことができる。ユーザ端末装置1は、操作部14に対するユーザの操作を操作受付部25にて受け付け、受け付けた操作に応じて、ユーザ端末装置1を利用しているユーザのID、購入する商品を識別する情報及び購入数等の情報を含む購入要求を、通信部15にて販売サーバ装置3へ送信する。
<Payment processing>
FIG. 10 is a schematic diagram showing an example of payment processing by the payment system according to the present embodiment. For example, the user can select a product to be purchased from the list of products displayed on the display unit 13 of the user terminal device 1 and operate the operation unit 14 to make a purchase request to the sales server device 3. The user terminal device 1 accepts a user operation on the operation unit 14 by the operation accepting unit 25, and according to the accepted operation, an ID of a user who uses the user terminal device 1, information for identifying a product to be purchased, and A purchase request including information such as the number of purchases is transmitted to the sales server device 3 by the communication unit 15.

ユーザ端末装置1からの購入要求を通信部33にて受信した販売サーバ装置3は、受信した購入要求に係る商品の販売及び決済等の処理に対するトランザクションIDをID生成部42にて生成する。販売サーバ装置3の販売処理部41は、トランザクションID、決済日時情報、商品の金額情報及び電子署名等の情報を含む決済要求を作成し、通信部33にてユーザ端末装置1へ送信する。なお決済要求に含まれる情報は、暗号処理部43により暗号化される。また購入要求を受信した販売サーバ装置3の販売処理部41は、記憶部31の販売履歴情報31aに対する情報の追加を行う。販売処理部41は、ID生成部42が生成したトランザクションIDと、受信した購入要求に含まれる情報から生成又は取得したユーザID、商品情報及び合計金額と、決済要求を行った日時とを対応付けて販売履歴情報31aに記憶する。このとき、対応する販売履歴情報31aの決済結果は未受信であり、販売処理状況は未完了である。   Upon receiving the purchase request from the user terminal device 1 by the communication unit 33, the sales server device 3 generates a transaction ID for processing such as sale and settlement of the product related to the received purchase request by the ID generation unit 42. The sales processing unit 41 of the sales server device 3 creates a payment request including information such as a transaction ID, payment date / time information, product price information, and an electronic signature, and transmits the payment request to the user terminal device 1 through the communication unit 33. Information included in the payment request is encrypted by the encryption processing unit 43. In addition, the sales processing unit 41 of the sales server device 3 that has received the purchase request adds information to the sales history information 31 a in the storage unit 31. The sales processing unit 41 associates the transaction ID generated by the ID generation unit 42 with the user ID, product information and total amount generated or acquired from the information included in the received purchase request, and the date and time when the payment request was made. And stored in the sales history information 31a. At this time, the settlement result of the corresponding sales history information 31a has not been received, and the sales processing status has not been completed.

販売サーバ装置3から決済要求を通信部15にて受信したユーザ端末装置1の決済要求中継部21は、受信した決済要求を通信部15にて第1決済サーバ装置5Aへ送信する。このときに決済要求中継部21は、受信した決済要求のヘッダなどの情報を変更してもよいが、暗号化された情報を変更することはない。   The payment request relay unit 21 of the user terminal device 1 that has received the payment request from the sales server device 3 through the communication unit 15 transmits the received payment request to the first payment server device 5A through the communication unit 15. At this time, the payment request relay unit 21 may change information such as the header of the received payment request, but does not change the encrypted information.

ユーザ端末装置1からの決済要求を受信した第1決済サーバ装置5Aは、受信した決済要求に含まれる情報を暗号処理部50bにて復号する。第1決済サーバ装置5Aの第1決済処理部50aは、復号した情報に含まれる金額情報を取得し、この金額の決済を第2決済サーバ装置5Bに依頼する。なおこのときに第1決済処理部50aは、受信した決済要求に含まれるトランザクションID、決済日時情報及び電子署名等の情報を第2決済サーバ装置5Bへ送信しなくてよい。また決済要求を受信した第1決済サーバ装置5Aの第1決済処理部50aは、記憶部51の決済履歴情報51aに対する情報の追加を行う。第1決済処理部50aは、受信した決済要求に含まれるトランザクションID及び決済日時を決済履歴情報51aに記憶する。このとき、対応する決済履歴情報51aの決済状態は決済非成立であり、カードID及び更新IDは未定である。   The first settlement server device 5A that has received the settlement request from the user terminal device 1 decrypts the information included in the received settlement request by the encryption processing unit 50b. The first settlement processing unit 50a of the first settlement server device 5A acquires the amount information included in the decrypted information, and requests the second settlement server device 5B to settle the amount. At this time, the first settlement processing unit 50a may not transmit information such as the transaction ID, settlement date information, and electronic signature included in the received settlement request to the second settlement server device 5B. The first settlement processing unit 50a of the first settlement server device 5A that has received the settlement request adds information to the settlement history information 51a in the storage unit 51. The first settlement processing unit 50a stores the transaction ID and the settlement date / time included in the received settlement request in the settlement history information 51a. At this time, the settlement state of the corresponding settlement history information 51a is not settled, and the card ID and update ID are undecided.

第1決済サーバ装置5Aから決済依頼を通信部63にて受信した第2決済サーバ装置5Bでは、第2決済処理部60aにより決済を依頼された金額をICカード7の残高から減額する決済処理が開始される。まず第2決済サーバ装置5Bでは、ID生成部60bが更新IDを生成する。第2決済処理部60aは、決済処理に用いるICカード7を特定するため、ICカード7の読出要求を第1決済サーバ装置5Aへ与える。なお第2決済処理部60aが送信する読出要求には更新IDが含まれている。読出要求を与えられた第1決済サーバ装置5Aは、第1決済処理部50aがICカード7の記憶部73に記憶された情報(例えばカードID73a)を読み出すための読出コマンドを生成してユーザ端末装置1へ送信する。また第1決済処理部50aは、与えられた読出要求に含まれる更新IDを決済履歴情報51aに登録する。   In the second settlement server device 5B that has received the settlement request from the first settlement server device 5A by the communication unit 63, a settlement process for reducing the amount requested for settlement by the second settlement processing unit 60a from the balance of the IC card 7 is performed. Be started. First, in the second settlement server device 5B, the ID generation unit 60b generates an update ID. The second settlement processing unit 60a gives a read request for the IC card 7 to the first settlement server device 5A in order to specify the IC card 7 used for the settlement process. The read request transmitted by the second settlement processing unit 60a includes an update ID. The first settlement server device 5A given the read request generates a read command for the first settlement processing unit 50a to read out information (for example, card ID 73a) stored in the storage unit 73 of the IC card 7, and the user terminal Transmit to device 1. The first settlement processing unit 50a registers the update ID included in the given read request in the settlement history information 51a.

第1決済サーバ装置5Aから読出コマンドを受信したユーザ端末装置1の決済仲介部22は、非接触通信部16にてICカード7との非接触通信を行い、ICカード7へ読出コマンドを送信する。このとき決済仲介部22は、表示部13にICカード7の接触を促すメッセージの表示などを行ってよい。決済仲介部22は、非接触通信により読出コマンドに対してICカード7から得られた応答を第1決済サーバ装置5Aへ送信する。なおICカード7から得られる応答には、カードID73aなどの記憶部73から読み出した情報が含まれるが、本実施の形態において、ユーザ端末装置1及び第1決済サーバ装置5Aではこれらの情報を直接的に扱うことはできない。   The payment intermediary unit 22 of the user terminal device 1 that has received the read command from the first payment server device 5A performs non-contact communication with the IC card 7 by the non-contact communication unit 16, and transmits the read command to the IC card 7. . At this time, the settlement intermediary unit 22 may display a message prompting the IC card 7 to contact the display unit 13 or the like. The settlement intermediary unit 22 transmits a response obtained from the IC card 7 to the read command by the non-contact communication to the first settlement server device 5A. Note that the response obtained from the IC card 7 includes information read from the storage unit 73 such as the card ID 73a. In the present embodiment, the user terminal device 1 and the first settlement server device 5A directly receive such information. Can't be treated.

ユーザ端末装置1から応答を受信した第1決済サーバ装置5Aの第1決済処理部50aは、受信した応答を第2決済サーバ装置5Bへ送信する。第1決済サーバ装置5Aからの応答を受信した第2決済サーバ装置5Bの第2決済処理部60aは、受信した応答に含まれる読出情報を取得する。第2決済処理部60aは、このようなICカード7からの情報の読み出しを複数回行って、ICカード7の記憶部73に記憶されたカードID73a及び残高等の情報を取得する。なお第2決済処理部60aはICカード7からカードID73aを取得した後、このカードID73aを指定してICカード7に対する読出要求などを第1決済サーバ装置5Aに対して行う。第1決済サーバ装置5Aの第1決済処理部50aは、読出要求にカードID73aが含まれている場合、記憶部51の決済履歴情報51aにカードIDを登録する。   The first settlement processing unit 50a of the first settlement server device 5A that has received the response from the user terminal device 1 transmits the received response to the second settlement server device 5B. The second settlement processing unit 60a of the second settlement server device 5B that has received the response from the first settlement server device 5A acquires the read information included in the received response. The second settlement processing unit 60a reads information from the IC card 7 a plurality of times, and acquires information such as the card ID 73a and the balance stored in the storage unit 73 of the IC card 7. The second settlement processing unit 60a obtains the card ID 73a from the IC card 7, and then designates the card ID 73a to make a read request for the IC card 7 to the first settlement server device 5A. When the card ID 73a is included in the read request, the first settlement processing unit 50a of the first settlement server device 5A registers the card ID in the settlement history information 51a of the storage unit 51.

ICカード7から必要な情報を取得した第2決済処理部60aは、ICカード7の残高から商品価格を減額した金額をICカード7に書き込むべく、書込要求を第1決済サーバ装置5Aへ与える。書込要求を与えられた第1決済サーバ装置5Aの第1決済処理部50aは、ICカード7の記憶部73に対する情報の書き込みを行うための書込コマンドを生成してユーザ端末装置1へ送信する。また第1決済処理部50aは、記憶部51の決済履歴情報51aの対応する決済状態を処理未了に変更する。   The second settlement processing unit 60a that has acquired the necessary information from the IC card 7 gives a write request to the first settlement server device 5A in order to write in the IC card 7 the amount obtained by reducing the product price from the balance of the IC card 7. . The first settlement processing unit 50 a of the first settlement server device 5 A given the write request generates a write command for writing information to the storage unit 73 of the IC card 7 and transmits it to the user terminal device 1. To do. The first settlement processing unit 50a changes the corresponding settlement state of the settlement history information 51a in the storage unit 51 to processing incomplete.

第1決済サーバ装置5Aから書込コマンドを受信したユーザ端末装置1の決済仲介部22は、非接触通信部16にてICカード7との非接触通信を行い、ICカード7へ書込コマンドを送信する。ICカード7の処理部71は、非接触通信によりユーザ端末装置1から受信した書込コマンドに従って記憶部73への書込処理を行う。これにより記憶部73の残高履歴情報73bが更新される。書込処理の終了後、ICカード7の処理部71は、非接触通信によりユーザ端末装置1への応答を行う。非接触通信によりICカード7からの応答を受信したユーザ端末装置1の決済仲介部22は、受信した応答を第1決済サーバ装置5Aへ送信する。ユーザ端末装置1からの応答を受信した第1決済サーバ装置5Aの第1決済処理部50aは、受信した応答を第2決済サーバ装置5Bへ送信する。   The payment intermediary unit 22 of the user terminal device 1 that has received the write command from the first payment server device 5A performs non-contact communication with the IC card 7 in the non-contact communication unit 16, and sends the write command to the IC card 7. Send. The processing unit 71 of the IC card 7 performs a writing process to the storage unit 73 in accordance with the write command received from the user terminal device 1 by non-contact communication. Thereby, the balance history information 73b of the storage unit 73 is updated. After the completion of the writing process, the processing unit 71 of the IC card 7 makes a response to the user terminal device 1 by non-contact communication. The settlement intermediary unit 22 of the user terminal device 1 that has received the response from the IC card 7 by non-contact communication transmits the received response to the first settlement server device 5A. The first settlement processing unit 50a of the first settlement server device 5A that has received the response from the user terminal device 1 transmits the received response to the second settlement server device 5B.

第1決済サーバ装置5Aからの応答を受信した第2決済サーバ装置5Bの第2決済処理部60aは、受信した応答からICカード7の情報書込が成功したか否かを判定する。なお、図10においては、ICカード7に対する書込処理が成功した場合を図示してある。書込処理が失敗していた場合、第2決済処理部60aは、書込処理に成功するまで書込要求を繰り返し第1決済サーバ装置5Aへ送信してもよい。書込処理が成功していた場合、第2決済処理部60aは、第1決済サーバ装置5Aへ決済処理の完了を通知する。   The second settlement processing unit 60a of the second settlement server device 5B that has received the response from the first settlement server device 5A determines whether or not the information writing of the IC card 7 has succeeded from the received response. FIG. 10 shows a case where the writing process to the IC card 7 is successful. When the writing process has failed, the second settlement processing unit 60a may repeatedly transmit the writing request to the first settlement server apparatus 5A until the writing process is successful. When the writing process is successful, the second settlement processing unit 60a notifies the completion of the settlement process to the first settlement server apparatus 5A.

第2決済サーバ装置5Bからの決済完了を通知された第1決済サーバ装置5Aの第1決済処理部50aは、記憶部51の決済履歴情報51aの対応する決済状態を決済成立に変更する。また第1決済処理部50aは、決済処理が完了した旨の通知をユーザ端末装置1へ送信する。第1決済サーバ装置5Aからの完了通知を受信したユーザ端末装置1の決済仲介部22は、非接触通信部16によるICカード7との非接触通信を終了し、完了通知を受信した旨の応答を第1決済サーバ装置5Aへ送信する。ユーザ端末装置1からの応答を受信した第1決済サーバ装置5Aの第1決済処理部50aは、決済処理の完了の通知を受信した旨の応答を第2決済サーバ装置5Bへ与える。第1決済サーバ装置5Aからの応答により、第2決済サーバ装置5Bの第2決済処理部60aは、決済処理を終了する。   The first settlement processing unit 50a of the first settlement server device 5A notified of the completion of settlement from the second settlement server device 5B changes the corresponding settlement state of the settlement history information 51a of the storage unit 51 to settlement successful. In addition, the first settlement processing unit 50a transmits a notification that the settlement processing is completed to the user terminal device 1. The payment intermediary unit 22 of the user terminal device 1 that has received the completion notification from the first payment server device 5A ends the non-contact communication with the IC card 7 by the non-contact communication unit 16 and a response that the completion notification has been received. Is transmitted to the first settlement server device 5A. The first settlement processing unit 50a of the first settlement server device 5A that has received the response from the user terminal device 1 provides the second settlement server device 5B with a response that the notification of completion of the settlement process has been received. In response to the response from the first settlement server device 5A, the second settlement processing unit 60a of the second settlement server device 5B ends the settlement process.

またユーザ端末装置1から決済処理の完了の通知を受信した旨の応答を受信した第1決済サーバ装置5Aの第1決済処理部50aは、決済処理の結果(本例では決済成功)を情報として含む決済結果を生成し、生成した決済結果をユーザ端末装置1へ送信する。なお決済結果に含まれる情報は、暗号処理部50bにより暗号化される。なお、例えばICカード7の残高が不足しているなどにより決済処理を正常に行うことができなかった場合、第1決済サーバ装置5Aは、決済失敗の結果を送信する。また例えばICカード7からの応答が得られずにタイムアウトした場合などには、第1決済サーバ装置5Aは、処理未了の結果を送信する。   Further, the first settlement processing unit 50a of the first settlement server device 5A that has received the response that the notification of completion of the settlement process has been received from the user terminal device 1 uses the result of the settlement process (successful settlement in this example) as information. The settlement result including the request is generated, and the generated settlement result is transmitted to the user terminal device 1. Information included in the settlement result is encrypted by the encryption processing unit 50b. Note that, for example, when the payment process cannot be performed normally due to an insufficient balance of the IC card 7, the first payment server apparatus 5A transmits a result of the payment failure. For example, when a time-out occurs because a response from the IC card 7 is not obtained, the first settlement server device 5A transmits a result of incomplete processing.

第1決済サーバ装置5Aからの決済結果を受信したユーザ端末装置1では、決済結果中継部23が受信した決済結果を通信部15にて販売サーバ装置3へ送信する。ユーザ端末装置1からの決済結果を受信した販売サーバ装置3は、受信した決済結果に含まれる情報を暗号処理部43にて復号する。販売サーバ装置3の販売処理部41は、復号した情報に基づいて記憶部31の販売履歴情報31aを決済結果を決済完了、決済失敗又は処理未了に更新する。決済結果が決済成功である場合、販売処理部41は、商品販売の処理を次の過程へ進める。例えば販売処理部41は、商品がデジタルコンテンツである場合、このデジタルコンテンツのダウンロードを許可する。販売処理部41は、販売処理を行った後、販売結果をユーザ端末装置1へ送信する。販売サーバ装置3からの販売結果をユーザ端末装置1が受信することにより、本実施の形態に係る決済システムによる商品の販売及び決済の処理が終了する。   In the user terminal device 1 that has received the settlement result from the first settlement server device 5 </ b> A, the settlement result received by the settlement result relay unit 23 is transmitted to the sales server device 3 through the communication unit 15. The sales server device 3 that has received the settlement result from the user terminal device 1 decrypts the information included in the received settlement result in the encryption processing unit 43. Based on the decrypted information, the sales processing unit 41 of the sales server device 3 updates the sales history information 31a in the storage unit 31 with the settlement result as a settlement completion, a settlement failure, or a processing incomplete. If the settlement result is a successful settlement, the sales processing unit 41 advances the product sales process to the next process. For example, when the product is digital content, the sales processing unit 41 permits downloading of the digital content. After performing the sales process, the sales processing unit 41 transmits the sales result to the user terminal device 1. When the user terminal device 1 receives the sales result from the sales server device 3, the product sales and payment processing by the payment system according to the present embodiment is completed.

図11は、販売サーバ装置3が行う販売処理の手順を示すフローチャートである。なお本フローチャートでは、ユーザ端末装置1との間のログイン処理及び商品リストの送信処理等は説明を省略する。販売サーバ装置3の処理部30の販売処理部41は、通信部33にてユーザ端末装置1からの購入要求を受信したか否かを判定する(ステップS1)。購入要求を受信していない場合(S1:NO)、販売処理部41は、購入要求を受信するまで待機する。購入要求を受信した場合(S1:YES)、処理部30のID生成部42がトランザクションIDを生成する(ステップS2)。販売処理部41は、記憶部31の販売履歴情報31aに、ステップS2にて生成したトランザクションIDに関する項目を追加する(ステップS3)。販売処理部41は、受信した販売要求に係る商品代金の決済要求を生成する(ステップS4)。処理部30の暗号処理部43は、生成された決済要求に含まれる情報を暗号化する(ステップS5)。販売処理部41は、暗号化された決済要求を通信部33にてユーザ端末装置1へ送信する(ステップS6)。   FIG. 11 is a flowchart showing the procedure of the sales process performed by the sales server device 3. In the present flowchart, description of login processing with the user terminal device 1, transmission processing of a product list, and the like is omitted. The sales processing unit 41 of the processing unit 30 of the sales server device 3 determines whether or not the communication unit 33 has received a purchase request from the user terminal device 1 (step S1). If a purchase request has not been received (S1: NO), the sales processing unit 41 waits until a purchase request is received. When the purchase request is received (S1: YES), the ID generation unit 42 of the processing unit 30 generates a transaction ID (step S2). The sales processing unit 41 adds an item related to the transaction ID generated in step S2 to the sales history information 31a in the storage unit 31 (step S3). The sales processing unit 41 generates a settlement request for the commodity price related to the received sales request (step S4). The encryption processing unit 43 of the processing unit 30 encrypts information included in the generated payment request (step S5). The sales processing unit 41 transmits the encrypted settlement request to the user terminal device 1 through the communication unit 33 (step S6).

その後、販売処理部41は、通信部33にてユーザ端末装置1から決済結果を受信したか否かを判定する(ステップS7)。決済結果を受信していない場合(S7:NO)、販売処理部41は、決済結果を受信するまで待機する。決済結果を受信した場合(S7:YES)、暗号処理部43は、受信した決済結果を復号する(ステップS8)。販売処理部41は、復号された情報に基づいて記憶部31の販売履歴情報31aの決済結果などの情報を更新する(ステップS9)。販売処理部41は、決済処理の結果が決済成功であるか否かを判定する(ステップS10)。決済処理が成功である場合(S10:YES)、販売処理部41は、購入要求された商品に係る販売処理を行い(ステップS11)、販売結果を通信部33にてユーザ端末装置1へ送信し(ステップS12)、処理を終了する。決済処理が成功でない場合(S10:NO)、販売処理部41は、販売処理を行うことなく、販売処理に成功しなかった旨の販売結果をユーザ端末装置1へ送信し(ステップS12)、処理を終了する。   Thereafter, the sales processing unit 41 determines whether or not the settlement result is received from the user terminal device 1 by the communication unit 33 (step S7). When the settlement result has not been received (S7: NO), the sales processing unit 41 waits until the settlement result is received. When the settlement result is received (S7: YES), the encryption processing unit 43 decrypts the received settlement result (step S8). The sales processing unit 41 updates information such as the settlement result of the sales history information 31a in the storage unit 31 based on the decrypted information (step S9). The sales processing unit 41 determines whether or not the result of the payment process is a successful payment (step S10). If the payment process is successful (S10: YES), the sales processing unit 41 performs a sales process for the product requested for purchase (step S11), and transmits the sales result to the user terminal device 1 through the communication unit 33. (Step S12), the process ends. If the settlement process is not successful (S10: NO), the sales processing unit 41 transmits the sales result indicating that the sales process was not successful to the user terminal device 1 without performing the sales process (step S12). Exit.

図12及び図13は、ユーザ端末装置1が行う中継処理の手順を示すフローチャートである。ユーザ端末装置1の処理部10では、操作部14に対する商品購入の操作を操作受付部25が受け付け、受け付けた購入操作に応じて購入処理部24が商品の購入要求を通信部15にて販売サーバ装置3へ送信する(ステップS21)。その後、処理部10は、通信部15にて販売サーバ装置3からの決済要求を受信したか否かを判定する(ステップS22)。販売サーバ装置3から決済要求を受信した場合(S22:YES)、処理部10の決済要求中継部21は、受信した決済要求を通信部15にて第1決済サーバ装置5Aへ送信し(ステップS23)、ステップS22へ処理を戻す。   12 and 13 are flowcharts illustrating the procedure of the relay process performed by the user terminal device 1. In the processing unit 10 of the user terminal device 1, the operation receiving unit 25 receives an operation for purchasing a product for the operation unit 14, and the purchase processing unit 24 sends a purchase request for the product to the sales server 15 in response to the received purchase operation. It transmits to the apparatus 3 (step S21). Thereafter, the processing unit 10 determines whether or not the communication unit 15 has received a settlement request from the sales server device 3 (step S22). When a settlement request is received from the sales server device 3 (S22: YES), the settlement request relay unit 21 of the processing unit 10 transmits the received settlement request to the first settlement server device 5A via the communication unit 15 (step S23). ), The process returns to step S22.

決済要求を受信していない場合(S22:NO)、処理部10は、第1決済サーバ装置5AからICカード7に対する処理のコマンドを受信したか否かを判定する(ステップS24)。コマンドを受信した場合(S24:YES)、処理部10の決済仲介部22は、受信したコマンドを非接触通信部16にてICカード7へ送信する(ステップS25)。決済仲介部22は、非接触通信部16にてICカード7からの応答を受信したか否かを判定する(ステップS26)。応答を受信していない場合(S26:NO)、決済仲介部22は、応答を受信するまで待機する。応答を受信した場合(S26:YES)、決済仲介部22は、受信した応答を通信部15にて第1決済サーバ装置5Aへ送信し(ステップS27)、ステップS22へ処理を戻す。   When the payment request has not been received (S22: NO), the processing unit 10 determines whether or not a processing command for the IC card 7 has been received from the first payment server device 5A (step S24). When the command is received (S24: YES), the settlement intermediary unit 22 of the processing unit 10 transmits the received command to the IC card 7 by the non-contact communication unit 16 (step S25). The settlement intermediary unit 22 determines whether or not the response from the IC card 7 is received by the non-contact communication unit 16 (step S26). If no response has been received (S26: NO), the settlement intermediary unit 22 waits until a response is received. When the response is received (S26: YES), the settlement intermediary unit 22 transmits the received response to the first settlement server device 5A through the communication unit 15 (step S27), and returns the process to step S22.

コマンドを受信していない場合(S24:NO)、処理部10は、第1決済サーバ装置5Aから完了通知を受信したか否かを判定する(ステップS28)。完了通知を受信した場合(S28:YES)、処理部10は、第1決済サーバ装置5Aへ応答を送信し(ステップS29)、ステップS22へ処理を戻す。完了通知を受信していない場合(S28:NO)、処理部10は、第1決済サーバ装置5Aから決済結果を受信したか否かを判定する(ステップS30)。決済結果を受信した場合(S30:YES)、処理部10の決済結果中継部23は、受信した決済結果を通信部15にて販売サーバ装置3へ送信し(ステップS31)、ステップS22へ処理を戻す。決済結果を受信していない場合(S30:NO)、処理部10は、販売サーバ装置3から販売結果を受信したか否かを判定する(ステップS32)。販売結果を受信していない場合(S32:NO)、処理部10は、ステップS22へ処理を戻す。販売結果を受信した場合(S32:YES)、処理部10は、処理を終了する。   When the command has not been received (S24: NO), the processing unit 10 determines whether or not a completion notification has been received from the first settlement server device 5A (step S28). When the completion notification is received (S28: YES), the processing unit 10 transmits a response to the first settlement server device 5A (step S29), and returns the process to step S22. When the completion notification has not been received (S28: NO), the processing unit 10 determines whether or not a settlement result has been received from the first settlement server device 5A (step S30). When the settlement result is received (S30: YES), the settlement result relay unit 23 of the processing unit 10 transmits the received settlement result to the sales server device 3 through the communication unit 15 (step S31), and the process proceeds to step S22. return. When the settlement result has not been received (S30: NO), the processing unit 10 determines whether or not the sales result has been received from the sales server device 3 (step S32). When the sales result has not been received (S32: NO), the processing unit 10 returns the process to step S22. When the sales result is received (S32: YES), the processing unit 10 ends the process.

図14及び図15は、第1決済サーバ装置5Aが行う決済処理の手順を示すフローチャートである。第1決済サーバ装置5Aの処理部50の第1決済処理部50aは、通信部53にてユーザ端末装置1からの決済要求を受信したか否かを判定する(ステップS41)。決済要求を受信していない場合(S41:NO)、第1決済処理部50aは、決済要求を受信するまで待機する。決済要求を受信した場合(S41:YES)、処理部50の暗号処理部50bは、受信した決済要求に含まれる情報を復号する(ステップS42)。第1決済処理部50aは、復号された情報に基づいて、記憶部51の決済履歴情報51aに新たな情報を追加する(ステップS43)。また第1決済処理部50aは、復号された情報に基づいて、第2決済サーバ装置5Bに対する決済依頼を作成し、通信部53にて決済依頼を第2決済サーバ装置5Bへ送信する(ステップS44)。   14 and 15 are flowcharts showing the procedure of the payment process performed by the first payment server device 5A. The first payment processing unit 50a of the processing unit 50 of the first payment server device 5A determines whether or not the communication unit 53 has received a payment request from the user terminal device 1 (step S41). When the payment request has not been received (S41: NO), the first payment processing unit 50a stands by until the payment request is received. When the payment request is received (S41: YES), the encryption processing unit 50b of the processing unit 50 decrypts the information included in the received payment request (step S42). The first settlement processing unit 50a adds new information to the settlement history information 51a in the storage unit 51 based on the decrypted information (Step S43). The first settlement processing unit 50a creates a settlement request for the second settlement server device 5B based on the decrypted information, and transmits the settlement request to the second settlement server device 5B through the communication unit 53 (step S44). ).

第1決済処理部50aは、通信部53にて第2決済サーバ装置5BからICカード7に対する読み出し又は書き込み等の処理要求を受信したか否かを判定する(ステップS45)。ICカード7に対する要求を受信した場合(S45:YES)、第1決済処理部50aは、受信した要求に基づいて、記憶部51の決済履歴情報51aの決済状態、カードID又は更新ID等の情報を必要に応じて更新する(ステップS46)。第1決済処理部50aは、受信した要求に応じたICカード7に対するコマンドを作成して通信部53にてユーザ端末装置1へ送信する(ステップS47)。第1決済処理部50aは、送信したコマンドに対する応答を通信部53にてユーザ端末装置1から受信したか否かを判定する(ステップS48)。応答を受信していない場合(S48:NO)、第1決済処理部50aは、応答を受信するまで待機する。応答を受信した場合(S48:YES)、第1決済処理部50aは、ユーザ端末装置1から受信した応答を通信部53にて第2決済サーバ装置5Bへ送信し(ステップS49)、ステップS45へ処理を戻す。   The first settlement processing unit 50a determines whether or not the communication unit 53 has received a processing request such as reading or writing with respect to the IC card 7 from the second settlement server device 5B (step S45). When the request for the IC card 7 is received (S45: YES), the first settlement processing unit 50a, based on the received request, information such as the settlement status, the card ID or the update ID of the settlement history information 51a in the storage unit 51 Is updated as necessary (step S46). The first settlement processing unit 50a creates a command for the IC card 7 according to the received request and transmits the command to the user terminal device 1 by the communication unit 53 (step S47). The first settlement processing unit 50a determines whether or not a response to the transmitted command has been received from the user terminal device 1 by the communication unit 53 (step S48). If no response has been received (S48: NO), the first settlement processing unit 50a waits until a response is received. When the response is received (S48: YES), the first settlement processing unit 50a transmits the response received from the user terminal device 1 to the second settlement server device 5B through the communication unit 53 (step S49), and proceeds to step S45. Return processing.

ICカード7に対する処理の要求を受信していない場合(S45:NO)、第1決済処理部50aは、通信部53にて第2決済サーバ装置5Bから決済完了通知を受信したか否かを判定する(ステップS50)。決済完了通知を受信していない場合(S50:NO)、第1決済処理部50aは、ステップS45へ処理を戻す。決済完了通知を受信した場合(S50:YES)、第1決済処理部50aは、受信した決済完了通知に基づいて、記憶部51の決済履歴情報51aの決済状態を更新する(ステップS51)。第1決済処理部50aは、通信部53にてユーザ端末装置1へ決済処理の完了通知を送信する(ステップS52)。   When the processing request for the IC card 7 has not been received (S45: NO), the first settlement processing unit 50a determines whether or not the communication unit 53 has received a settlement completion notification from the second settlement server device 5B. (Step S50). When the payment completion notification has not been received (S50: NO), the first payment processing unit 50a returns the process to step S45. When the payment completion notification is received (S50: YES), the first payment processing unit 50a updates the payment state of the payment history information 51a in the storage unit 51 based on the received payment completion notification (step S51). The first settlement processing unit 50a transmits a settlement processing completion notification to the user terminal device 1 through the communication unit 53 (step S52).

第1決済処理部50aは、完了通知に対するユーザ端末装置1からの応答を通信部53にて受信したか否かを判定する(ステップS53)。応答を受信していない場合(S53:NO)、第1決済処理部50aは、応答を受信するまで待機する。応答を受信した場合(S53:YES)、第1決済処理部50aは、通信部53にて第2決済サーバ装置5Bへ決済完了通知に対する応答を送信する(ステップS54)。また第1決済処理部50aは、販売サーバ装置3へ送信するための決済結果を作成する(ステップS55)。暗号処理部50bは、作成された決済結果に含まれる情報を暗号化する(ステップS56)。第1決済処理部50aは、暗号化された決済結果を通信部53にてユーザ端末装置1へ送信し(ステップS57)、処理を終了する。   The first settlement processing unit 50a determines whether or not the communication unit 53 has received a response from the user terminal device 1 to the completion notification (step S53). If no response has been received (S53: NO), the first settlement processing unit 50a waits until a response is received. When the response is received (S53: YES), the first settlement processing unit 50a transmits a response to the settlement completion notification to the second settlement server device 5B through the communication unit 53 (step S54). The first settlement processing unit 50a creates a settlement result for transmission to the sales server device 3 (step S55). The encryption processing unit 50b encrypts information included in the created settlement result (Step S56). The first settlement processing unit 50a transmits the encrypted settlement result to the user terminal device 1 through the communication unit 53 (step S57), and ends the process.

図16及び図17は、第2決済サーバ装置5Bが行う決済処理の手順を示すフローチャートである。第2決済サーバ装置5Bの処理部60の第2決済処理部60aは、通信部63にて第1決済サーバ装置5Aからの決済依頼を受信したか否かを判定する(ステップS61)。決済依頼を受信していない場合(S61:NO)、第2決済処理部60aは、決済依頼を受信するまで待機する。決済依頼を受信した場合(S61:YES)、処理部60のID生成部60bは、更新IDを生成する(ステップS62)。   16 and 17 are flowcharts showing the procedure of the payment process performed by the second payment server device 5B. The second settlement processing unit 60a of the processing unit 60 of the second settlement server device 5B determines whether or not the communication unit 63 has received a settlement request from the first settlement server device 5A (step S61). When the settlement request has not been received (S61: NO), the second settlement processing unit 60a stands by until the settlement request is received. When the settlement request is received (S61: YES), the ID generation unit 60b of the processing unit 60 generates an update ID (step S62).

第2決済処理部60aは、生成した更新IDを付して、ICカード7からの情報の読出要求を通信部63にて第1決済サーバ装置5Aへ送信する(ステップS63)。第2決済処理部60aは、読出要求に対する第1決済サーバ装置5Aからの応答を通信部63にて受信したか否かを判定する(ステップS64)。応答を受信していない場合(S64:NO)、第2決済処理部60aは、応答を受信するまで待機する。応答を受信した場合(S64:YES)、第2決済処理部60aは、ICカード7からの情報の読出により、ICカード7の残高を更新するために必要な情報がそろったか否かを判定する(ステップS65)。必要な情報がそろっていない場合(S65:NO)、第2決済処理部60aは、ステップS63へ処理を戻し、ICカード7からの情報の読み出しを繰り返し行う。   The second settlement processing unit 60a attaches the generated update ID and transmits a request for reading information from the IC card 7 to the first settlement server device 5A via the communication unit 63 (step S63). The second settlement processing unit 60a determines whether or not the communication unit 63 has received a response from the first settlement server device 5A to the read request (step S64). If no response has been received (S64: NO), the second settlement processing unit 60a waits until a response is received. When the response is received (S64: YES), the second settlement processing unit 60a determines whether or not information necessary for updating the balance of the IC card 7 has been obtained by reading the information from the IC card 7. (Step S65). If the necessary information is not complete (S65: NO), the second settlement processing unit 60a returns the process to step S63, and repeatedly reads the information from the IC card 7.

必要な情報がそろった場合(S65:YES)、第2決済処理部60aは、ICカード7に対する新たな残高情報の書き込みを行うための書込要求を通信部63にて第1決済サーバ装置5Aへ送信する(ステップS66)。第2決済処理部60aは、書込要求に対する第1決済サーバ装置5Aからの応答を通信部63にて受信したか否かを判定する(ステップS67)。応答を受信していない場合(S67:NO)、第2決済処理部60aは、応答を受信するまで待機する。応答を受信した場合(S67:YES)、第2決済処理部60aは、受信した応答に基づいてICカード7に対する書込が成功したか否かを判定する(ステップS68)。書込に成功していない場合(S68:NO)、第2決済処理部60aは、ステップS66へ処理を戻し、ICカード7に対する書き込みを繰り返す。   When necessary information is collected (S65: YES), the second settlement processing unit 60a sends a write request for writing new balance information to the IC card 7 in the first settlement server device 5A via the communication unit 63. (Step S66). The second settlement processing unit 60a determines whether or not the communication unit 63 has received a response from the first settlement server device 5A with respect to the write request (step S67). When the response is not received (S67: NO), the second settlement processing unit 60a waits until the response is received. When the response is received (S67: YES), the second settlement processing unit 60a determines whether or not the writing to the IC card 7 is successful based on the received response (step S68). If the writing is not successful (S68: NO), the second settlement processing unit 60a returns the process to step S66 and repeats the writing to the IC card 7.

ICカード7に対する書込に成功した場合(S68:YES)、第2決済処理部60aは、決済処理の完了を知らせる決済完了通知を通信部63にて第1決済サーバ装置5Aへ送信する(ステップS69)。第2決済処理部60aは、決済完了通知に対する第1決済サーバ装置5Aからの応答を通信部63にて受信したか否かを判定する(ステップS70)。応答を受信していない場合(S70:NO)、第2決済処理部60aは、応答を受信するまで待機する。応答を受信した場合(S70:YES)、第2決済処理部60aは、処理を終了する。   When the writing to the IC card 7 is successful (S68: YES), the second settlement processing unit 60a transmits a settlement completion notification notifying the completion of the settlement process to the first settlement server device 5A via the communication unit 63 (Step S68). S69). The second settlement processing unit 60a determines whether or not the communication unit 63 has received a response from the first settlement server device 5A to the settlement completion notification (step S70). If no response has been received (S70: NO), the second settlement processing unit 60a waits until a response is received. When the response is received (S70: YES), the second settlement processing unit 60a ends the process.

<通信不具合からの復帰処理>
本実施の形態に係る決済システムは、ネットワーク99を介した販売サーバ装置3及びユーザ端末装置1の通信、ユーザ端末装置1及び第1決済サーバ装置5Aの通信、第1決済サーバ装置5A及び第2決済サーバ装置5Bの通信、又は、非接触通信によるユーザ端末装置1及びICカード7の通信に不具合が生じる可能性がある。このような通信の不具合が発生した場合、上述の決済処理などが中断され、各装置での処理が異常終了する可能性がある。これにより例えばICカード7の残高が減少しているにも関わらず、商品の販売処理が完了していないなどの状況が発生し得るため、本実施の形態に係る決済システムは、不具合により中断された処理を復帰させる処理を行う。
<Return processing from communication failure>
The payment system according to the present embodiment includes communication between the sales server device 3 and the user terminal device 1 via the network 99, communication between the user terminal device 1 and the first payment server device 5A, and the first payment server device 5A and the second. There may be a problem in communication between the settlement server device 5B or communication between the user terminal device 1 and the IC card 7 by non-contact communication. When such a communication failure occurs, the above-described payment processing or the like is interrupted, and the processing in each device may end abnormally. As a result, for example, although the balance of the IC card 7 is decreasing, a situation in which the merchandise sales process is not completed may occur, so the settlement system according to the present embodiment is interrupted due to a problem. Perform processing to restore the processing.

例えば通信の不具合により販売処理及び決済処理が中断された場合、販売サーバ装置3の記憶部31に記憶された販売履歴情報31aでは、中断された処理に関して、決済結果が決済失敗又は未受信となり、販売処理状況が未完了となる。そこで例えば販売サーバ装置3の販売処理部41は、ユーザがユーザ端末装置1を利用してこのシステムへのログイン処理を行った場合に、ユーザIDに基づいて販売履歴情報31aを検索し、販売処理状況が未完了の処理の有無を判断する。未完了の処理が存在する場合、販売処理部41は、通信部33にてユーザ端末装置1へ未完了の処理が存在する旨を通知する。この通知を通信部15にて受信したユーザ端末装置1の購入処理部24は、表示部13に未完了の処理が存在する旨のメッセージを表示する。また操作受付部25は、この処理を再開するか否かの選択を操作部14にて受け付ける。ユーザ端末装置1によるメッセージの表示は、少なくとも次の決済処理が開始されるまでの間に行われる。ユーザ端末装置1にてユーザにより中断された処理を再開する選択がなされた場合、本実施の形態に係る決済システムの復帰処理が開始される。   For example, when the sales process and the settlement process are interrupted due to a communication failure, in the sales history information 31a stored in the storage unit 31 of the sales server device 3, the settlement result regarding the interrupted process becomes a settlement failure or unreceived, The sales processing status is incomplete. Therefore, for example, the sales processing unit 41 of the sales server device 3 searches the sales history information 31a based on the user ID when the user performs a login process to the system using the user terminal device 1, and performs the sales process. It is determined whether there is a process whose status is incomplete. When there is an incomplete process, the sales processing unit 41 notifies the user terminal device 1 that there is an incomplete process through the communication unit 33. The purchase processing unit 24 of the user terminal device 1 that has received this notification by the communication unit 15 displays a message indicating that there is an incomplete process on the display unit 13. In addition, the operation accepting unit 25 accepts a selection as to whether or not to resume this process at the operation unit 14. The message display by the user terminal device 1 is performed at least before the next settlement process is started. When the user terminal device 1 is selected to resume the process interrupted by the user, the return process of the payment system according to the present embodiment is started.

復帰処理において販売サーバ装置3の処理部30の不具合確認部44は、まず不具合が決済処理の処理過程のいずれの箇所で発生したかを確認する処理を行う。本実施の形態においては、不具合確認部44は決済処理が以下の4つのいずれの状態で中断しているかを確認する。
(1)販売サーバ装置3からの決済要求が第1決済サーバ装置5Aに届いていない状態(未要求)。
(2)決済要求は届いたが、ICカード7に対する書込コマンドが第1決済サーバ装置5Aからユーザ端末装置1へ送信されていない状態(決済非成立)。
(3)書込コマンドは送信されたが、このコマンドに対する応答がユーザ端末装置1から第1決済サーバ装置5Aへ届いていない状態(処理未了)。
(4)ICカード7の残高は更新されているが、決済結果が販売サーバ装置3へ届いていない状態(決済完了)。
In the return process, the defect confirmation unit 44 of the processing unit 30 of the sales server device 3 first performs a process of confirming in which part of the processing process of the settlement process the defect has occurred. In the present embodiment, the defect confirmation unit 44 confirms in which of the following four states the settlement process is interrupted.
(1) A state where the payment request from the sales server device 3 has not reached the first payment server device 5A (unrequested).
(2) A state in which a payment request has arrived but a write command for the IC card 7 has not been transmitted from the first payment server device 5A to the user terminal device 1 (payment is not established).
(3) Although the write command has been transmitted, a response to this command has not arrived from the user terminal device 1 to the first settlement server device 5A (processing has not been completed).
(4) The balance of the IC card 7 has been updated, but the settlement result has not reached the sales server device 3 (settlement completion).

販売サーバ装置3の不具合確認部44は、中断された処理に係るトランザクションIDを指定して、ユーザ端末装置1を介して第1決済サーバ装置5Aへ決済処理の状態を確認する要求を送信する。この要求に応じて第1決済サーバ装置5Aの処理部30の不具合判定部50cは、記憶部51に記憶した決済履歴情報51aから指定されたトランザクションIDに対応する決済状態を取得する。指定されたトランザクションIDに対応する情報が決済履歴情報51aに記憶されていない場合、不具合判定部50cは、上記(1)の状態であると判定することができる。決済状態が決済非成立である場合、不具合判定部50cは、上記(2)の状態であると判定することができる。決済状態が処理未了である場合、不具合判定部50cは、上記(3)の状態であると判定することができる。決済状態が決済成立である場合、不具合判定部50cは、上記(4)の状態であると判定することができる。不具合判定部50cは、これらの判定結果を、ユーザ端末装置1を介して販売サーバ装置3へ送信する。   The defect confirmation unit 44 of the sales server device 3 designates the transaction ID related to the suspended processing, and transmits a request for confirming the state of the settlement processing to the first settlement server device 5A via the user terminal device 1. In response to this request, the defect determination unit 50c of the processing unit 30 of the first settlement server device 5A acquires the settlement state corresponding to the transaction ID specified from the settlement history information 51a stored in the storage unit 51. When the information corresponding to the designated transaction ID is not stored in the settlement history information 51a, the defect determination unit 50c can determine that the state is (1). When the settlement state is not settled, the failure determination unit 50c can determine that the state is the state (2). When the payment state is incomplete, the defect determination unit 50c can determine that the state is the state (3). When the payment state is payment establishment, the defect determination unit 50c can determine that the state is the state (4). The defect determination unit 50 c transmits these determination results to the sales server device 3 via the user terminal device 1.

上記(1)及び(2)の状態である場合、販売サーバ装置3の処理部30は、販売処理が未完了の商品に関する決済要求を再送信することによって、決済処理を再開させることができる。上記(4)の場合、ICカード7から商品代金の減額は完了しており、決済処理は完了しているため、販売サーバ装置3の処理部30は、決済処理が完了したものとして販売処理を再開することができる。これらに対して上記(3)の場合、ICカード7に対する情報の書き込みが完了しているか否かが不明である。このため販売サーバ装置3は、ICカード7の記憶部73に記憶された残高履歴情報73bの照会を行う。   In the above states (1) and (2), the processing unit 30 of the sales server device 3 can restart the payment process by retransmitting the payment request regarding the product for which the sales process has not been completed. In the case of (4) above, since the reduction of the product price from the IC card 7 has been completed and the payment process has been completed, the processing unit 30 of the sales server device 3 performs the sales process on the assumption that the payment process has been completed. You can resume. On the other hand, in the case of (3) above, it is unknown whether or not the writing of information to the IC card 7 has been completed. Therefore, the sales server device 3 inquires about the balance history information 73b stored in the storage unit 73 of the IC card 7.

この場合に販売サーバ装置3の不具合確認部44は、ユーザ端末装置1を介して第1決済サーバ装置5Aへ、トランザクションIDを指定してICカード7の残高履歴情報の照会を要求する。この要求に応じて第1決済サーバ装置5Aの不具合判定部50cは、第2決済サーバ装置5Bに対してICカード7の残高履歴の照会を行う要求を与える。なおこのときに第1決済サーバ装置5AがICカード7から残高履歴情報73bを読み出す処理を行う構成とすることも可能であるが、本実施の形態に係る決済システムでは、ICカード7に対する情報の読出及び書込を第2決済サーバ装置5Bが行う構成とし、第1決済サーバ装置5Aが第2決済サーバ装置5Bへ残高履歴の照会を要求する構成としてある。   In this case, the defect confirmation unit 44 of the sales server device 3 requests the first settlement server device 5A via the user terminal device 1 to inquire the balance history information of the IC card 7 by specifying the transaction ID. In response to this request, the defect determination unit 50c of the first settlement server device 5A gives a request for inquiring the balance history of the IC card 7 to the second settlement server device 5B. At this time, the first settlement server device 5A may be configured to perform processing for reading the balance history information 73b from the IC card 7. However, in the settlement system according to the present embodiment, information on the IC card 7 is stored. The second settlement server device 5B performs the reading and writing, and the first settlement server device 5A requests the second settlement server device 5B to check the balance history.

第1決済サーバ装置5Aからの要求に応じて、第2決済サーバ装置5Bの処理部60の履歴照会部60cは、残高履歴情報73bの読出要求を第1決済サーバ装置5A及びユーザ端末装置1を介してICカード7へ与える。読出要求に応じてICカード7から読み出された情報は、ユーザ端末装置1及び第1決済サーバ装置5Aを介して第2決済サーバ装置5Bへ与えられる。なお本実施の形態では、ICカード7から読み出された情報を第1決済サーバ装置5Aが直接的に扱うことができない構成としてある。第2決済サーバ装置5Bの履歴照会部60cは、ICカード7から読み出した残高履歴情報73bを第1決済サーバ装置5Aへ送信する。なお本実施の形態において履歴照会部60cは、ICカード7から残高履歴情報73bの全履歴を読み出して第2決済サーバ装置5Bへ送信する。   In response to a request from the first settlement server device 5A, the history inquiry unit 60c of the processing unit 60 of the second settlement server device 5B sends a request for reading the balance history information 73b to the first settlement server device 5A and the user terminal device 1. To the IC card 7. Information read from the IC card 7 in response to the read request is given to the second settlement server device 5B via the user terminal device 1 and the first settlement server device 5A. In the present embodiment, the information read from the IC card 7 cannot be directly handled by the first settlement server device 5A. The history inquiry unit 60c of the second settlement server device 5B transmits the balance history information 73b read from the IC card 7 to the first settlement server device 5A. In the present embodiment, the history inquiry unit 60c reads the entire history of the balance history information 73b from the IC card 7 and transmits it to the second settlement server device 5B.

第2決済サーバ装置5Bから残高履歴情報73bを受信した第1決済サーバ装置5Aの不具合判定部50cは、記憶部51の決済履歴情報51aからトランザクションIDに対応する更新IDを取得し、この更新IDが付された履歴が残高履歴情報73bに存在するか否かを判定する。更新IDが一致する履歴が存在する場合、不具合判定部50cは、ICカード7に対する書き込みが完了していると判定する。更新IDが一致する履歴が存在しない場合、不具合判定部50cは、ICカード7に対する書き込みが完了していないと判定する。不具合判定部50cは、この判定結果を、ユーザ端末装置1を介して販売サーバ装置3へ送信する。   The failure determination unit 50c of the first settlement server device 5A that has received the balance history information 73b from the second settlement server device 5B acquires the update ID corresponding to the transaction ID from the settlement history information 51a of the storage unit 51, and this update ID It is determined whether or not a history marked with exists in the balance history information 73b. If there is a history that matches the update ID, the defect determination unit 50c determines that writing to the IC card 7 has been completed. If there is no history that matches the update ID, the defect determination unit 50c determines that writing to the IC card 7 has not been completed. The defect determination unit 50 c transmits the determination result to the sales server device 3 via the user terminal device 1.

販売サーバ装置3の処理部30は、ICカード7の履歴照会の結果から、ICカード7に対する書き込みが完了していない場合、販売処理が未完了の商品に関する決済要求を再送信することによって、決済処理を再開させることができる。これは上記(1)及び(2)の場合と同様である。これに対してICカード7に対する書き込みが完了している場合、販売サーバ装置3の処理部30は、決済処理が完了したものとして販売処理を再開することができる。これは上記(4)の場合と同様である。   When the writing to the IC card 7 is not completed from the result of the history inquiry of the IC card 7, the processing unit 30 of the sales server device 3 re-sends a settlement request regarding a product for which the sales process has not been completed. Processing can be resumed. This is the same as the cases (1) and (2) above. On the other hand, when the writing to the IC card 7 has been completed, the processing unit 30 of the sales server device 3 can resume the sales process on the assumption that the payment process has been completed. This is the same as in the case of (4) above.

図18は、本実施の形態に係る決済システムの不具合確認処理の一例を示す模式図である。例えば販売処理及び決済処理に不具合が生じた旨のメッセージがユーザ端末装置1の表示部13に表示された場合、ユーザは操作部14を操作して不具合が生じた処理の復帰を要求することができる。ユーザ端末装置1は、例えばユーザID及び中断された処理に付されたトランザクションID等の情報を含む復帰要求を、通信部15にて販売サーバ装置3へ送信する。   FIG. 18 is a schematic diagram illustrating an example of a failure confirmation process of the payment system according to the present embodiment. For example, when a message indicating that a problem has occurred in the sales process and the payment process is displayed on the display unit 13 of the user terminal device 1, the user may operate the operation unit 14 to request a return of the process in which the problem has occurred. it can. The user terminal device 1 transmits a return request including information such as a user ID and a transaction ID attached to the interrupted process to the sales server device 3 via the communication unit 15.

ユーザ端末装置1からの復帰要求を通信部33にて受信した販売サーバ装置3の不具合確認部44は、復帰を要求された処理に付されたトランザクションIDを指定して、決済処理の中断状態を確認するための決済確認要求を作成し、通信部33にてユーザ端末装置1へ送信する。なお決済確認要求に含まれる情報は、暗号処理部43により暗号化してもよい。販売サーバ装置3から決済確認要求を通信部15にて受信したユーザ端末装置1の処理部10は、受信した決済確認要求を通信部15にて第1決済サーバ装置5Aへ送信する。   The failure confirmation unit 44 of the sales server device 3 that has received the return request from the user terminal device 1 by the communication unit 33 designates the transaction ID given to the process requested to return, and sets the suspension state of the settlement process. A settlement confirmation request for confirmation is created and transmitted to the user terminal device 1 by the communication unit 33. The information included in the payment confirmation request may be encrypted by the encryption processing unit 43. The processing unit 10 of the user terminal device 1 that has received the settlement confirmation request from the sales server device 3 through the communication unit 15 transmits the received settlement confirmation request to the first settlement server device 5A through the communication unit 15.

ユーザ端末装置1からの決済確認要求を受信した第1決済サーバ装置5Aの不具合判定部50cは、記憶部51の決済履歴情報51aを検索し、受信した決済確認要求に含まれるトランザクションID情報が記憶されているか否か、及び、記憶されていればその決済状態を判定する。これにより不具合判定部50cは、中断された処理の状態が(1)未要求、(2)決済非成立、(3)処理未了又は(4)決済成立のいずれであるかを判定することができる。不具合判定部50cは、この判定結果を不具合の確認結果としてユーザ端末装置1へ送信する。第1決済サーバ装置5Aから確認結果を受信したユーザ端末装置1の処理部10は、受信した確認結果を販売サーバ装置3へ送信する。   The failure determination unit 50c of the first settlement server device 5A that has received the settlement confirmation request from the user terminal device 1 searches the settlement history information 51a in the storage unit 51, and stores the transaction ID information included in the received settlement confirmation request. Whether or not it has been stored, and if it is stored, the settlement state is determined. Thereby, the malfunction determination unit 50c can determine whether the state of the interrupted process is (1) unrequested, (2) settlement unsuccessful, (3) process unfinished, or (4) settlement completed. it can. The defect determination unit 50c transmits this determination result to the user terminal device 1 as a defect confirmation result. The processing unit 10 of the user terminal device 1 that has received the confirmation result from the first settlement server device 5 </ b> A transmits the received confirmation result to the sales server device 3.

ユーザ端末装置1から確認結果を受信した販売サーバ装置3の不具合確認部44は、受信した確認結果に基づき、中断された決済処理をいずれの箇所から復帰させるかを判定する(図中の復帰判定1)。不具合確認部44は、確認結果が(1)未要求又は(2)決済非成立である場合、決済処理を最初から再開すべく決済要求を生成してユーザ端末装置1へ送信する。不具合確認部44は、確認結果が(4)決済成立である場合、決済処理は完了しているため商品の販売に係る処理から再開する。また確認結果が(3)処理未了である場合、不具合確認部44は、ICカード7の残高履歴情報73bを照会すべく、トランザクションIDを指定して履歴照会要求をユーザ端末装置1へ送信する。なお図18には、確認結果が(3)処理未了である場合を想定した処理の一例を図示してある。   The failure confirmation unit 44 of the sales server device 3 that has received the confirmation result from the user terminal device 1 determines from which location the suspended payment processing is to be restored based on the received confirmation result (return determination in the figure). 1). If the confirmation result is (1) unrequested or (2) settlement not established, the defect confirmation unit 44 generates a settlement request to resume the settlement process from the beginning and transmits it to the user terminal device 1. When the confirmation result is (4) settlement is established, the defect confirmation unit 44 resumes the processing related to the sale of the product because the settlement processing is completed. If the confirmation result is (3) processing incomplete, the defect confirmation unit 44 designates a transaction ID and transmits a history inquiry request to the user terminal device 1 to inquire the balance history information 73b of the IC card 7. . FIG. 18 shows an example of processing assuming that the confirmation result is (3) processing incomplete.

販売サーバ装置3からの履歴照会要求を受信したユーザ端末装置1は、受信した履歴照会要求を第1決済サーバ装置5Aへ送信する。ユーザ端末装置1からの履歴照会要求を受信した第1決済サーバ装置5Aの不具合判定部50cは、受信した履歴照会要求に含まれるトランザクションIDに対応するカードIDを記憶部51の決済履歴情報51aから取得する。不具合判定部50cは、取得したカードIDを指定した履歴照会依頼を第2決済サーバ装置5Bへ送信する。   The user terminal device 1 that has received the history inquiry request from the sales server device 3 transmits the received history inquiry request to the first settlement server device 5A. The failure determination unit 50c of the first settlement server device 5A that has received the history inquiry request from the user terminal device 1 obtains the card ID corresponding to the transaction ID included in the received history inquiry request from the settlement history information 51a of the storage unit 51. get. The defect determination unit 50c transmits a history inquiry request specifying the acquired card ID to the second settlement server device 5B.

第1決済サーバ装置5Aから履歴照会依頼を通信部63にて受信した第2決済サーバ装置5Bの履歴照会部60cは、指定されたカードIDのICカード7から残高履歴情報73bを読み出す処理が開始される。なお第2決済サーバ装置5BによるICカード7からの残高履歴情報73bの読み出しは、第2決済サーバ装置5B及びICカード7の間で複数回の情報交換を行うことにより実現されるが、図18ではこれを簡略化して1回の情報交換で残高履歴情報73bを読み出すものとして処理を示してある。第2決済サーバ装置5Bの履歴照会部60cは、ICカード7から残高履歴情報73bを読み出すための読出要求を第1決済サーバ装置5Aへ送信する。   The history inquiry unit 60c of the second settlement server device 5B that has received the history inquiry request from the first settlement server device 5A by the communication unit 63 starts processing to read the balance history information 73b from the IC card 7 of the designated card ID. Is done. The reading of the balance history information 73b from the IC card 7 by the second settlement server device 5B is realized by exchanging information a plurality of times between the second settlement server device 5B and the IC card 7. FIG. In this case, the processing is shown as a simplified example in which the balance history information 73b is read out by one information exchange. The history inquiry unit 60c of the second settlement server device 5B transmits a read request for reading the balance history information 73b from the IC card 7 to the first settlement server device 5A.

読出要求を与えられた第1決済サーバ装置5Aは、ICカード7から残高履歴情報73bを読み出すための読出コマンドを生成してユーザ端末装置1へ送信する。第1決済サーバ装置5Aから読出コマンドを受信したユーザ端末装置1の処理部10は、非接触通信部16にてICカード7との非接触通信を行い、ICカード7へ読出コマンドを送信する。処理部10は、読出コマンドに対してICカード7から得られた応答を第1決済サーバ装置5Aへ送信する。なおICカード7から得られる応答とは、残高履歴情報73bである。ユーザ端末装置1から応答を受信した第1決済サーバ装置5Aの不具合判定部50cは、受信した応答を第2決済サーバ装置5Bへ送信する。第1決済サーバ装置5Aからの応答を受信した第2決済サーバ装置5Bの履歴照会部60cは、受信した応答に含まれる残高履歴情報73bを取得する。履歴照会部60cは、取得した残高履歴情報73bを第1決済サーバ装置5Aへ送信する。   The first settlement server device 5A given the read request generates a read command for reading the balance history information 73b from the IC card 7 and transmits it to the user terminal device 1. The processing unit 10 of the user terminal device 1 that has received the read command from the first settlement server device 5A performs non-contact communication with the IC card 7 by the non-contact communication unit 16, and transmits the read command to the IC card 7. The processing unit 10 transmits a response obtained from the IC card 7 to the read command to the first settlement server device 5A. The response obtained from the IC card 7 is balance history information 73b. The failure determination unit 50c of the first settlement server device 5A that has received the response from the user terminal device 1 transmits the received response to the second settlement server device 5B. The history inquiry unit 60c of the second settlement server device 5B that has received the response from the first settlement server device 5A acquires the balance history information 73b included in the received response. The history inquiry unit 60c transmits the acquired balance history information 73b to the first settlement server device 5A.

第2決済サーバ装置5Bから残高履歴情報73bを受信した第1決済サーバ装置5Aの不具合判定部50cは、販売サーバ装置3からの履歴照会要求にて指定されたトランザクションIDに対応する更新IDを記憶部51の決済履歴情報51aから取得し、取得した更新IDの履歴が残高履歴情報73bに含まれているか否かを判定する。残高履歴情報73bに照会対象の更新IDが含まれている場合、不具合判定部50cは、ICカード7に対する書き込みが完了していると判定する。残高履歴情報73bに紹介対象の更新IDが含まれていない場合、不具合判定部50cは、ICカード7に対する書き込みが完了していないと判定する。不具合判定部50cは、この判定結果を照会結果としてユーザ端末装置1へ送信する。第1決済サーバ装置5Aから照会結果を受信したユーザ端末装置1の処理部10は、受信した照会結果を販売サーバ装置3へ送信する。   The failure determination unit 50c of the first settlement server device 5A that has received the balance history information 73b from the second settlement server device 5B stores an update ID corresponding to the transaction ID specified in the history inquiry request from the sales server device 3. It is acquired from the settlement history information 51a of the unit 51, and it is determined whether or not the history of the acquired update ID is included in the balance history information 73b. When the update ID to be referred is included in the balance history information 73b, the defect determination unit 50c determines that writing to the IC card 7 has been completed. When the introduction history update ID is not included in the balance history information 73b, the defect determination unit 50c determines that writing to the IC card 7 has not been completed. The defect determination unit 50c transmits this determination result to the user terminal device 1 as an inquiry result. The processing unit 10 of the user terminal device 1 that has received the inquiry result from the first settlement server device 5 </ b> A transmits the received inquiry result to the sales server device 3.

ユーザ端末装置1から照会結果を受信した販売サーバ装置3の不具合確認部44は、受信した照会結果に基づき、中断された決済処理をいずれの箇所から復帰させるかを判定する(図中の復帰判定2)。不具合確認部44は、受信した照会結果から、ICカード7に対する書き込みが完了していないと判定した場合、決済処理を最初から再開すべく決済要求を生成してユーザ端末装置1へ送信する。不具合確認部44は、ICカード7に対する書き込みが完了していると判定した場合、決済処理は完了しているため商品の販売に係る処理から再開する。販売サーバ装置3の処理部10は、復帰判定1又は復帰判定2にて判定した方法で、中断された処理の復帰処理を開始する。   The failure confirmation unit 44 of the sales server device 3 that has received the inquiry result from the user terminal device 1 determines from which location the suspended payment processing is to be restored based on the received inquiry result (return determination in the figure). 2). If it is determined from the received inquiry result that the writing to the IC card 7 has not been completed, the defect confirmation unit 44 generates a settlement request to resume the settlement process from the beginning and transmits it to the user terminal device 1. If the defect confirmation unit 44 determines that the writing to the IC card 7 has been completed, the settlement process has been completed, and the process is resumed from the process related to the sale of the product. The processing unit 10 of the sales server device 3 starts the return process of the interrupted process by the method determined in the return determination 1 or the return determination 2.

図19及び図20は、販売サーバ装置3が行う復帰処理の手順を示すフローチャートである。販売サーバ装置3の処理部30の不具合確認部44は、通信部33にてユーザ端末装置1からの復帰要求を受信したか否かを判定する(ステップS81)。復帰要求を受信していない場合(S81:NO)、不具合確認部44は、復帰要求を受信するまで待機する。復帰要求を受信した場合(S81:YES)、復帰を要求された処理のトランザクションIDを指定した決済確認要求を通信部33にてユーザ端末装置1へ送信する(ステップS82)。その後、不具合確認部44は、通信部33にてユーザ端末装置1から確認結果を受信したか否かを判定する(ステップS83)。確認結果を受信していない場合(S83:NO)、不具合確認部44は、確認結果を受信するまで待機する。   19 and 20 are flowcharts showing the procedure of the return process performed by the sales server device 3. The failure confirmation unit 44 of the processing unit 30 of the sales server device 3 determines whether the communication unit 33 has received a return request from the user terminal device 1 (step S81). When the return request has not been received (S81: NO), the failure confirmation unit 44 waits until the return request is received. When the return request is received (S81: YES), the communication unit 33 transmits a settlement confirmation request specifying the transaction ID of the process requested to return (step S82). Thereafter, the failure confirmation unit 44 determines whether or not the communication unit 33 has received a confirmation result from the user terminal device 1 (step S83). When the confirmation result is not received (S83: NO), the defect confirmation unit 44 waits until the confirmation result is received.

確認結果を受信した場合(S83:YES)、不具合確認部44は、受信した確認結果が決済成立であるか否かを判定する(ステップS84)。確認結果が決済成立である場合(S84:YES)、不具合確認部44は、決済処理は完了しているため、決済処理後の販売処理から処理を再開させ(ステップS85)、復帰処理を終了する。確認結果が決済成立でない場合(S84:NO)、不具合確認部44は、確認結果が未要求又は決済非成立であるか否かを判定する(ステップS86)。確認結果が未要求又は決済非成立である場合(S86:YES)、不具合確認部44は、決済処理の最初から処理を再開させ(ステップS87)、復帰処理を終了する。   When the confirmation result is received (S83: YES), the failure confirmation unit 44 determines whether or not the received confirmation result is a settlement (step S84). If the confirmation result is that the settlement is successful (S84: YES), the defect confirmation unit 44 resumes the process from the sales process after the settlement process because the settlement process is completed (step S85), and ends the return process. . If the confirmation result is not a settlement (S84: NO), the failure confirmation unit 44 determines whether the confirmation result is unrequested or a settlement is not established (step S86). If the confirmation result is unrequested or settlement is not established (S86: YES), the defect confirmation unit 44 restarts the process from the beginning of the settlement process (step S87), and ends the return process.

確認結果が未要求及び決済非成立でない場合(S86:NO)、即ち確認結果が処理未了である場合、不具合確認部44は、決済処理に用いられたICカード7の残高履歴情報73bを照会すべく、通信部33にて履歴照会要求をユーザ端末装置1へ送信する(ステップS88)。その後、不具合確認部44は、履歴照会要求に対する照会結果を通信部33にてユーザ端末装置1から受信したか否かを判定する(ステップS89)。照会結果を受信していない場合(S89:NO)、不具合確認部44は、照会結果を受信するまで待機する。照会結果を受信した場合(S89:YES)、不具合確認部44は、受信した照会結果が書込完了であるか否かを判定する(ステップS90)。照会結果が書込完了である場合(S90:YES)、不具合確認部44は、決済処理後の販売処理から処理を再開させ(ステップS91)、復帰処理を終了する。照会結果が書込完了でない場合(S90:NO)、不具合確認部44は、決済処理の最初から処理を再開させ(ステップS92)、復帰処理を終了する。   When the confirmation result is not requested and payment is not established (S86: NO), that is, when the confirmation result is unfinished, the defect confirmation unit 44 inquires the balance history information 73b of the IC card 7 used for the settlement process. Therefore, the communication unit 33 transmits a history inquiry request to the user terminal device 1 (step S88). Thereafter, the defect confirmation unit 44 determines whether or not the inquiry result for the history inquiry request has been received from the user terminal device 1 by the communication unit 33 (step S89). When the inquiry result has not been received (S89: NO), the defect confirmation unit 44 waits until the inquiry result is received. When the inquiry result is received (S89: YES), the defect confirmation unit 44 determines whether or not the received inquiry result is write completion (step S90). When the inquiry result is the completion of writing (S90: YES), the defect confirmation unit 44 resumes the process from the sales process after the settlement process (step S91) and ends the return process. If the inquiry result is not complete writing (S90: NO), the defect confirmation unit 44 restarts the process from the beginning of the settlement process (step S92) and ends the return process.

なお復帰処理にいてユーザ端末装置1が行う処理に関するフローチャートの図示は省略する。ユーザ端末装置1は、販売サーバ装置3から受信した情報を第1決済サーバ装置5Aへ送信する処理、第1決済サーバ装置5Aから受信したコマンドを非接触通信によりICカード7へ送信する処理、及び、第1決済サーバ装置5Aから受信した情報を販売サーバ装置3へ送信する処理を行う。   In addition, illustration of the flowchart regarding the process which the user terminal device 1 performs in a return process is abbreviate | omitted. The user terminal device 1 transmits information received from the sales server device 3 to the first settlement server device 5A, transmits a command received from the first settlement server device 5A to the IC card 7 by non-contact communication, and Then, the information received from the first settlement server device 5A is transmitted to the sales server device 3.

図21は、第1決済サーバ装置5Aが行う不具合判定処理の手順を示すフローチャートである。第1決済サーバ装置5Aの処理部50の不具合判定部50cは、通信部53にてユーザ端末装置1からの決済確認要求を受信したか否かを判定する(ステップS121)。決済確認要求を受信した場合(S121:YES)、不具合判定部50cは、受信した決済確認要求にて指定されたトランザクションIDに対応する決済状態を判定すべく、記憶部51に記憶した決済履歴情報51aを検索する(ステップS122)。不具合判定部50cは、決済履歴情報51aを検索した結果に基づき、決済状態が未要求、決済非成立、処理未了又は決済成立のいずれであるかの確認結果を、通信部53にてユーザ端末装置1へ送信し(ステップS123)、ステップS121へ処理を戻す。   FIG. 21 is a flowchart showing the procedure of the failure determination process performed by the first settlement server device 5A. The failure determination unit 50c of the processing unit 50 of the first settlement server device 5A determines whether the communication unit 53 has received a settlement confirmation request from the user terminal device 1 (step S121). When the payment confirmation request is received (S121: YES), the failure determination unit 50c stores the payment history information stored in the storage unit 51 so as to determine the payment state corresponding to the transaction ID specified in the received payment confirmation request. 51a is searched (step S122). Based on the result of searching the settlement history information 51a, the defect determination unit 50c uses the communication unit 53 to confirm the confirmation result of whether the settlement state is unrequested, settlement is not established, processing has not been completed, or settlement is established. The data is transmitted to the device 1 (step S123), and the process returns to step S121.

ユーザ端末装置1から決済確認要求を受信していない場合(S121:NO)、不具合判定部50cは、ユーザ端末装置1から履歴照会要求を受信したか否かを判定する(ステップS124)。履歴照会要求を受信していない場合(S124:NO)、不具合判定部50cは、ステップS121へ処理を戻す。履歴照会要求を受信した場合(S124:YES)、不具合判定部50cは、受信した履歴照会要求にて指定されたトランザクションIDに対応するカードIDを決済履歴情報51aから取得し、取得したカードIDに関する履歴照会依頼を通信部53にて第2決済サーバ装置5Bへ送信する(ステップS125)。   When the payment confirmation request has not been received from the user terminal device 1 (S121: NO), the defect determination unit 50c determines whether a history inquiry request has been received from the user terminal device 1 (step S124). When the history inquiry request has not been received (S124: NO), the defect determination unit 50c returns the process to step S121. When the history inquiry request is received (S124: YES), the defect determination unit 50c acquires the card ID corresponding to the transaction ID specified in the received history inquiry request from the payment history information 51a, and relates to the acquired card ID. A history inquiry request is transmitted to the second settlement server device 5B through the communication unit 53 (step S125).

その後、不具合判定部50cは、通信部53にて第2決済サーバ装置5Bから、ICカード7に対する読出要求を受信したか否かを判定する(ステップS126)。読出要求を受信していない場合(S126:NO)、不具合判定部50cは、読出要求を受信するまで待機する。読出要求を受信した場合(S126:YES)、不具合判定部50cは、受信した読出要求に応じたICカード7に対する読出コマンドを作成してユーザ端末装置1へ送信する(ステップS127)。不具合判定部50cは、送信した読出コマンドに対する応答を通信部53にてユーザ端末装置1から受信したか否かを判定する(ステップS128)。応答を受信していない場合(S128:NO)、不具合判定部50cは、応答を受信するまで待機する。応答を受信した場合(S128:YES)、不具合判定部50cは、ユーザ端末装置1から受信した応答を通信部53にて第2決済サーバ装置5Bへ送信する(ステップS129)。   Thereafter, the failure determination unit 50c determines whether or not the communication unit 53 has received a read request for the IC card 7 from the second settlement server device 5B (step S126). If a read request has not been received (S126: NO), defect determination unit 50c waits until a read request is received. When the read request is received (S126: YES), the failure determination unit 50c creates a read command for the IC card 7 according to the received read request and transmits it to the user terminal device 1 (step S127). The defect determination unit 50c determines whether or not a response to the transmitted read command has been received from the user terminal device 1 by the communication unit 53 (step S128). When the response has not been received (S128: NO), the failure determination unit 50c waits until a response is received. When the response is received (S128: YES), the failure determination unit 50c transmits the response received from the user terminal device 1 to the second settlement server device 5B through the communication unit 53 (step S129).

その後、不具合判定部50cは、通信部53にて第2決済サーバ装置5Bから残高履歴情報73bを受信したか否かを判定する(ステップ130)。残高履歴情報73bを受信していない場合(S130:NO)、不具合判定部50cは、残高履歴情報73bを受信するまで待機する。残高履歴情報73bを受信した場合(S130:YES)、不具合判定部50cは、履歴照会要求にて指定されたトランザクションIDに対応する更新IDを決済履歴情報51aから取得し、取得した更新IDにて受信した残高履歴情報73bを照会することにより(ステップS131)、この更新IDに関する履歴が残高履歴情報73bに含まれているか否かを判定する。これにより不具合判定部50cは、ICカード7に対する書き込みが完了しているか否かを判定し、この判定結果を照会結果としてユーザ端末装置1へ送信し(ステップS132)、ステップS121へ処理を戻す。   Thereafter, the defect determination unit 50c determines whether or not the balance history information 73b is received from the second settlement server device 5B by the communication unit 53 (step 130). When the balance history information 73b has not been received (S130: NO), the defect determination unit 50c waits until the balance history information 73b is received. When the balance history information 73b is received (S130: YES), the defect determination unit 50c acquires an update ID corresponding to the transaction ID specified in the history inquiry request from the settlement history information 51a, and uses the acquired update ID. By querying the received balance history information 73b (step S131), it is determined whether or not a history related to the update ID is included in the balance history information 73b. Thereby, the malfunction determination unit 50c determines whether or not the writing to the IC card 7 is completed, transmits the determination result to the user terminal device 1 as an inquiry result (step S132), and returns the process to step S121.

図22は、第2決済サーバ装置5Bが行う履歴照会処理の手順を示すフローチャートである。第2決済サーバ装置5Bの処理部60の履歴照会部60cは、通信部63にて第1決済サーバ装置5Aからの履歴照会依頼を受信したか否かを判定する(ステップS141)。履歴照会依頼を受信していない場合(S141:NO)、履歴照会部60cは、履歴照会依頼を受信するまで待機する。履歴照会依頼を受信した場合(S141:YES)、履歴照会依頼にて指定されたカードIDのICカード7に対する残高履歴情報73bの読出要求を生成し、通信部63にて第1決済サーバ装置5Aへ送信する(ステップS142)。   FIG. 22 is a flowchart showing a procedure of history inquiry processing performed by the second settlement server device 5B. The history inquiry unit 60c of the processing unit 60 of the second settlement server device 5B determines whether the communication unit 63 has received a history inquiry request from the first settlement server device 5A (step S141). When the history inquiry request has not been received (S141: NO), the history inquiry unit 60c stands by until the history inquiry request is received. When the history inquiry request is received (S141: YES), a request for reading the balance history information 73b for the IC card 7 having the card ID specified in the history inquiry request is generated, and the first settlement server device 5A is generated by the communication unit 63. (Step S142).

その後、履歴照会部60cは、読出要求に対する応答を通信部63にて第1決済サーバ装置5Aから受信したか否かを判定する(ステップS143)。応答を受信していない場合(S143:NO)、履歴照会部60cは、応答を受信するまで待機する。応答を受信した場合(S143:YES)、履歴照会部60cは、応答に含まれる残高履歴情報73bを取得し、取得した残高履歴情報73bを通信部63にて第1決済サーバ装置5Aへ送信し(ステップS144)、処理を終了する。   Thereafter, the history inquiry unit 60c determines whether or not a response to the read request has been received from the first settlement server device 5A by the communication unit 63 (step S143). When no response is received (S143: NO), the history inquiry unit 60c waits until a response is received. When the response is received (S143: YES), the history inquiry unit 60c acquires the balance history information 73b included in the response, and transmits the acquired balance history information 73b to the first settlement server device 5A via the communication unit 63. (Step S144), the process ends.

<まとめ>
以上の構成の本実施の形態に係る決済システムは、商品の販売を行う販売サーバ装置3と、販売する商品に係る決済処理を行う決済サーバ装置5(第1決済サーバ装置5A及び第2決済サーバ装置5B)と、ユーザが商品の購入に関する操作を行うユーザ端末装置とを備える構成である。本実施の形態に係る決済システムでは、商品の決済処理のために販売サーバ装置3及び決済サーバ装置5の間で行う必要がある情報交換を、ユーザ端末装置1が中継する。例えばユーザ端末装置1の決済要求中継部21は、購入した商品に係る決済要求を販売サーバ装置3から受信し、受信した決済要求を決済サーバ装置5(第1決済サーバ装置5A)へ送信する。また例えばユーザ端末装置1の決済結果中継部23は、決済処理の結果である決済結果を決済サーバ装置5(第1決済サーバ装置5A)から受信し、受信した決済結果を販売サーバ装置3へ送信する。販売サーバ装置3及び決済サーバ装置5は直接的な通信を行わない。これにより本実施の形態に係る決済システムは、決済処理に必要な情報の送受信を円滑に行うことができる。
<Summary>
The payment system according to the present embodiment having the above-described configuration includes the sales server device 3 that sells products and the payment server device 5 that performs payment processing related to the products to be sold (the first payment server device 5A and the second payment server). Device 5B) and a user terminal device on which the user performs operations related to the purchase of merchandise. In the payment system according to the present embodiment, the user terminal device 1 relays information exchange that needs to be performed between the sales server device 3 and the payment server device 5 for the product payment processing. For example, the payment request relay unit 21 of the user terminal device 1 receives a payment request related to the purchased product from the sales server device 3, and transmits the received payment request to the payment server device 5 (first payment server device 5A). Further, for example, the settlement result relay unit 23 of the user terminal device 1 receives a settlement result as a result of the settlement process from the settlement server device 5 (first settlement server device 5A) and transmits the received settlement result to the sales server device 3. To do. The sales server device 3 and the settlement server device 5 do not perform direct communication. Thereby, the payment system according to the present embodiment can smoothly transmit and receive information necessary for the payment process.

また販売サーバ装置3及び第1決済サーバ装置5Aは、送受信する情報を暗号化及び復号するための暗号処理部43及び50bをそれぞれ有している。ユーザ端末装置1は、暗号化された情報を中継するが、この情報を解読又は改変等することはできない。これにより販売サーバ装置3及び第1決済サーバ装置5Aの間でユーザ端末装置1を介して授受される情報の信頼性を高めることができる。   The sales server device 3 and the first settlement server device 5A have encryption processing units 43 and 50b for encrypting and decrypting information to be transmitted and received, respectively. The user terminal device 1 relays the encrypted information, but cannot decrypt or modify this information. Thereby, the reliability of the information exchanged via the user terminal device 1 between the sales server device 3 and the first settlement server device 5A can be improved.

なお販売サーバ装置3及び第1決済サーバ装置5Aとの間で送受信する情報を暗号化する構成としたが、これに限るものではない。販売サーバ装置3及び第1決済サーバ装置5Aは、送信する情報に対して電子署名を付してもよい。販売サーバ装置3及び第1決済サーバ装置5Aは、例えば所定のハッシュ関数を用いて送信する情報をダイジェストデータに変換し、ダイジェストデータを所定の鍵情報を用いて暗号化したものを電子署名とすることができる。電子署名付きの情報を受信した場合、販売サーバ装置3及び第1決済サーバ装置5Aは、電子署名を復号してダイジェストデータを取得すると共に、受信した情報から同じハッシュ関数を用いてダイジェストデータを作成する。販売サーバ装置3及び第1決済サーバ装置5Aは、両ダイジェストデータが一致する場合に、受信情報が正当なものであると判断することができる。   In addition, although it was set as the structure which encrypts the information transmitted / received between the sales server apparatus 3 and 5 A of 1st payment server apparatuses, it does not restrict to this. The sales server device 3 and the first settlement server device 5A may attach an electronic signature to the information to be transmitted. The sales server device 3 and the first settlement server device 5A convert, for example, information to be transmitted using a predetermined hash function into digest data, and the digest data is encrypted using predetermined key information as an electronic signature. be able to. When receiving information with an electronic signature, the sales server device 3 and the first settlement server device 5A decrypt the electronic signature to obtain digest data, and create digest data from the received information using the same hash function To do. The sales server device 3 and the first settlement server device 5A can determine that the received information is valid when both digest data match.

またユーザ端末装置1は、商品を購入するための電子マネー又はポイント等の金額情報を記憶したICカード7との間で非接触通信を行う非接触通信部16を有している。決済処理においては決済サーバ装置5及びICカード7の間で情報交換を行う必要があり、ユーザ端末装置1の決済仲介部22は、決済サーバ装置5及びICカード7の間の通信を仲介する。決済処理においては、決済サーバ装置5及びICカード7の間でユーザ端末装置1を介した通信が行われ、ICカード7の残高が減額される。これによりICカード7などの非接触通信機能を有する記憶媒体を用いた利便性の高い決済処理を実現することができる。   In addition, the user terminal device 1 includes a non-contact communication unit 16 that performs non-contact communication with the IC card 7 that stores electronic money for purchasing commodities or money amount information such as points. In the payment process, it is necessary to exchange information between the payment server device 5 and the IC card 7, and the payment mediation unit 22 of the user terminal device 1 mediates communication between the payment server device 5 and the IC card 7. In the payment process, communication via the user terminal device 1 is performed between the payment server device 5 and the IC card 7, and the balance of the IC card 7 is reduced. Thereby, it is possible to realize a convenient settlement process using a storage medium having a non-contact communication function such as the IC card 7.

また本実施の形態に係る決済システムでは、決済サーバ装置5を第1決済サーバ装置5A及び第2決済サーバ装置5Bの2つの装置を用いて構成する。第1決済サーバ装置5Aは、ユーザ端末装置1及び第2決済サーバ装置5Bの間の通信を中継する。また第1決済サーバ装置5Aは、販売サーバ装置3及び第2決済サーバ装置5Bの間で送受信される情報の変換処理、並びに、第2決済サーバ装置5B及びICカード7の間で送受信される情報の変換処理を行う。第2決済サーバ装置5Bは、ICカード7との通信を行って、販売された商品の金額をICカード7の残高から減額する決済処理を行う。このような第1決済サーバ装置5A及び第2決済サーバ装置5Bを設けることにより、例えば構成が異なる複数種の販売サーバ装置3又はプロトコルなどが異なる複数種のICカード7等に対して、第2決済サーバ装置5Bの決済処理を容易に対応させることができる。また販売サーバ装置3又は第2決済サーバ装置5Bのいずれか一方の仕様変更に対して、他方を容易に対応させることができる。   In the payment system according to the present embodiment, the payment server device 5 is configured using two devices, the first payment server device 5A and the second payment server device 5B. The first settlement server device 5A relays communication between the user terminal device 1 and the second settlement server device 5B. Further, the first settlement server device 5A converts information transmitted / received between the sales server device 3 and the second settlement server device 5B, and information transmitted / received between the second settlement server device 5B and the IC card 7. Perform the conversion process. The second settlement server device 5B communicates with the IC card 7 and performs a settlement process for reducing the amount of the sold product from the balance of the IC card 7. By providing the first settlement server device 5A and the second settlement server device 5B as described above, for example, a plurality of types of sales server devices 3 having different configurations, a plurality of types of IC cards 7 having different protocols, etc. The settlement process of the settlement server device 5B can be easily handled. Moreover, the other can be easily made compatible with the specification change of one of the sales server device 3 and the second settlement server device 5B.

また販売サーバ装置3は、購入された商品の販売処理及び決済処理等の一連の処理に対するトランザクションIDをID生成部42が生成し、生成したトランザクションIDを決済要求に付して、ユーザ端末装置1を介して第1決済サーバ装置5Aへ送信する。第1決済サーバ装置5Aは、受信した決済要求に付されたトランザクションIDに対応付けて、決済処理の状態などの履歴を記憶部51に決済履歴情報51aとして記憶しておく。なお第1決済サーバ装置5Aは、販売処理又は決済処理等が不具合などにより未完了で終了した場合であっても、これらの処理に関する履歴を決済履歴情報51aに記憶している。これにより通信に不具合などが発生して決済処理が中断した場合に、販売サーバ装置3の不具合確認部44は、トランザクションID及び決済履歴情報51aに基づいて不具合の有無を確認することができる。また第1決済サーバ装置5Aの不具合判定部50cは、決済履歴情報51aの決済状態に基づいて、決済処理の処理過程における不具合の発生個所を特定することができる。   In addition, the sales server device 3 generates a transaction ID for a series of processing such as sales processing and settlement processing of the purchased product, attaches the generated transaction ID to the settlement request, and the user terminal device 1 To the first settlement server device 5A. The first settlement server device 5A stores a history such as the status of the settlement process in the storage unit 51 as the settlement history information 51a in association with the transaction ID attached to the received settlement request. Note that the first settlement server device 5A stores the history relating to these processes in the settlement history information 51a even if the sales process or the settlement process is not completed due to a malfunction or the like. As a result, when a failure or the like occurs in communication and the settlement process is interrupted, the failure confirmation unit 44 of the sales server device 3 can confirm the presence or absence of the failure based on the transaction ID and the settlement history information 51a. Further, the defect determination unit 50c of the first settlement server device 5A can specify the location where the defect occurs in the process of the settlement process based on the settlement state of the settlement history information 51a.

また販売サーバ装置3は、販売処理の履歴を記憶部31に販売履歴情報31aとして記憶している。販売履歴情報31aには、トランザクションID、ユーザ端末装置1を使用するユーザのユーザID及び決済処理の結果等が対応付けて記憶される。これにより販売サーバ装置3は、販売する商品の決済処理が完了しているかを決済サーバ装置5へ確認すべきか否かを容易に判断することができる。また販売サーバ装置3は決済処理が完了していない処理が存在することをユーザ端末装置1へ通知することができ、これによりユーザ端末装置1は、表示部13に未完了の処理がある旨のメッセージを表示するなど、ユーザに対する通知を行うことができる。ユーザ端末装置1による通知は、例えばユーザがユーザ端末装置1にて販売サーバ装置3に対するログイン処理を行った場合に行うことができる。ユーザ端末装置1は、少なくとも次の決済処理が開始されるまでの間に通知を行う。これにより通信の不具合などにより処理が中断されたことをユーザに知らせることができ、この処理を再開するか否かをユーザに選択させることができる。   Further, the sales server device 3 stores the sales processing history in the storage unit 31 as sales history information 31a. In the sales history information 31a, the transaction ID, the user ID of the user using the user terminal device 1, the result of the settlement process, and the like are stored in association with each other. As a result, the sales server device 3 can easily determine whether or not the payment server device 5 should confirm whether or not the payment processing for the product to be sold has been completed. Further, the sales server device 3 can notify the user terminal device 1 that there is a process for which the payment process has not been completed, and the user terminal apparatus 1 indicates that there is an uncompleted process on the display unit 13. Users can be notified such as displaying messages. The notification by the user terminal device 1 can be performed, for example, when the user performs a login process for the sales server device 3 in the user terminal device 1. The user terminal device 1 notifies at least before the next settlement process is started. As a result, the user can be notified that the process has been interrupted due to a communication failure or the like, and the user can select whether or not to restart the process.

またICカード7の記憶部73には、電子マネー又はポイント等の残高の変化の履歴が残高履歴情報73bとして記憶されている。第1決済サーバ装置5Aは、ICカード7の残高の更新処理に対して付される更新IDと、決済処理に係るトランザクションIDとの対応を決済履歴情報51aに記憶している。第1決済サーバ装置5Aの不具合判定部50cは、ICカード7から取得した残高履歴情報73bと、記憶部51に記憶した決済履歴情報51aとを比較し、ICカード7に対する残高の更新処理に不具合が生じたか否かを判定する。これにより決済処理におけるICカード7への書き込みが完了したか否かを精度よく判定することができる。   The storage unit 73 of the IC card 7 stores a history of changes in balance such as electronic money or points as balance history information 73b. The first settlement server device 5A stores the correspondence between the update ID assigned to the balance update processing of the IC card 7 and the transaction ID related to the settlement processing in the settlement history information 51a. The defect determination unit 50c of the first settlement server device 5A compares the balance history information 73b acquired from the IC card 7 with the settlement history information 51a stored in the storage unit 51, and has a problem in the balance update process for the IC card 7. It is determined whether or not an error has occurred. Thereby, it is possible to accurately determine whether or not the writing to the IC card 7 in the settlement process is completed.

また決済処理に不具合が生じたと判定された場合、販売サーバ装置3は中断された処理を再開する処理を行う。このときに販売サーバ装置3は、ユーザ端末装置1を介して決済サーバ装置5に確認した未要求、決済非成立、処理未了又は決済成立等の決済処理の状態に応じた方法で処理を再開する。即ち販売サーバ装置3は、決済処理の処理過程における中断箇所から処理を再開する。これにより本実施の形態に係る決済システムは、販売する商品に関する決済処理を確実に完了させることができる。   When it is determined that a problem has occurred in the payment process, the sales server device 3 performs a process for resuming the interrupted process. At this time, the sales server device 3 resumes the processing by a method according to the state of the settlement processing, such as unrequested, settlement unsuccessful, processing unsuccessful or settlement confirmed, which is confirmed with the settlement server device 5 via the user terminal device 1. To do. That is, the sales server device 3 resumes the process from the interrupted point in the process of the payment process. As a result, the payment system according to the present embodiment can reliably complete the payment processing related to the product to be sold.

なお本実施の形態においては、販売サーバ装置3を1つの装置として構成したが、これに限るものではなく、販売サーバ装置3を2つ以上の装置で構成してもよい。また決済サーバ装置5を第1決済サーバ装置5A及び第2決済サーバ装置5Bの2つの装置で構成したが、これに限るものではなく、第1決済サーバ装置5A及び第2決済サーバ装置5Bの機能を統合して1つの決済サーバ装置5としてもよい。また決済サーバ装置5を3つ以上の装置で構成してもよい。またユーザ端末装置1はICカード7との非接触通信を行う非接触通信部16を備える構成としたが、これに限るものではない。ユーザ端末装置1が非接触通信部16を備えず、非接触通信機能を有する外部機器をユーザ端末装置1に有線又は無線にて接続する構成としてもよい。また金額情報を記憶する記憶媒体をICカード7としたが、記憶媒体はカード型に限らず、種々の形態であってよい。   In the present embodiment, the sales server device 3 is configured as one device. However, the present invention is not limited to this, and the sales server device 3 may be configured by two or more devices. Moreover, although the payment server apparatus 5 was comprised with two apparatuses, the 1st payment server apparatus 5A and the 2nd payment server apparatus 5B, it is not restricted to this, The function of 5 A of 1st payment server apparatuses and the 2nd payment server apparatus 5B May be integrated into a single settlement server device 5. Further, the settlement server device 5 may be composed of three or more devices. Moreover, although the user terminal device 1 is configured to include the non-contact communication unit 16 that performs non-contact communication with the IC card 7, it is not limited thereto. The user terminal device 1 may not include the contactless communication unit 16 and may be configured to connect an external device having a contactless communication function to the user terminal device 1 by wire or wirelessly. Further, although the storage medium for storing the amount information is the IC card 7, the storage medium is not limited to the card type and may be in various forms.

また本実施の形態に係る決済システムでは、更新IDを第2決済サーバ装置5Bが生成する構成としたが、これに限るものではない。更新IDを第1決済サーバ装置5Aが生成して第2決済サーバ装置5Bへ通知する構成としてもよい。また販売サーバ装置3からユーザ端末装置1を介して決済要求を受信した第1決済サーバ装置5Aが、暗号化された決済要求を復号する構成としたが、これに限るものではない。第1決済サーバ装置5Aは、受信した決済要求を復号せずに第2決済サーバ装置5Bへ送信し、第2決済サーバ装置5Bが決済要求を復号して、復号した情報のうちの必要な情報を第1決済サーバ装置5Aへ送信する構成としてもよい。またユーザ端末装置を介して販売サーバ装置3及び第1決済サーバ装置5Aの間で送受信する情報と同様に、第1決済サーバ装置5A及び第2決済サーバ装置5Bの間で送受信する情報を暗号化してもよく、又は、電子署名を付して送受信してもよい。   In the payment system according to the present embodiment, the update ID is generated by the second payment server device 5B. However, the present invention is not limited to this. The first settlement server device 5A may generate the update ID and notify the second settlement server device 5B. In addition, the first settlement server device 5A that has received the settlement request from the sales server device 3 via the user terminal device 1 is configured to decrypt the encrypted settlement request. However, the present invention is not limited to this. The first settlement server device 5A transmits the received settlement request to the second settlement server device 5B without decrypting it, and the second settlement server device 5B decrypts the settlement request, and necessary information in the decrypted information. May be transmitted to the first settlement server device 5A. Similarly to the information transmitted / received between the sales server device 3 and the first settlement server device 5A via the user terminal device, the information transmitted / received between the first settlement server device 5A and the second settlement server device 5B is encrypted. Alternatively, the electronic signature may be attached and transmitted / received.

また購入した商品代金の支払いにICカード7にチャージされた電子マネー又はポイント等を用いる構成としたが、これに限るものではない。例えば支払処理においてクレジットカードの識別情報等をユーザ端末装置1にてユーザが入力するなど、クレジットカードを支払いに用いる構成としてもよい。また電子マネー又はポイント等の金額情報をユーザ端末装置1が記憶する構成としてもよく、この場合にはICカード7などの記憶媒体を用いない構成としてよい。また本実施の形態においては、決済処理の状態を未要求、決済非成立、処理未了又は決済成立の4状態のいずれであるか判定して処理を再開する構成としたが、これは一例である。決済処理の状態を3状態以下又は5状態以上で判定してもよく、前述の4状態とは異なる4状態で判定してもよい。   In addition, although the electronic money or points charged in the IC card 7 is used for payment of the purchased product price, the present invention is not limited to this. For example, the credit card may be used for payment, for example, by the user inputting credit card identification information or the like at the user terminal device 1 in the payment process. The user terminal device 1 may store money amount information such as electronic money or points. In this case, a storage medium such as the IC card 7 may not be used. Further, in the present embodiment, the process is resumed by determining whether the state of the payment process is any of the four states of unrequested, payment not established, process incomplete, or payment established, but this is an example. is there. The state of the settlement process may be determined based on three states or less or five states or more, and may be determined based on four states different from the above four states.

また本実施の形態において示したユーザ端末装置1、販売サーバ装置3、第1決済サーバ装置5A及び第2決済サーバ装置5Bの処理の手順などは一例であって、これに限るものではない。また図4に示した残高履歴情報73b、図6に示した販売履歴情報31a、図8に示した決済履歴情報51aの構成は、一例であって、これに限るものではない。また決済システムの装置構成及び各装置における機能の分担は、本実施の形態にて説明したものに限らない。例えば本実施の形態においてユーザ端末装置1の機能として説明したものの少なくとも一部を、販売サーバ装置3又は決済サーバ装置5が有していてもよい。また逆に、販売サーバ装置3又は決済サーバ装置5の機能として説明したものの少なくとも一部を、ユーザ端末装置1が有していてもよい。   In addition, the processing procedure of the user terminal device 1, the sales server device 3, the first settlement server device 5A, and the second settlement server device 5B shown in the present embodiment is an example, and is not limited to this. Moreover, the structure of the balance history information 73b shown in FIG. 4, the sales history information 31a shown in FIG. 6, and the settlement history information 51a shown in FIG. 8 is an example, and is not limited thereto. Further, the apparatus configuration of the payment system and the sharing of functions in each apparatus are not limited to those described in the present embodiment. For example, the sales server device 3 or the settlement server device 5 may have at least a part of what is described as the function of the user terminal device 1 in the present embodiment. Conversely, the user terminal device 1 may have at least a part of what has been described as the function of the sales server device 3 or the settlement server device 5.

1 ユーザ端末装置
3 販売サーバ装置
5 決済サーバ装置
5A 第1決済サーバ装置
5B 第2決済サーバ装置
7 ICカード
10 処理部
11 記憶部
12 記録媒体装着部
13 表示部
14 操作部
15 通信部
16 非接触通信部
21 決済要求中継部
22 決済仲介部
23 決済結果中継部
24 購入処理部
25 操作受付部
30 処理部
31 記憶部
31a 販売履歴情報
32 記録媒体装着部
33 通信部
41 販売処理部
42 ID生成部
43 暗号処理部
44 不具合確認部
50 処理部
50a 第1決済処理部
50b 暗号処理部
50c 不具合判定部
51 記憶部
51a 決済履歴情報
52 記録媒体装着部
53 通信部
60 処理部
60a 第2決済処理部
60b ID生成部
60c 履歴照会部
61 記憶部
62 記録媒体装着部
63 通信部
70 ICタグ
71 処理部
72 非接触通信部
73 記憶部
73a カードID
73b 残高履歴情報
74 電力供給部
77 アンテナ
91 記録媒体
91a クライアントプログラム
92 記録媒体
92a サーバプログラム
93 記録媒体
93a サーバプログラム
94 記録媒体
94a サーバプログラム
99 ネットワーク
DESCRIPTION OF SYMBOLS 1 User terminal device 3 Sales server apparatus 5 Payment server apparatus 5A 1st payment server apparatus 5B 2nd payment server apparatus 7 IC card 10 Processing part 11 Storage part 12 Recording medium mounting part 13 Display part 14 Operation part 15 Communication part 16 Non-contact Communication unit 21 Settlement request relay unit 22 Settlement mediation unit 23 Settlement result relay unit 24 Purchase processing unit 25 Operation receiving unit 30 Processing unit 31 Storage unit 31a Sales history information 32 Recording medium mounting unit 33 Communication unit 41 Sales processing unit 42 ID generation unit 43 Cryptographic Processing Unit 44 Defect Checking Unit 50 Processing Unit 50a First Settlement Processing Unit 50b Encryption Processing Unit 50c Defect Determination Unit 51 Storage Unit 51a Settlement History Information 52 Recording Medium Mounting Unit 53 Communication Unit 60 Processing Unit 60a Second Settlement Processing Unit 60b ID generation unit 60c history inquiry unit 61 storage unit 62 recording medium mounting unit 63 communication unit 0 IC tag 71 processor 72 non-contact communication unit 73 storage unit 73a card ID
73b Balance history information 74 Power supply unit 77 Antenna 91 Recording medium 91a Client program 92 Recording medium 92a Server program 93 Recording medium 93a Server program 94 Recording medium 94a Server program 99 Network

Claims (21)

商品の販売に係る販売処理を行う販売サーバ装置と、
前記販売処理により前記販売サーバ装置が販売する商品に係る決済処理を行う決済サーバ装置と、
ネットワークを介して前記販売サーバ装置及び前記決済サーバ装置との通信を行う通信部、金額情報を記憶する記憶媒体との間で非接触通信を行う非接触通信部、並びに、前記商品の購入に係る操作を受け付ける操作受付部を有するユーザ端末装置
を備え、
前記販売サーバ装置は、
前記決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶部と、
前記識別情報及び前記処理ステータス情報に基づいて、決済処理に係る不具合の有無を確認する不具合確認部と
有する、決済システム。
A sales server device that performs sales processing related to the sale of products;
A settlement server device that performs a settlement process related to products sold by the sales server device through the sales process;
A communication unit that communicates with the sales server device and the settlement server device via a network, a non-contact communication unit that performs non-contact communication with a storage medium that stores money amount information, and the purchase of the product A user terminal device having an operation receiving unit for receiving an operation ;
With
The sales server device includes:
A storage unit that stores processing status information related to the payment process in association with the identification information attached to the payment process;
A settlement system comprising: a defect confirmation unit that confirms the presence or absence of a defect related to the settlement process based on the identification information and the processing status information.
前記記憶部は、前記販売処理又は前記決済処理が未完了で終了した場合であっても、前記処理ステータス情報を保持する、請求項1に記載の決済システム。   The payment system according to claim 1, wherein the storage unit holds the processing status information even when the sales process or the payment process is not completed. 前記販売サーバ装置は、前記決済処理に対して付された識別情報と、前記ユーザ端末装置を使用するユーザに付されたユーザ識別情報との対応を記憶しておく、請求項1又は請求項2に記載の決済システム。   The said sales server apparatus memorize | stores a response | compatibility with the identification information attached | subjected with respect to the said payment process, and the user identification information attached | subjected to the user who uses the said user terminal device. The payment system described in 1. 前記販売サーバ装置は、前記決済処理に対して付された識別情報に対応付けて、該決済処理の結果を記憶しておく、請求項1乃至請求項3のいずれか1つに記載の決済システム。   The settlement system according to any one of claims 1 to 3, wherein the sales server device stores a result of the settlement process in association with identification information attached to the settlement process. . 前記ユーザ端末装置は、当該ユーザ端末装置のユーザへ決済処理に係る不具合を通知する、請求項1乃至請求項4のいずれか1つに記載の決済システム。   The payment system according to any one of claims 1 to 4, wherein the user terminal device notifies a user of the user terminal device of a problem related to payment processing. 前記ユーザ端末装置は、前記販売サーバ装置に対するログイン処理がなされた場合に、当該ユーザ端末装置のユーザへ不具合に係る通知を行う、請求項5に記載の決済システム。   The payment system according to claim 5, wherein the user terminal device notifies the user of the user terminal device of a problem when a login process is performed on the sales server device. 前記ユーザ端末装置は、決済処理に不具合が発生した後から、少なくとも次の決済処理が開始されるまでの間に、当該ユーザ端末装置のユーザへ不具合に係る通知を行う、請求項5に記載の決済システム。   6. The user terminal device according to claim 5, wherein the user terminal device notifies the user of the user terminal device of the failure after the failure has occurred in the payment processing until at least the next payment processing is started. Payment system. 前記ユーザ端末装置が不具合に係る通知を行った後、不具合が発生した決済処理を再開させる再開部を備える、請求項5乃至請求項7のいずれか1つに記載の決済システム。   The payment system according to any one of claims 5 to 7, further comprising a resuming unit that resumes the payment process in which the failure has occurred after the user terminal device has notified the failure. 前記不具合確認部により不具合が有ることが確認された場合に、不具合が発生した決済処理を再開させる再開部を備える、請求項1乃至請求項7のいずれか1つに記載の決済システム。   The settlement system according to any one of claims 1 to 7, further comprising a resuming unit that resumes the settlement process in which a malfunction has occurred when the malfunction confirmation unit confirms that there is a malfunction. 前記決済処理に対して付された識別情報及び前記記憶部に記憶した処理ステータス情報に基づいて、決済処理の処理過程における不具合の発生個所を判定する不具合判定部を備える、請求項1乃至請求項7のいずれか1つに記載の決済システム。   The apparatus according to claim 1, further comprising: a defect determination unit that determines a position where a defect occurs in a process of the payment process based on the identification information attached to the payment process and the process status information stored in the storage unit. The settlement system according to any one of 7 above. 前記不具合確認部により不具合が有ることが確認された場合に、前記不具合判定部が判定した個所から決済処理を再開させる再開部を備える、請求項10に記載の決済システム。   The payment system according to claim 10, further comprising a resuming unit that resumes the payment process from the location determined by the defect determination unit when the defect confirmation unit confirms that there is a defect. 前記販売サーバ装置は、前記決済処理に対して付す識別情報を生成する生成部を有する、請求項1乃至請求項11のいずれか1つに記載の決済システム。   The payment system according to any one of claims 1 to 11, wherein the sales server device includes a generation unit that generates identification information attached to the payment process. 前記記憶媒体は、記憶した金額情報の履歴情報を記憶し、
前記決済サーバ装置は、前記記憶媒体から取得した履歴情報に基づいて、前記記憶媒体に記憶された金額情報の更新処理に係る不具合の有無を判定する更新判定部を有する、請求項1乃至請求項12のいずれか1つに記載の決済システム。
The storage medium stores history information of stored amount information,
The said settlement server apparatus has an update determination part which determines the presence or absence of the malfunction which concerns on the update process of the money amount information memorize | stored in the said storage medium based on the historical information acquired from the said storage medium. The settlement system according to any one of 12.
前記記憶媒体は、前記更新処理に対して付された識別情報に対応付けて金額情報の変化を記憶し、
前記決済サーバ装置は、前記更新処理に対して付された識別情報、及び、前記決済処理に対して付された識別情報との対応を記憶する、請求項13に記載の決済システム。
The storage medium stores a change in money amount information in association with the identification information attached to the update process,
The payment system according to claim 13, wherein the payment server device stores correspondence between identification information given to the update process and identification information given to the payment process.
金額情報及び該金額情報の履歴情報を記憶する記憶媒体との間で非接触通信を行う非接触通信部を有するユーザ端末装置と、
前記ユーザ端末装置との通信を行って前記記憶媒体に記憶された金額情報を更新する更新処理部、並びに、前記更新処理部による処理の履歴及び前記記憶媒体から取得した履歴情報に基づいて、前記更新処理部による処理に係る不具合の有無を判定する更新判定部を有する決済サーバ装置と
を備える決済システム。
A user terminal device having a non-contact communication unit that performs non-contact communication with a storage medium that stores amount information and history information of the amount information;
Based on the update processing unit that communicates with the user terminal device and updates the amount information stored in the storage medium, and the history of processing performed by the update processing unit and the history information acquired from the storage medium, A payment system comprising: a payment server device having an update determination unit that determines whether or not there is a defect related to processing by the update processing unit.
前記更新判定部は、不具合が有る場合に、該不具合の内容を判定する、請求項15に記載の決済システム。   The payment system according to claim 15, wherein when there is a defect, the update determination unit determines the content of the defect. 前記ユーザ端末装置は、非対面型の装置である、請求項1乃至請求項16のいずれか1つに記載の決済システム。   The payment system according to any one of claims 1 to 16, wherein the user terminal device is a non-face-to-face device. ユーザ端末装置との通信を行う通信部を備え、商品の販売に係る販売処理を行う販売サーバ装置であって、
前記販売処理により販売する商品に係る決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶部と、
前記識別情報及び前記処理ステータス情報に基づいて、決済処理に係る不具合の有無を確認する不具合確認部と
を備える販売サーバ装置。
A sales server device that includes a communication unit that communicates with a user terminal device and performs a sales process related to the sale of products,
A storage unit that stores processing status information related to the payment process in association with identification information attached to the payment process related to the product sold by the sales process;
A sales server device comprising: a defect confirmation unit that confirms the presence or absence of a defect related to a payment process based on the identification information and the processing status information.
ユーザ端末装置との通信を行う通信部を備え、商品の決済に係る決済処理を行う決済サーバ装置であって、
前記決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶部と、
前記決済処理に対して付された識別情報及び前記記憶部に記憶した処理ステータス情報に基づいて、決済処理の処理過程における不具合の発生個所を判定する不具合判定部と
を備える決済サーバ装置。
A payment server device that includes a communication unit that communicates with a user terminal device and performs a payment process related to payment of a product,
A storage unit that stores processing status information related to the payment process in association with the identification information attached to the payment process;
A settlement server device comprising: a failure determination unit that determines a location where a failure occurs in the process of payment processing based on the identification information attached to the payment processing and the processing status information stored in the storage unit.
ユーザ端末装置との通信を行う通信部を備え、商品の販売に係る販売処理を行う販売サーバ装置を、
前記販売処理により販売する商品に係る決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶手段と、
前記識別情報及び前記処理ステータス情報に基づいて、決済処理に係る不具合の有無を確認する不具合確認手段
として動作させる、サーバプログラム。
A sales server device that includes a communication unit that communicates with a user terminal device and performs a sales process related to the sale of products,
Storage means for storing processing status information related to the payment processing in association with identification information attached to the payment processing related to the product sold by the sales processing;
A server program that operates as a defect confirmation unit that confirms the presence or absence of a defect related to payment processing based on the identification information and the processing status information.
ユーザ端末装置との通信を行う通信部を備え、商品の決済に係る決済処理を行う決済サーバ装置を、
前記決済処理に対して付された識別情報に対応付けて、前記決済処理に係る処理ステータス情報を記憶する記憶手段と、
前記決済処理に対して付された識別情報及び前記記憶手段が記憶した処理ステータス情報に基づいて、決済処理の処理過程における不具合の発生個所を判定する不具合判定手段
として動作させる、サーバプログラム。
A payment server device that includes a communication unit that communicates with a user terminal device and performs a payment process related to payment of a product,
Storage means for storing processing status information related to the payment processing in association with identification information given to the payment processing;
A server program that operates as a failure determination unit that determines a location where a failure has occurred in a processing process of a payment process, based on identification information given to the payment process and processing status information stored in the storage unit.
JP2018038636A 2018-03-05 2018-03-05 Payment system, sales server device, payment server device and server program Active JP6482700B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018038636A JP6482700B2 (en) 2018-03-05 2018-03-05 Payment system, sales server device, payment server device and server program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018038636A JP6482700B2 (en) 2018-03-05 2018-03-05 Payment system, sales server device, payment server device and server program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014097088A Division JP6353693B2 (en) 2014-05-08 2014-05-08 Payment system, user terminal device, sales server device, payment method, and computer program

Publications (2)

Publication Number Publication Date
JP2018110024A JP2018110024A (en) 2018-07-12
JP6482700B2 true JP6482700B2 (en) 2019-03-13

Family

ID=62844596

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018038636A Active JP6482700B2 (en) 2018-03-05 2018-03-05 Payment system, sales server device, payment server device and server program

Country Status (1)

Country Link
JP (1) JP6482700B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7027355B2 (en) * 2019-01-29 2022-03-01 株式会社三共 Pachinko machine
JP2020120721A (en) * 2019-01-29 2020-08-13 株式会社三共 Game machine
JP2020120717A (en) * 2019-01-29 2020-08-13 株式会社三共 Game machine
KR102407253B1 (en) * 2021-08-31 2022-06-10 쿠팡 주식회사 Operating method for providing payment process information and electronic apparatus supporting thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009116894A (en) * 2001-08-09 2009-05-28 Paybyclick Corp System and method for electronic commerce transaction
JP5164238B2 (en) * 2006-05-02 2013-03-21 楽天株式会社 Payment system, server device, payment method, payment processing method, and payment processing program
JP4770649B2 (en) * 2006-09-07 2011-09-14 富士電機リテイルシステムズ株式会社 Payment terminal device
JP2011186660A (en) * 2010-03-05 2011-09-22 Yasushi Sato Electronic commerce system, settlement server and program

Also Published As

Publication number Publication date
JP2018110024A (en) 2018-07-12

Similar Documents

Publication Publication Date Title
JP6482700B2 (en) Payment system, sales server device, payment server device and server program
US9489662B2 (en) Apparatus and method for storing electronic receipts on a unified card or smartphone
US20020072931A1 (en) System and method to provide financial rewards and other incentives to users of personal transaction devices
JP5711848B1 (en) Portable information processing apparatus, settlement system, information processing program, and information processing method
US11694182B2 (en) Systems and methods for displaying payment device specific functions
JP6353693B2 (en) Payment system, user terminal device, sales server device, payment method, and computer program
JP2015185089A (en) Shop settlement terminal, mobile terminal, and shop settlement system
JP2003520372A (en) Secure e-commerce system
KR20120098508A (en) Method for buying article and therefore sopping system
WO2012079145A1 (en) Method and system for product or service source authentication
WO2004104885A1 (en) Electronic settlement method by conditional trade
JP6648964B2 (en) Payment system and fraudulent acquisition prevention method
US20090063848A1 (en) Method and system for sending/receiving data, central apparatus, and computer readable storage medium thereof
JP2008097289A (en) Recording medium, information processing system, and information processing method
JP6031407B2 (en) Settlement terminal device, connection destination switching method and program in the same device
JP6495687B2 (en) Portable information processing apparatus, settlement system, information processing program, and information processing method
US20160078422A1 (en) System and method for enhancing rfid tagged products in packages with multiple products
JP4579618B2 (en) Payment server and payment request server
JPH0981631A (en) Software data distributing and selling device
TW201415389A (en) Communications system, computing devices and methods for securely exchanging data
KR101685281B1 (en) Method and apparatus for selling goods of vending machine using mobile messenger
JP5552030B2 (en) System and method for sale and delivery of goods
JP5918995B2 (en) Payment processing method and bank server used for the payment processing
CN100388152C (en) Electronic device, device function control method, and server
KR20010097114A (en) The record media having electronic money function, the cd electronic money automatic manufacturer and the electronic settlement commerce system using cd electronic money

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181226

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190212

R150 Certificate of patent or registration of utility model

Ref document number: 6482700

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250