JP7022108B2 - Payment processing method and payment processing device - Google Patents

Payment processing method and payment processing device Download PDF

Info

Publication number
JP7022108B2
JP7022108B2 JP2019214153A JP2019214153A JP7022108B2 JP 7022108 B2 JP7022108 B2 JP 7022108B2 JP 2019214153 A JP2019214153 A JP 2019214153A JP 2019214153 A JP2019214153 A JP 2019214153A JP 7022108 B2 JP7022108 B2 JP 7022108B2
Authority
JP
Japan
Prior art keywords
payment
user
account
balance
code
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
JP2019214153A
Other languages
Japanese (ja)
Other versions
JP2021086353A (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.)
KDDI Corp
Original Assignee
KDDI Corp
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 KDDI Corp filed Critical KDDI Corp
Priority to JP2019214153A priority Critical patent/JP7022108B2/en
Priority to US17/098,819 priority patent/US20210158337A1/en
Priority to CN202011286233.4A priority patent/CN112862473A/en
Publication of JP2021086353A publication Critical patent/JP2021086353A/en
Application granted granted Critical
Publication of JP7022108B2 publication Critical patent/JP7022108B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、決済処理方法及び決済処理装置に関する。 The present invention relates to a payment processing method and a payment processing device.

QRコード(登録商標)等の二次元バーコードを用いたコード決済が普及している(例えば、特許文献1、特許文献2を参照)。コード決済は、店舗側が表示した二次元バーコードをユーザ端末により読み取るか、ユーザ端末が表示した二次元バーコードを店舗側が読み取ることにより決済が行われる。 Code payment using a two-dimensional bar code such as a QR code (registered trademark) has become widespread (see, for example, Patent Document 1 and Patent Document 2). In the code payment, the payment is made by reading the two-dimensional bar code displayed by the store side by the user terminal or by reading the two-dimensional bar code displayed by the user terminal by the store side.

特許6528160号公報Japanese Patent No. 6528160 特許6473539号公報Japanese Patent No. 6473539

従来のコード決済では、二次元バーコードが読み取られた後に、コード決済に対応する口座の残高が支払金額よりも少ないと判定すると、エラーメッセージ等を表示し、決済を中断することから、決済が中断されるまでに時間がかかるという問題があった。 In the conventional code payment, if it is determined that the balance of the account corresponding to the code payment is less than the payment amount after the two-dimensional bar code is read, an error message etc. is displayed and the payment is interrupted, so that the payment is completed. There was a problem that it took time to be interrupted.

そこで、本発明はこれらの点に鑑みてなされたものであり、決済を開始する前に口座の残高が不足する可能性が高いと判断される場合に、決済を速やかに中断することができる決済処理方法及び決済処理装置を提供することを目的とする。 Therefore, the present invention has been made in view of these points, and if it is determined that there is a high possibility that the balance of the account will be insufficient before the settlement is started, the settlement can be promptly interrupted. It is an object of the present invention to provide a processing method and a payment processing device.

本発明の第1の態様に係る決済処理方法は、コンピュータが実行する、コードを利用した決済手段に関連して前記コードの発行要求を行ったユーザを識別するユーザ識別情報を前記ユーザの端末から取得するステップと、取得された前記ユーザ識別情報に対応するユーザの前記決済手段に関連付けられている口座が決済可能な状態を示す所定条件を満たすか否かを判定するステップと、前記口座が前記所定条件を満たすと判定された場合に、前記ユーザの端末に表示される前記ユーザに対応する前記コードに関するトークンを生成するステップと、を備える。 In the payment processing method according to the first aspect of the present invention, user identification information for identifying a user who has made a request for issuance of the code in relation to a payment means using a code executed by a computer is transmitted from the terminal of the user. The step of acquiring, the step of determining whether or not the account associated with the payment means of the user corresponding to the acquired user identification information satisfies a predetermined condition indicating a state in which payment is possible, and the step that the account is said to be said. The present invention comprises a step of generating a token relating to the code corresponding to the user displayed on the terminal of the user when it is determined that a predetermined condition is satisfied.

本発明の第2の態様に係る決済処理装置は、コードを利用した決済手段に関連して前記コードの発行要求を行ったユーザを識別するユーザ識別情報を前記ユーザの端末から取得する取得部と、前記取得部が取得した前記ユーザ識別情報に対応するユーザの前記決済手段に関連付けられている口座が決済可能な状態を示す所定条件を満たすか否かを判定する判定部と、前記口座が前記所定条件を満たすと前記判定部が判定した場合に、前記ユーザの端末に表示される前記ユーザに対応する前記コードに関するトークンを生成するトークン生成部と、を備える。 The payment processing device according to the second aspect of the present invention includes an acquisition unit that acquires user identification information that identifies a user who has made a request for issuance of the code in relation to a payment means using the code from the terminal of the user. A determination unit for determining whether or not the account associated with the payment means of the user corresponding to the user identification information acquired by the acquisition unit satisfies a predetermined condition indicating a state in which payment is possible, and the account. It includes a token generation unit that generates a token related to the code corresponding to the user displayed on the terminal of the user when the determination unit determines that a predetermined condition is satisfied.

本発明によれば、決済時に口座の残高が不足する可能性が高い場合に決済を速やかに中断することができるという効果を奏する。 According to the present invention, there is an effect that the settlement can be promptly interrupted when there is a high possibility that the balance of the account will be insufficient at the time of settlement.

決済処理装置の概要を示す図である。It is a figure which shows the outline of the payment processing apparatus. 決済処理装置の機能構成を示す図である。It is a figure which shows the functional structure of the payment processing apparatus. ユーザ端末の機能構成を示す図である。It is a figure which shows the functional structure of a user terminal. 店舗端末の機能構成を示す図である。It is a figure which shows the functional structure of a store terminal. コード決済におけるユーザの口座の残高が不足しているときの口座残高、支払金額、第2の決済手段の決済枠、口座への入金額、第2の決済手段の請求額の関係を示す図である。It is a diagram showing the relationship between the account balance when the balance of the user's account in code payment is insufficient, the payment amount, the payment limit of the second payment method, the deposit amount to the account, and the billing amount of the second payment method. be. 決済処理装置が決済を行うまでの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of processing until the payment processing apparatus makes a payment. 決済処理装置における、コード決済に関連付けられている口座の残高が不足状態となっている場合の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of processing when the balance of the account associated with the code payment is insufficient in the payment processing apparatus. ユーザ端末が決済要求を決済処理装置に送信する場合の処理の流れを説明する図である。It is a figure explaining the flow of processing when a user terminal sends a payment request to a payment processing device.

[決済処理装置1の概要]
図1は、決済処理装置1の概要を示す図である。決済処理装置1は、ユーザが商品を購入する場合に、商品の支払金額に対応する決済用コードをユーザ端末2又は店舗端末3から受信したことに応じて決済を行うコンピュータである。決済用コードは、ユーザ端末2又は店舗端末3において読み取れるテキスト又は画像であり、決済時に用いられるコードである。
[Overview of payment processing device 1]
FIG. 1 is a diagram showing an outline of the payment processing device 1. The payment processing device 1 is a computer that makes a payment when a user purchases a product, in response to receiving a payment code corresponding to the payment amount of the product from the user terminal 2 or the store terminal 3. The payment code is a text or an image that can be read by the user terminal 2 or the store terminal 3, and is a code used at the time of payment.

決済処理装置1は、携帯電話網及びインターネット等の通信ネットワークを介して、ユーザ端末2と、店舗端末3とに接続されている。ユーザ端末2は、ユーザが使用する携帯端末であり、例えばスマートフォン、ウェアラブルデバイス、タブレット又はパーソナルコンピュータである。店舗端末3は、例えば、POS端末である。 The payment processing device 1 is connected to the user terminal 2 and the store terminal 3 via a communication network such as a mobile phone network and the Internet. The user terminal 2 is a mobile terminal used by the user, for example, a smartphone, a wearable device, a tablet, or a personal computer. The store terminal 3 is, for example, a POS terminal.

以下、コード決済により決済が行われる例を参照しながら、商品の代金の決済が行われるまでの流れを説明する。図1は、店舗端末3が決済用コードを読み取ったことを決済処理装置1で特定したことに応じて決済を行う例を示している。なお、本実施形態において、第1の決済手段としてのコード決済には、金額を支払うための支払手段が決済処理装置1において関連付けられている。本実施形態では、第1の決済手段に関連付けられた支払手段として、プリペイド式の口座で残高が管理され、支払金額が残高から支払われるプリペイド口座支払い手段が関連付けられているものとする。プリペイド口座は、ユーザが保有するプリペイドカードに関連付けられていてもよい。 Hereinafter, the flow until the payment of the product price is made will be described with reference to an example in which the payment is made by the code payment. FIG. 1 shows an example in which payment is performed according to the fact that the store terminal 3 has read the payment code and is specified by the payment processing device 1. In the present embodiment, the code payment as the first payment means is associated with the payment means for paying the amount in the payment processing device 1. In the present embodiment, it is assumed that the payment method associated with the first payment method is associated with a prepaid account payment method in which the balance is managed in a prepaid account and the payment amount is paid from the balance. The prepaid account may be associated with a prepaid card held by the user.

まず、ユーザは、店舗において商品を購入する場合に、決済用コードをユーザ端末2に表示させるための操作を行う。ユーザ端末2は、決済用コードの取得要求と、ユーザIDとを決済処理装置1に送信する(図1における(1))。 First, the user performs an operation for displaying the payment code on the user terminal 2 when purchasing a product at a store. The user terminal 2 transmits a payment code acquisition request and a user ID to the payment processing device 1 ((1) in FIG. 1).

決済処理装置1は、ユーザ端末2から、決済用コードの取得要求と、ユーザIDとを受信すると、ユーザIDに関連付けられている第1の決済手段としてのコード決済に関連付けられているユーザの口座が決済可能な状態を示す第1の条件(所定条件)を満たすか否かを判定する。ここで、第1の条件は、口座の残高が所定金額以上であることである。すなわち、決済処理装置1は、ユーザの口座の残高が所定金額以上であるか否かを判定する(図1における(2))。 When the payment processing device 1 receives the payment code acquisition request and the user ID from the user terminal 2, the user's account associated with the code payment as the first payment means associated with the user ID. Determines whether or not the first condition (predetermined condition) indicating the state in which settlement is possible is satisfied. Here, the first condition is that the balance of the account is equal to or greater than the predetermined amount. That is, the payment processing device 1 determines whether or not the balance of the user's account is equal to or greater than a predetermined amount ((2) in FIG. 1).

決済処理装置1は、ユーザの口座の残高が所定金額以上であると判定すると、決済用トークンを生成する(図1における(3))。ここで、所定金額は、例えば0円である。決済用トークンは、コードの取得要求に対してワンタイムに発行され、ユーザが店舗に提示する決済用コードをユーザ端末2が生成する際に用いるデータ列である。決済処理装置1は、生成した決済用トークンと、ユーザIDとを関連付けて記憶媒体に記憶する。決済用トークンには、決済処理装置1を保有している決済事業者を識別する決済事業者情報、決済用トークンの有効期限を示す期限情報の少なくともいずれかが含まれていてもよい。また、決済処理装置1は、決済用トークンを生成した時間と決済用トークンを関連付けて記憶してもよい。 When the payment processing device 1 determines that the balance of the user's account is equal to or greater than a predetermined amount, the payment processing device 1 generates a payment token ((3) in FIG. 1). Here, the predetermined amount is, for example, 0 yen. The payment token is a data string that is issued one-time in response to a code acquisition request and is used when the user terminal 2 generates a payment code presented by the user to the store. The payment processing device 1 stores the generated payment token in association with the user ID in the storage medium. The payment token may include at least one of payment business information that identifies the payment business operator that owns the payment processing device 1 and expiration date information that indicates the expiration date of the payment token. Further, the payment processing device 1 may store the time when the payment token is generated in association with the payment token.

決済処理装置1は、生成した決済用トークンをユーザ端末2に送信する(図1における(4))。決済処理装置1は、決済用トークンを暗号化した後に、暗号化した決済用トークンをユーザ端末2に送信してもよい。 The payment processing device 1 transmits the generated payment token to the user terminal 2 ((4) in FIG. 1). The payment processing device 1 may transmit the encrypted payment token to the user terminal 2 after encrypting the payment token.

ユーザ端末2は、受信した決済用トークンに基づいて決済用コードを生成して表示させる(図1における(5))。
店舗端末3は、例えば店員の撮像操作により、ユーザ端末2に表示された決済用コードを読み取る(図1における(6))。店舗端末3は、店舗IDと、ユーザが支払う支払金額を含む決済情報と、読み取った決済用コードが示す決済用トークンとを含む決済要求を決済処理装置1に送信する(図1における(7))。決済情報には、支払い対象商品に関する情報が含まれていてもよい。また、店舗IDは、または店舗内に設置された個々の端末を識別可能な情報であってもよい。また、店舗IDには、店舗の名称やブランドを識別する店舗ブランド情報が含まれていてもよい。
The user terminal 2 generates and displays a payment code based on the received payment token ((5) in FIG. 1).
The store terminal 3 reads the payment code displayed on the user terminal 2 by, for example, an image pickup operation of a store clerk ((6) in FIG. 1). The store terminal 3 transmits a payment request including a store ID, payment information including a payment amount paid by the user, and a payment token indicated by the read payment code to the payment processing device 1 ((7) in FIG. 1). ). The payment information may include information about the product to be paid. Further, the store ID may be information that can identify individual terminals installed in the store. Further, the store ID may include store brand information that identifies the store name and brand.

決済処理装置1は、店舗端末3から決済要求を取得すると、受信した決済要求に含まれる店舗IDにより識別される店舗が、コード決済の利用が可能な店舗(コード決済の加盟店)として決済処理装置1が登録しているか否かを判定し、登録されていると判定した場合に、決済用トークンに関連付けられている第1の決済手段としてのコード決済に対応するユーザの口座の残高を特定する。そして、決済処理装置1は、決済要求に含まれる決済用トークンに関連付けられている第1の決済手段としてのコード決済に対応するユーザの口座の残高が、支払金額以上であるかを判定する(図1における(8))。決済処理装置1は、この判定に用いられる支払金額として、受信した決済要求に含まれる決済情報が示す支払金額を利用する。 When the payment processing device 1 acquires a payment request from the store terminal 3, the store identified by the store ID included in the received payment request is settled as a store that can use code payment (a member store of code payment). It is determined whether or not the device 1 is registered, and if it is determined that the device 1 is registered, the balance of the user's account corresponding to the code payment as the first payment means associated with the payment token is specified. do. Then, the payment processing device 1 determines whether the balance of the user's account corresponding to the code payment as the first payment means associated with the payment token included in the payment request is equal to or greater than the payment amount (). (8) in FIG. The payment processing device 1 uses the payment amount indicated by the payment information included in the received payment request as the payment amount used for this determination.

決済処理装置1は、コード決済に対応するユーザの口座の残高が支払金額以上である場合には、支払金額の決済を行い、口座の残高が支払金額未満の場合には、ユーザに関連付けられた第2の決済手段が第2の条件を満たすかを判定する(図1における(9))。 The payment processing device 1 settles the payment amount when the balance of the user's account corresponding to the code payment is equal to or greater than the payment amount, and when the balance of the account is less than the payment amount, the payment processing device 1 is associated with the user. It is determined whether the second payment means satisfies the second condition ((9) in FIG. 1).

決済処理装置1は、第2の決済手段が第2の条件を満たすと判定すると、コード決済におけるユーザの口座の残高が不足することを許容して、コード決済により支払金額の決済を行う(図1の(10))。ここで決済処理装置1は、決済を実行する際、ユーザの口座への入金は行わない。これにより、ユーザの口座の残高は0円未満となる。なお、本実施形態では、ユーザの口座の残高が0円未満となる例について説明するが、これに限らない。ユーザの口座の残高を0円とするとともに、ユーザの債務の残高を管理するとともに、ユーザに債務があることを示す情報を関連付けるようにしてもよい。 When the payment processing device 1 determines that the second payment means satisfies the second condition, the payment processing device 1 allows the balance of the user's account in the code payment to be insufficient, and setstle the payment amount by the code payment (FIG. 1 (10)). Here, the payment processing device 1 does not deposit money into the user's account when executing payment. As a result, the balance of the user's account becomes less than 0 yen. In this embodiment, an example in which the balance of the user's account is less than 0 yen will be described, but the present invention is not limited to this. The balance of the user's account may be set to 0 yen, the balance of the user's debt may be managed, and information indicating that the user has debt may be associated.

その後、ユーザの口座の残高が0円未満の状態で商品の購入を行い、ユーザが決済用コードをユーザ端末2に表示させるための操作を行うと、ユーザ端末2は、決済用コードの取得要求と、ユーザIDとを決済処理装置1に送信する(図1における(1))。 After that, when the product is purchased with the balance of the user's account being less than 0 yen and the user performs an operation for displaying the payment code on the user terminal 2, the user terminal 2 requests acquisition of the payment code. And the user ID are transmitted to the payment processing device 1 ((1) in FIG. 1).

決済処理装置1は、ユーザ端末2から、決済用コードの取得要求と、ユーザIDとを受信すると、ユーザIDに関連付けられている第1の決済手段としてのコード決済に関連付けられているユーザの口座の残高が所定金額以上であるか否かを判定する(図1における(2))。ここでは、ユーザの口座の残高は0円未満であることから、決済処理装置1は、決済用トークンを生成せずに、決済用コードが表示できない旨を示すエラーメッセージをユーザ端末2に送信する。ユーザ端末2は、受信したエラーメッセージを表示させる。 When the payment processing device 1 receives the payment code acquisition request and the user ID from the user terminal 2, the user's account associated with the code payment as the first payment means associated with the user ID. It is determined whether or not the balance of is equal to or greater than the predetermined amount ((2) in FIG. 1). Here, since the balance of the user's account is less than 0 yen, the payment processing device 1 sends an error message indicating that the payment code cannot be displayed to the user terminal 2 without generating the payment token. .. The user terminal 2 displays the received error message.

決済処理装置1は、以上のように動作することで、決済時に口座の残高が不足する可能性が高い場合に決済を速やかに中断することができる。これにより、ユーザは現金による支払に切り替えたり、口座に入金を行う等の対応を速やかに行うことができる。 By operating as described above, the payment processing device 1 can promptly suspend the payment when there is a high possibility that the balance of the account will be insufficient at the time of payment. As a result, the user can promptly take measures such as switching to cash payment or depositing money in the account.

また、一般的に行われているオートチャージは、残高が不足するような決済では、自動的に口座に入金されるため、金銭をどの程度消費したのかユーザが把握しにくく、金銭の消費上限を管理しようとするユーザには不向きの場合がある。これに対し、決済処理装置1は、決済時に残高不足が生じても口座に自動的に入金することなく、残高が不足することを許容して、コード決済により支払金額の決済を行い、次回以降の支払時に、決済用コードが表示できない旨を示すエラーメッセージを表示する。これにより、金銭消費の管理を求めるプリペイド式口座を利用するユーザに対して、口座の残高が不足していることを認識させることができる。これにより、ユーザは、金銭消費を管理し易くなる。
以下、決済処理装置1、ユーザ端末2及び店舗端末3の構成の詳細を説明する。
In addition, since auto-charging, which is generally performed, is automatically credited to the account when the balance is insufficient, it is difficult for the user to grasp how much money has been consumed, and the upper limit of money consumption is set. It may not be suitable for users who want to manage it. On the other hand, the payment processing device 1 allows the balance to be insufficient without automatically depositing to the account even if the balance is insufficient at the time of payment, and the payment amount is settled by code payment, and the payment amount is settled from the next time onward. At the time of payment, an error message indicating that the payment code cannot be displayed is displayed. This makes it possible for a user who uses a prepaid account that seeks management of money consumption to recognize that the balance of the account is insufficient. This makes it easier for the user to manage money consumption.
Hereinafter, the details of the configuration of the payment processing device 1, the user terminal 2, and the store terminal 3 will be described.

[決済処理装置1の機能構成]
図2は、決済処理装置1の機能構成を示す図である。決済処理装置1は、通信部11と、記憶部12と、制御部13とを有する。
[Functional configuration of payment processing device 1]
FIG. 2 is a diagram showing a functional configuration of the payment processing device 1. The payment processing device 1 has a communication unit 11, a storage unit 12, and a control unit 13.

通信部11は、インターネット等のネットワークを介してユーザ端末2及び店舗端末3とデータを送受信するための通信インターフェースである。 The communication unit 11 is a communication interface for transmitting and receiving data to and from the user terminal 2 and the store terminal 3 via a network such as the Internet.

記憶部12は、各種のデータを記憶する記憶媒体であり、ROM(Read Only Memory)、RAM(Random Access Memory)、及びハードディスク等を有する。記憶部12は、制御部13が実行するプログラムを記憶する。記憶部12は、制御部13を、設定部131、発行要求取得部132、第1判定部133、トークン生成部134、送信部135、決済要求取得部136、第2判定部137、決済部138、及び通知部139として機能させる決済処理用プログラムを記憶する。 The storage unit 12 is a storage medium for storing various types of data, and includes a ROM (Read Only Memory), a RAM (Random Access Memory), a hard disk, and the like. The storage unit 12 stores a program executed by the control unit 13. The storage unit 12 has the control unit 13, the setting unit 131, the issuance request acquisition unit 132, the first determination unit 133, the token generation unit 134, the transmission unit 135, the settlement request acquisition unit 136, the second determination unit 137, and the settlement unit 138. , And a payment processing program that functions as a notification unit 139.

また、記憶部12は、ユーザのユーザIDと、コード決済に関連付けられている当該ユーザのプリペイド式口座とを関連付けた口座情報を記憶する。また、記憶部12は、ユーザのユーザIDと、当該ユーザの第2の決済手段を特定するための情報とを関連付けて記憶する。 Further, the storage unit 12 stores the account information associated with the user ID of the user and the prepaid account of the user associated with the code payment. Further, the storage unit 12 stores the user ID of the user in association with the information for specifying the second payment means of the user.

第2の決済手段は、例えば、通信サービスを提供する事業者が携帯電話網の利用に係る通信料金と併せて、各種サービスの利用料金を請求する決済方法であるキャリア決済、又はクレジットカード決済等の後払い決済である。ここで、コード決済の決済要求を受ける事業者と、コード決済とは異なるサービスを提供する事業者(通信サービスを提供する事業者、第2の決済手段を提供する事業者)とは同一の事業者である。 The second payment method is, for example, carrier payment, credit card payment, etc., which is a payment method in which a business operator providing a communication service charges a usage fee for various services together with a communication fee related to the use of a mobile phone network. It is a postpaid settlement. Here, the business operator that receives the payment request for code payment and the business operator that provides a service different from the code payment (the business operator that provides the communication service, the business operator that provides the second payment method) are the same business. Is a person.

また、第2の決済手段を特定するための情報は、例えば、キャリア決済に関する契約を識別する契約ID、クレジットカードのカード番号である。なお、第2の決済手段を特定するための情報は、ユーザにより任意で決済処理装置1に登録されるものであり、ユーザの中には、第2の決済手段を特定するための情報が関連付けられていないユーザが存在するものとする。 The information for specifying the second payment means is, for example, a contract ID for identifying a contract related to carrier payment, and a credit card card number. The information for specifying the second payment means is arbitrarily registered in the payment processing device 1 by the user, and the information for specifying the second payment means is associated with the user. It is assumed that there is a user who has not been.

制御部13は、例えばCPU(Central Processing Unit)である。制御部13は、記憶部12に記憶された決済処理用プログラムを実行することにより、設定部131、発行要求取得部132、第1判定部133、トークン生成部134、送信部135、決済要求取得部136、第2判定部137、決済部138、及び通知部139として機能する。制御部13の各部の動作の詳細については後述する。 The control unit 13 is, for example, a CPU (Central Processing Unit). By executing the payment processing program stored in the storage unit 12, the control unit 13 executes the setting unit 131, the issuance request acquisition unit 132, the first determination unit 133, the token generation unit 134, the transmission unit 135, and the payment request acquisition. It functions as a unit 136, a second determination unit 137, a settlement unit 138, and a notification unit 139. The details of the operation of each part of the control unit 13 will be described later.

[ユーザ端末2の機能構成]
図3は、ユーザ端末2の機能構成を示す図である。ユーザ端末2は、操作部21と、通信部22と、表示部23と、記憶部24と、制御部25とを有する。制御部25は、操作受付部251と、要求送信部252と、コード生成部253とを有する。
[Functional configuration of user terminal 2]
FIG. 3 is a diagram showing a functional configuration of the user terminal 2. The user terminal 2 has an operation unit 21, a communication unit 22, a display unit 23, a storage unit 24, and a control unit 25. The control unit 25 includes an operation reception unit 251, a request transmission unit 252, and a code generation unit 253.

操作部21は、ユーザの操作を受け付ける操作デバイスであり、例えば表示部23の表面に設けられたタッチパネルである。操作部21は、ユーザがタッチした位置を示す信号を操作受付部251に通知する。 The operation unit 21 is an operation device that accepts user operations, and is, for example, a touch panel provided on the surface of the display unit 23. The operation unit 21 notifies the operation reception unit 251 of a signal indicating the position touched by the user.

通信部22は、例えば携帯電話網の基地局との間でデータを送受信するための無線通信インターフェースである。通信部22は、決済処理装置1から受信した決済用トークン等をコード生成部253に入力する。 The communication unit 22 is, for example, a wireless communication interface for transmitting / receiving data to / from a base station of a mobile phone network. The communication unit 22 inputs the payment token or the like received from the payment processing device 1 into the code generation unit 253.

表示部23は、各種の情報を表示するディスプレイである。表示部23は、コード生成部253の制御に基づいて、決済用コードを表示する。 The display unit 23 is a display that displays various types of information. The display unit 23 displays the payment code based on the control of the code generation unit 253.

記憶部24は、ROM及びRAM等を含む記憶媒体である。記憶部24は、制御部25が実行するプログラムを記憶している。記憶部24は、制御部25を、操作受付部251、要求送信部252、及びコード生成部253として機能させるプログラムを記憶する。また、記憶部24は、決済処理装置1から受信した決済用トークン、及び決済用トークンに基づいて生成された決済用コード等を記憶する。 The storage unit 24 is a storage medium including a ROM, RAM, and the like. The storage unit 24 stores a program executed by the control unit 25. The storage unit 24 stores a program that causes the control unit 25 to function as an operation reception unit 251, a request transmission unit 252, and a code generation unit 253. Further, the storage unit 24 stores the payment token received from the payment processing device 1, the payment code generated based on the payment token, and the like.

制御部25は、例えばCPUであり、記憶部24に記憶されたプログラムを実行することにより、操作受付部251、要求送信部252及びコード生成部253として機能する。 The control unit 25 is, for example, a CPU, and functions as an operation reception unit 251, a request transmission unit 252, and a code generation unit 253 by executing a program stored in the storage unit 24.

操作受付部251は、操作部21から入力された信号に基づいて、ユーザの操作内容を特定する。操作受付部251は、特定した操作内容が、決済用コードをユーザ端末2に表示させるための操作である場合に、操作内容を要求送信部252に通知する。要求送信部252は、操作受付部251が、決済用コードをユーザ端末2に表示させるための操作を受け付けた場合に、通信部22を介して、ユーザIDと、決済用コードの取得要求とを決済処理装置1に送信する。 The operation reception unit 251 specifies the operation content of the user based on the signal input from the operation unit 21. When the specified operation content is an operation for displaying the payment code on the user terminal 2, the operation reception unit 251 notifies the request transmission unit 252 of the operation content. When the operation reception unit 251 receives an operation for displaying the payment code on the user terminal 2, the request transmission unit 252 receives the user ID and the payment code acquisition request via the communication unit 22. It is transmitted to the payment processing device 1.

コード生成部253は、決済処理装置1が送信した決済用トークンを受信すると、決済用トークンに基づく決済用コードを生成する。コード生成部253は、例えば、予め定められた規則に基づいて決済用コードを生成する。コード生成部253は、生成した決済用コードを表示部23に表示させる。 Upon receiving the payment token transmitted by the payment processing device 1, the code generation unit 253 generates a payment code based on the payment token. The code generation unit 253 generates, for example, a payment code based on a predetermined rule. The code generation unit 253 causes the display unit 23 to display the generated payment code.

[店舗端末3の機能構成]
図4は、店舗端末3の機能構成を示す図である。店舗端末3は、例えばPOS端末であり、操作部31と、読取部32と、通信部33と、表示部34と、記憶部35と、制御部36とを有する。
[Functional configuration of store terminal 3]
FIG. 4 is a diagram showing a functional configuration of the store terminal 3. The store terminal 3 is, for example, a POS terminal, and has an operation unit 31, a reading unit 32, a communication unit 33, a display unit 34, a storage unit 35, and a control unit 36.

操作部31は、ユーザの操作を受け付ける操作デバイスであり、例えばユーザが購入する商品を選択するためのボタンや、表示部34の表面に設けられたタッチパネルである。 The operation unit 31 is an operation device that accepts the user's operation, for example, a button for selecting a product to be purchased by the user, or a touch panel provided on the surface of the display unit 34.

読取部32は、例えば、バーコードリーダ及びカメラであり、ユーザが購入する商品に付されているバーコードや、ユーザ端末2が表示した決済用コードを読み取る。読取部32は、読み取ったバーコード及び決済用コードが示す情報を制御部36に出力する。 The reading unit 32 is, for example, a bar code reader and a camera, and reads a bar code attached to a product purchased by the user or a payment code displayed by the user terminal 2. The reading unit 32 outputs the information indicated by the read barcode and the payment code to the control unit 36.

通信部33は、例えば決済処理装置1との間でデータを送受信するための通信インターフェースである。通信部33は、制御部36の制御に応じて、決済用トークン、決済情報、店舗IDを含む決済要求を決済処理装置1に送信する。 The communication unit 33 is, for example, a communication interface for transmitting / receiving data to / from the payment processing device 1. The communication unit 33 transmits a payment request including a payment token, payment information, and a store ID to the payment processing device 1 under the control of the control unit 36.

表示部34は、各種の情報を表示するディスプレイである。表示部34は、例えば、決済金額を表示する。 The display unit 34 is a display that displays various types of information. The display unit 34 displays, for example, the settlement amount.

記憶部35は、ROM及びRAM等を含む記憶媒体である。記憶部35は、制御部36が実行するプログラムを記憶している。記憶部35は、制御部36を、決済情報生成部361、トークン取得部362、及び決済情報送信部363として機能させるプログラムを記憶する。また、記憶部35は、商品IDと、商品の価格とを関連付けた商品DBを記憶する。 The storage unit 35 is a storage medium including a ROM, RAM, and the like. The storage unit 35 stores a program executed by the control unit 36. The storage unit 35 stores a program that causes the control unit 36 to function as a payment information generation unit 361, a token acquisition unit 362, and a payment information transmission unit 363. Further, the storage unit 35 stores a product DB in which the product ID and the price of the product are associated with each other.

制御部36は、例えばCPUであり、記憶部35に記憶されたプログラムを実行することにより、決済情報生成部361、トークン取得部362、及び決済情報送信部363として機能する。 The control unit 36 is, for example, a CPU, and functions as a payment information generation unit 361, a token acquisition unit 362, and a payment information transmission unit 363 by executing a program stored in the storage unit 35.

決済情報生成部361は、決済対象の一以上の商品を特定し、決済情報を生成する。具体的には、決済情報生成部361は、操作部31において店員が入力した商品ID又は読取部32が商品に付されたバーコードから読み取った商品IDを取得することにより、取得した商品IDの商品を決済対象の商品と特定する。決済情報生成部361は、記憶部35に記憶されている商品DBを参照し、取得した商品IDに関連付けられている商品の価格を特定する。決済情報生成部361は、操作部31において店員が入力した商品ID又は読取部32が商品に付されたバーコードから読み取った商品IDを一以上取得し、当該商品IDから特定した商品の価格を集計する。決済情報生成部361は、操作部31において精算操作を受け付けると、集計した商品の価格を決済金額に決定する。決済情報生成部361は、決定した決済金額を含む決済情報を生成する。決済情報には、商品IDで特定される商品に関する情報、例えば、商品の属性、名称、製造者、販売者、が含まれていてもよい。 The payment information generation unit 361 identifies one or more products to be settled and generates payment information. Specifically, the payment information generation unit 361 acquires the product ID input by the clerk in the operation unit 31 or the product ID read from the bar code attached to the product by the reading unit 32, so that the acquired product ID can be obtained. Identify the product as the product to be settled. The payment information generation unit 361 refers to the product DB stored in the storage unit 35, and specifies the price of the product associated with the acquired product ID. The payment information generation unit 361 acquires one or more product IDs input by the clerk in the operation unit 31 or the product ID read from the barcode attached to the product by the reading unit 32, and obtains the price of the product specified from the product ID. Tally. When the settlement information generation unit 361 receives the settlement operation in the operation unit 31, the settlement information generation unit 361 determines the total price of the product as the settlement amount. The payment information generation unit 361 generates payment information including the determined payment amount. The payment information may include information about the product specified by the product ID, for example, the attribute, name, manufacturer, and seller of the product.

トークン取得部362は、読取部32が、ユーザ端末2に表示された決済用コードを読み取ることにより、決済用コードから抽出した情報を、決済用トークンとして取得する。 The token acquisition unit 362 acquires the information extracted from the payment code as a payment token by the reading unit 32 reading the payment code displayed on the user terminal 2.

決済情報送信部363は、決済情報生成部361が決済情報を生成し、トークン取得部362が決済用トークンを取得すると、通信部33を介して、決済用トークンと、決済情報と、店舗IDとを決済処理装置1に送信する。 In the payment information transmission unit 363, when the payment information generation unit 361 generates payment information and the token acquisition unit 362 acquires the payment token, the payment token, the payment information, and the store ID are displayed via the communication unit 33. Is transmitted to the payment processing device 1.

[制御部13の各部の動作]
続いて、制御部13の各部の動作について説明する。
設定部131は、コード決済の決済用コードをユーザ端末2に表示させるか否かの判定に用いる所定金額を設定する。例えば、設定部131は、コード決済に関するサービスを提供する事業者から所定金額を設定する情報を取得し、当該情報に基づいて所定金額を設定する。設定部131は、所定金額を示す情報を記憶部12に記憶させる。
[Operation of each part of control unit 13]
Subsequently, the operation of each unit of the control unit 13 will be described.
The setting unit 131 sets a predetermined amount of money to be used for determining whether or not to display the payment code for code payment on the user terminal 2. For example, the setting unit 131 acquires information for setting a predetermined amount from a business operator that provides a service related to code payment, and sets a predetermined amount based on the information. The setting unit 131 stores information indicating a predetermined amount of money in the storage unit 12.

なお、設定部131は、予め定められた金額を上限として所定金額を設定してもよい。このようにすることで、決済処理装置1は、口座の残高が支払金額を超えているにもかかわらず、決済コードが表示できなくなることを抑制することができる。 The setting unit 131 may set a predetermined amount up to a predetermined amount. By doing so, the payment processing device 1 can suppress that the payment code cannot be displayed even though the balance of the account exceeds the payment amount.

また、所定金額は、複数のユーザにおいて共通であるものとするが、これに限らず、複数のユーザのそれぞれで異なっていてもよい。この場合、設定部131は、通信部11を介して、ユーザ端末2から、ユーザIDと、所定金額を設定する情報とを取得し、当該情報に基づいて所定金額を設定してもよい。そして、設定部131は、ユーザIDと、所定金額を設定する情報とを取得すると、ユーザIDと、所定金額を示す情報とを関連付けて記憶部12に記憶させるようにしてもよい。この場合、設定部131は、所定金額の設定を行っていないユーザに対応する所定金額を、コード決済に関するサービスを提供する事業者が設定した所定金額としてもよい。 Further, the predetermined amount is common to a plurality of users, but is not limited to this, and may be different for each of the plurality of users. In this case, the setting unit 131 may acquire the user ID and the information for setting the predetermined amount from the user terminal 2 via the communication unit 11 and set the predetermined amount based on the information. Then, when the setting unit 131 acquires the user ID and the information for setting the predetermined amount of money, the user ID and the information indicating the predetermined amount of money may be associated with each other and stored in the storage unit 12. In this case, the setting unit 131 may set a predetermined amount corresponding to a user who has not set a predetermined amount as a predetermined amount set by a business operator providing a service related to code payment.

発行要求取得部132は、コード決済に関連して決済用コードの発行要求を行ったユーザを識別するユーザIDをユーザ端末2から取得する。具体的には、発行要求取得部132は、ユーザ端末2から、ユーザIDを含む決済用コードの発行要求を取得することにより、ユーザIDを取得する。 The issuance request acquisition unit 132 acquires a user ID that identifies a user who has made a payment code issuance request in connection with code payment from the user terminal 2. Specifically, the issuance request acquisition unit 132 acquires a user ID by acquiring an issuance request for a payment code including a user ID from the user terminal 2.

第1判定部133は、発行要求取得部132が取得したユーザIDに対応するユーザのコード決済に関連付けられている口座が決済可能な状態を示す第1の条件を満たすか否かを判定する。第1の条件は、口座の残高が、設定部131が設定した所定金額以上であることである。第1判定部133は、発行要求取得部132が取得したユーザIDに対応するユーザのコード決済に関連付けられている口座の残高が、設定部131が設定した所定金額以上か否かを判定する。 The first determination unit 133 determines whether or not the first determination condition indicating the state in which the account associated with the code payment of the user corresponding to the user ID acquired by the issuance request acquisition unit 132 can be settled is satisfied. The first condition is that the balance of the account is equal to or greater than the predetermined amount set by the setting unit 131. The first determination unit 133 determines whether or not the balance of the account associated with the user's code payment corresponding to the user ID acquired by the issuance request acquisition unit 132 is equal to or greater than the predetermined amount set by the setting unit 131.

具体的には、まず、第1判定部133は、発行要求取得部132が取得したユーザIDに関連付けられて記憶部12に記憶されているユーザの口座の残高を特定する。また、第1判定部133は、発行要求取得部132が取得したユーザIDに対応する所定金額を特定する。例えば、第1判定部133は、発行要求取得部132が取得したユーザIDに関連付けられて所定金額を示す情報が記憶部12に記憶されているか否かを判定する。第1判定部133は、ユーザIDに関連付けられて所定金額を示す情報が記憶部12に記憶されている場合、当該情報に基づいて所定金額を特定する。第1判定部133は、ユーザIDに関連付けられて所定金額を示す情報が記憶部12に記憶されていない場合、コード決済に関するサービスを提供する事業者が設定した所定金額を特定する。そして、第1判定部133は、特定した口座の残高が、特定した所定金額以上であるか否かを判定する。 Specifically, first, the first determination unit 133 identifies the balance of the user's account stored in the storage unit 12 in association with the user ID acquired by the issuance request acquisition unit 132. Further, the first determination unit 133 specifies a predetermined amount of money corresponding to the user ID acquired by the issuance request acquisition unit 132. For example, the first determination unit 133 determines whether or not the information indicating the predetermined amount of money associated with the user ID acquired by the issuance request acquisition unit 132 is stored in the storage unit 12. When the information indicating the predetermined amount of money associated with the user ID is stored in the storage unit 12, the first determination unit 133 specifies the predetermined amount of money based on the information. When the information indicating the predetermined amount of money associated with the user ID is not stored in the storage unit 12, the first determination unit 133 specifies the predetermined amount of money set by the business operator providing the service related to the code payment. Then, the first determination unit 133 determines whether or not the balance of the specified account is equal to or greater than the specified predetermined amount.

トークン生成部134は、ユーザの口座が第1の条件を満たさないと第1判定部133が判定した場合に、ユーザ端末2に表示されるユーザに対応するコードに関する決済用トークンを生成せず、ユーザの口座が第1の条件を満たすと第1判定部133が判定した場合に、決済用トークンを生成する。具体的には、トークン生成部134は、ユーザの口座の残高が所定金額未満と第1判定部133が判定した場合に、ユーザ端末2にユーザに対応する決済用コードを表示させず、所定金額以上と判定された場合に、ユーザ端末2にユーザに対応する決済用コードを表示させる。また、トークン生成部134及び送信部135は、通知部として機能し、ユーザの口座の残高が所定金額未満と第1判定部133が判定した場合に、残高が不足していることをユーザに通知する。 When the first determination unit 133 determines that the user's account does not satisfy the first condition, the token generation unit 134 does not generate a payment token related to the code corresponding to the user displayed on the user terminal 2. When the first determination unit 133 determines that the user's account satisfies the first condition, a settlement token is generated. Specifically, when the first determination unit 133 determines that the balance of the user's account is less than the predetermined amount, the token generation unit 134 does not display the payment code corresponding to the user on the user terminal 2 and determines the predetermined amount. When it is determined as above, the user terminal 2 is made to display the payment code corresponding to the user. Further, the token generation unit 134 and the transmission unit 135 function as a notification unit, and when the first determination unit 133 determines that the balance of the user's account is less than a predetermined amount, the token generation unit 134 and the transmission unit 135 notify the user that the balance is insufficient. do.

より具体的には、まず、トークン生成部134は、ユーザの口座の残高が所定金額以上と判定された場合に、決済用コードを生成するための決済用トークンを生成する。そして、トークン生成部134は、生成した決済用トークンと、ユーザIDとを関連付けて記憶部12に記憶させる。送信部135は、トークン生成部134が決済用トークンを生成すると、当該決済用トークンを、決済用コードの発行要求を送信したユーザ端末2に送信し、ユーザ端末2に決済用コードを表示させる。 More specifically, first, the token generation unit 134 generates a payment token for generating a payment code when it is determined that the balance of the user's account is equal to or more than a predetermined amount. Then, the token generation unit 134 associates the generated payment token with the user ID and stores it in the storage unit 12. When the token generation unit 134 generates a payment token, the transmission unit 135 transmits the payment token to the user terminal 2 that has transmitted the payment code issuance request, and causes the user terminal 2 to display the payment code.

また、トークン生成部134は、ユーザの口座の残高が所定金額未満と判定された場合に、残高が不足していることを示す残高不足情報を生成する。残高不足情報には、現在の口座の残高と、残高が不足していることにより決済用コードを表示しないことを示すメッセージとが含まれている。 Further, the token generation unit 134 generates balance shortage information indicating that the balance is insufficient when it is determined that the balance of the user's account is less than the predetermined amount. The balance shortage information includes the balance of the current account and a message indicating that the payment code is not displayed due to the balance shortage.

送信部135は、トークン生成部134が残高不足情報を生成すると、当該残高不足情報を決済用コードの発行要求を送信したユーザ端末2に送信することにより、ユーザ端末2に決済用コードを表示させずに、残高不足情報を表示させる。このようにすることで、ユーザは、残高が不足していることにより決済用コードが表示されないことを認識し、現金等の他の決済手段により決済を行ったり、口座に入金したりする等の対応をとることができる。 When the token generation unit 134 generates the balance shortage information, the transmission unit 135 causes the user terminal 2 to display the payment code by transmitting the balance shortage information to the user terminal 2 that has sent the payment code issuance request. Instead, display the balance shortage information. By doing so, the user recognizes that the payment code is not displayed due to insufficient balance, and makes payment by other payment means such as cash, deposits money into the account, etc. You can take action.

なお、トークン生成部134及び送信部135は、ユーザの口座の残高が所定金額未満と第1判定部133が判定した場合に、残高が不足していることをユーザに通知したが、これに限らない。トークン生成部134及び送信部135は、ユーザの口座の残高が所定金額未満と第1判定部133が判定した場合に、口座への入金を促す情報をユーザに通知してもよい。この場合、トークン生成部134は、残高不足情報に口座への入金を促す情報を含め、送信部135は、当該残高不足情報をユーザ端末2に送信する。 The token generation unit 134 and the transmission unit 135 notify the user that the balance is insufficient when the first determination unit 133 determines that the balance of the user's account is less than the predetermined amount, but this is not limited to this. do not have. When the first determination unit 133 determines that the balance of the user's account is less than the predetermined amount, the token generation unit 134 and the transmission unit 135 may notify the user of information prompting the user to deposit money into the account. In this case, the token generation unit 134 includes the information for prompting the payment to the account in the balance shortage information, and the transmission unit 135 transmits the balance shortage information to the user terminal 2.

また、トークン生成部134及び送信部135は、ユーザの口座の残高が所定金額未満と第1判定部133が判定した場合に、ユーザ端末2にユーザに対応する決済用コードを表示させないようにしたが、これに限らない。トークン生成部134及び送信部135は、ユーザが、口座の残高が所定金額よりも低い設定金額となった場合に当該口座に自動的に入金を行うように設定がされているときには、ユーザ端末2にユーザに対応する決済用コードを表示させるようにしてもよい。 Further, the token generation unit 134 and the transmission unit 135 do not display the payment code corresponding to the user on the user terminal 2 when the first determination unit 133 determines that the balance of the user's account is less than the predetermined amount. However, it is not limited to this. When the user is set to automatically deposit money into the account when the balance of the account becomes a set amount lower than the predetermined amount, the token generation unit 134 and the transmission unit 135 are set to the user terminal 2. May display the payment code corresponding to the user.

例えば、ユーザが、所定金額を2000円に設定しているとともに、口座の残高が1000円未満となった場合に自動的に入金を行うオートチャージの設定を行っている場合、トークン生成部134は、口座の残高が所定金額よりも低い場合であっても、決済用トークンを生成する。そして、送信部135は、トークン生成部134が決済用トークンを生成すると、当該決済用トークンをユーザ端末2に送信して、決済用コードを表示させる。このようにすることで、決済処理装置1は、ユーザがオートチャージを設定している場合に、オートチャージにより残高の不足が解消される可能性が高いにもかかわらず、決済用コードが表示されずコード決済ができなくなることを防止することができる。 For example, if the user has set the predetermined amount to 2000 yen and has set the auto charge to automatically deposit when the balance of the account is less than 1000 yen, the token generation unit 134 , Generate payment tokens even if the balance of the account is lower than the specified amount. Then, when the token generation unit 134 generates the payment token, the transmission unit 135 transmits the payment token to the user terminal 2 and displays the payment code. By doing so, the payment processing device 1 displays the payment code when the user has set the auto charge, even though there is a high possibility that the shortage of the balance will be solved by the auto charge. It is possible to prevent the code payment from becoming impossible.

決済要求取得部136は、決済用トークンに基づいてユーザ端末2が表示した決済用コードを読み取った店舗端末3から、店舗IDと、ユーザが支払う支払金額を含む決済情報と、決済用コードが示す決済用トークンとを含む決済要求であって、第1の決済手段としてのコード決済に対応する決済要求を取得する。 The payment request acquisition unit 136 indicates the store ID, payment information including the payment amount paid by the user, and the payment code from the store terminal 3 that reads the payment code displayed by the user terminal 2 based on the payment token. A payment request including a payment token and corresponding to a code payment as a first payment means is acquired.

第2判定部137は、決済要求に含まれる決済用トークンに関連付けられて記憶部12に記憶されている、コード決済に対応するユーザの口座の残高が支払金額よりも少ないか否かを判定する。具体的には、第2判定部137は、決済要求取得部136が取得した決済要求に含まれる店舗IDが、コード決済の加盟店の店舗IDとして登録されているか否かを判定する。例えば、記憶部12には、コード決済の利用な可能な店舗、すなわち、コード決済の加盟店の店舗IDが記憶されている。第2判定部137は、記憶部12を参照し、決済要求に含まれる店舗IDがコード決済の加盟店の店舗IDとして登録されているか否かを判定する。第2判定部137は、加盟店の店舗IDとして登録されていると判定した場合に、決済要求に含まれる決済用トークンに関連付けられて記憶部12に記憶されている、コード決済に対応するユーザの口座の残高を特定する。そして、第2判定部137は、ユーザの口座の残高が支払金額よりも少ない場合に、ユーザに関連付けられた第2の決済手段が第2の条件を満たすか否かを判定する。 The second determination unit 137 determines whether or not the balance of the user's account corresponding to the code payment, which is associated with the payment token included in the payment request and is stored in the storage unit 12, is less than the payment amount. .. Specifically, the second determination unit 137 determines whether or not the store ID included in the payment request acquired by the payment request acquisition unit 136 is registered as the store ID of the member store of the code payment. For example, the storage unit 12 stores a store where code payment can be used, that is, a store ID of a member store of code payment. The second determination unit 137 refers to the storage unit 12 and determines whether or not the store ID included in the payment request is registered as the store ID of the member store of the code payment. When the second determination unit 137 determines that the store ID of the member store is registered, the user corresponding to the code payment, which is stored in the storage unit 12 in association with the payment token included in the payment request. Identify the balance of your account. Then, the second determination unit 137 determines whether or not the second payment means associated with the user satisfies the second condition when the balance of the user's account is less than the payment amount.

第2の条件は、例えば、支払金額とユーザの口座の残高との差額を第2の決済手段により決済可能であることである。すなわち、第2判定部137は、コード決済に関連付けられているユーザの口座の残高が支払金額よりも少ない場合に、第2の決済手段の利用可否を判定する判定装置に、決済枠の割当要求(オーソリの要求)を行う。判定装置は、決済枠の割当要求を受け付けると、第2の決済手段の有効性や利用限度額に到達しないか等の判定を行い、決済枠の割当が可能と判定すると、決済枠の割当要求の承認(オーソリの承認)を示す承認情報を決済処理装置1に送信する。第2判定部137は、判定装置から承認情報を取得したか否かを判定することにより、ユーザに関連付けられた第2の決済手段により、支払金額とユーザの口座の残高との差額を決済可能であるか否かを判定する。 The second condition is that, for example, the difference between the payment amount and the balance of the user's account can be settled by the second payment means. That is, the second determination unit 137 requests the determination device for determining whether or not the second payment means can be used when the balance of the user's account associated with the code payment is less than the payment amount. (Authorization request). When the determination device receives the payment limit allocation request, it determines the effectiveness of the second payment method and whether or not the usage limit is reached, and when it determines that the payment frame allocation is possible, the payment limit allocation request. The approval information indicating the approval (authorization approval) is transmitted to the payment processing device 1. The second determination unit 137 can settle the difference between the payment amount and the balance of the user's account by the second payment means associated with the user by determining whether or not the approval information has been acquired from the determination device. It is determined whether or not it is.

なお、第2の条件は、支払金額とユーザの口座の残高との差額を第2の決済手段により決済可能であることとしたが、これに限らない。第2の条件は、ユーザに第2の決済手段が関連付けられていることであってもよい。 The second condition is that the difference between the payment amount and the balance of the user's account can be settled by the second payment means, but the present invention is not limited to this. The second condition may be that the user is associated with a second payment instrument.

決済部138は、決済要求に基づいて支払金額の決済を行う。具体的には、決済部138は、ユーザの口座の残高が支払金額以上である場合に、コード決済に対応するユーザの口座の残高から、決済要求に含まれる決済情報が示す支払金額を減算して決済を行う。 The settlement unit 138 setstles the payment amount based on the settlement request. Specifically, when the balance of the user's account is equal to or greater than the payment amount, the settlement unit 138 subtracts the payment amount indicated by the payment information included in the payment request from the balance of the user's account corresponding to the code payment. And make a payment.

また、決済部138は、ユーザの口座の残高が支払金額よりも少ない場合に、第2の決済手段が第2の条件を満たすと第2判定部137が判定すると、コード決済におけるユーザの口座の残高が不足することを許容して、コード決済により支払金額の決済を行う。 Further, when the payment unit 138 determines that the second payment means satisfies the second condition when the balance of the user's account is less than the payment amount, the second determination unit 137 determines that the user's account in the code payment Allow the balance to run short and settle the payment amount by code payment.

具体的には、決済部138は、第2判定部137が判定装置から決済枠の割当要求の承認(オーソリの承認)を示す承認情報を取得すると、決済要求取得部136が取得した決済要求に含まれる決済用トークンに関連付けられて記憶部12に記憶されているユーザIDのユーザの口座の残高から、決済要求に含まれる決済情報が示す支払金額を減算する。口座の残高は、支払金額よりも少ないことから、支払金額の減算後の口座の残高は0円よりも少なくなる。また、決済部138は、決済処理装置1が、当該判定装置から、決済枠の割当要求の承認を取得したことに応じて支払金額の減算を行うので、コード決済を運営する事業者は、割当が行われた決済枠を担保として、ユーザの口座の残高が不足することを許容することができる。 Specifically, when the second determination unit 137 acquires the approval information indicating the approval of the allocation request of the settlement frame (authorization approval) from the determination device, the settlement unit 138 receives the settlement request acquired by the settlement request acquisition unit 136. The payment amount indicated by the payment information included in the payment request is subtracted from the balance of the user's account with the user ID stored in the storage unit 12 associated with the included payment token. Since the balance of the account is less than the payment amount, the balance of the account after subtracting the payment amount is less than 0 yen. Further, since the settlement unit 138 subtracts the payment amount in response to the settlement processing device 1 obtaining the approval of the settlement slot allocation request from the determination device, the business operator who operates the code settlement allocates the payment amount. It is possible to allow the user's account to run out of balance, using the payment limit that was made as collateral.

その後、決済部138は、決済要求に含まれている店舗IDで特定される店舗の口座に支払金額を入金する処理を実行する。ここで、決済部138は、支払金額から、決済処理装置1における決済手数料を差し引いた金額を、店舗の口座に入金してもよい。 After that, the settlement unit 138 executes a process of depositing the payment amount into the account of the store specified by the store ID included in the settlement request. Here, the settlement unit 138 may deposit an amount obtained by subtracting the settlement fee in the settlement processing device 1 from the payment amount into the store account.

通知部139は、決済金額の決済が完了した場合、決済が完了したことを示す決済完了情報を店舗端末3に通知する。また、通知部139は、決済金額の決済が完了した場合、支払いが完了したことを示す支払完了情報をユーザ端末2に通知する。 When the settlement of the settlement amount is completed, the notification unit 139 notifies the store terminal 3 of the settlement completion information indicating that the settlement is completed. Further, when the payment of the payment amount is completed, the notification unit 139 notifies the user terminal 2 of the payment completion information indicating that the payment is completed.

通知部139は、コード決済に対応するユーザの口座の残高が不足している場合、決済部138により支払金額の決済が行われた後に、コード決済に対応するユーザの口座の残高が不足していることを示す情報を含む支払完了情報をユーザに通知する。例えば、通知部139は、決済用トークンの送信元のユーザ端末2に、コード決済に対応するユーザの口座の残高が不足していることを示す情報を含む支払完了情報を送信することにより、当該情報をユーザに通知する。 When the balance of the user's account corresponding to the code payment is insufficient, the notification unit 139 has insufficient the balance of the user's account corresponding to the code payment after the payment amount is settled by the payment unit 138. Notify the user of payment completion information, including information indicating that they are present. For example, the notification unit 139 sends payment completion information including information indicating that the balance of the user's account corresponding to the code payment is insufficient to the user terminal 2 that is the sender of the payment token. Notify the user of the information.

通知部139は、コード決済に関連付けられているユーザの口座の残高が支払金額よりも少ない場合に、ユーザに関連付けられた第2の決済手段により、支払金額とユーザの口座の残高との差額を決済可能と判定されると、第1の決済手段に対応する支払手段として第2の決済手段を設定することを促す情報をユーザに通知してもよい。このようにすることで、ユーザは、第1の決済手段に対応する支払手段を決済可能な決済手段の支払手段に切り替えて、決済を滞りなく進めることができる。 When the balance of the user's account associated with the code payment is less than the payment amount, the notification unit 139 uses the second payment method associated with the user to determine the difference between the payment amount and the balance of the user's account. When it is determined that payment is possible, the user may be notified of information prompting the setting of the second payment means as the payment means corresponding to the first payment means. By doing so, the user can switch the payment means corresponding to the first payment means to the payment means of the payment means that can be settled, and proceed with the payment without delay.

通知部139は、コード決済に対応するユーザの口座の残高が不足していることを示す情報として、例えば、支払金額の決済が行われる前の残高と、支払金額との差額、すなわち、支払金額の支払いを行う場合における不足額をユーザに通知する。また、通知部139は、コード決済に対応するユーザの口座の残高が不足していることを示す情報とともに、コード決済に関連付けられているユーザの口座への入金を促す情報をユーザに通知する。このようにすることで、ユーザは、ユーザの口座の残高が不足していること及び不足額を認識し、口座への入金を行うことができる。 The notification unit 139, as information indicating that the balance of the user's account corresponding to the code payment is insufficient, for example, the difference between the balance before the payment of the payment amount is made and the payment amount, that is, the payment amount Notify the user of the shortfall in making payments. Further, the notification unit 139 notifies the user of the information indicating that the balance of the user's account corresponding to the code payment is insufficient and the information prompting the user to make a payment to the user's account associated with the code payment. By doing so, the user can recognize that the balance of the user's account is insufficient and the insufficient amount, and can make a deposit to the account.

なお、決済部138は、第2の決済手段に、支払金額を減算する前の残高と支払金額との差額に対応する決済枠の割当を要求した後に、コード決済に関連付けられているユーザの口座に、当該残高と支払金額との差額以上の金額が入金されると、第2の決済手段に、決済枠の割当の取消を要求する。ここで、金額の入金は、商品購入時の支払い対価として利用可能なポイントから換算された金額の入金であってもよい。 The settlement unit 138 requests the second settlement means to allocate a settlement slot corresponding to the difference between the balance before subtracting the payment amount and the payment amount, and then the account of the user associated with the code settlement. When an amount equal to or greater than the difference between the balance and the payment amount is deposited, the second payment means is requested to cancel the allocation of the payment limit. Here, the deposit of the amount may be the deposit of the amount converted from the points that can be used as the payment consideration at the time of purchasing the product.

また、決済部138は、第2の決済手段に、支払金額を減算する前の残高と支払金額との差額に対応する決済枠の割当を要求した後に、コード決済に関連付けられているユーザの口座の残高が所定期間にわたって不足した場合、第2の決済手段に、決済枠に対応する金額を請求する。この場合、決済部138は、第2の決済手段が支払手段とされたユーザが利用するサービスの利用額の請求と合わせて、決済枠に対応する金額をユーザに請求するとともに、口座の残高を0円とすることにより、口座の残高の不足分を解消させる。 Further, the settlement unit 138 requests the second settlement means to allocate a settlement slot corresponding to the difference between the balance before subtracting the payment amount and the payment amount, and then the account of the user associated with the code settlement. If the balance of the above is insufficient for a predetermined period, the second payment means is charged with the amount corresponding to the payment limit. In this case, the settlement unit 138 charges the user the amount corresponding to the payment limit together with the billing of the usage amount of the service used by the user whose second payment means is the payment means, and charges the balance of the account. By setting it to 0 yen, the shortage of the balance of the account will be resolved.

ここで、通知部139は、当該サービスの利用額の請求と合わせて、決済枠に対応する金額がユーザに請求されたことを、ユーザに通知するようにしてもよい。また、通知部139は、決済枠に対応する金額がユーザに請求されたことに伴い、口座残高の不足状態が解消されたことをユーザに通知するようにしてもよい。 Here, the notification unit 139 may notify the user that the amount corresponding to the payment limit has been charged to the user together with the request for the usage amount of the service. Further, the notification unit 139 may notify the user that the shortage of the account balance has been resolved as the amount corresponding to the payment limit has been charged to the user.

図5は、コード決済におけるユーザの口座の残高が不足しているときの口座残高、支払金額、第2の決済手段の決済枠、口座への入金額、第2の決済手段の請求額の関係を示す図である。図5(a)は、コード決済におけるユーザの口座の残高が不足してから所定期間内に口座への入金が行われた例を示し、図5(b)は、コード決済におけるユーザの口座の残高が不足してから所定期間内に口座への入金が行われなかった例を示している。なお、図5に示される金額の単位は円であるものとする。 FIG. 5 shows the relationship between the account balance, the payment amount, the payment limit of the second payment method, the deposit amount to the account, and the billing amount of the second payment method when the balance of the user's account in the code payment is insufficient. It is a figure which shows. FIG. 5 (a) shows an example in which the balance of the user's account in the code payment is insufficient and the payment is made to the account within a predetermined period, and FIG. 5 (b) shows the example of the user's account in the code payment. It shows an example in which payment to the account was not made within a predetermined period after the balance was insufficient. The unit of the amount shown in FIG. 5 is assumed to be yen.

例えば、図5(a)、(b)に示すように、ユーザが商品を購入する前のコード決済におけるユーザの口座の残高が300円であったものとし、商品の購入時の支払金額が700円であったものとする。この場合、決済部138は、コード決済におけるユーザの口座の残高が不足することを許容して、コード決済により支払金額の決済を行うとともに、第2の決済手段に、支払金額を減算する前の残高と支払金額との差額に対応する金額の決済枠の割当を要求する。これにより、口座の残高が-400円になるとともに、決済枠として、400円が割り当てられる。 For example, as shown in FIGS. 5A and 5B, it is assumed that the balance of the user's account in the code payment before the user purchases the product is 300 yen, and the payment amount at the time of purchasing the product is 700. It is assumed that it was a circle. In this case, the settlement unit 138 allows the balance of the user's account in the code settlement to be insufficient, setstles the payment amount by the code settlement, and before subtracting the payment amount to the second settlement means. Request the allocation of a settlement limit of the amount corresponding to the difference between the balance and the payment amount. As a result, the balance of the account becomes -400 yen, and 400 yen is allocated as a settlement limit.

その後、図5(a)に示すように、所定期間内にコード決済におけるユーザの口座に1000円の入金があると、口座の残高は600円となり、不足状態が解消されるとともに、決済枠の割当の取消が行われ、割り当てられている決済枠の金額は0円となる。 After that, as shown in FIG. 5A, if the user's account for code payment has a deposit of 1000 yen within a predetermined period, the balance of the account becomes 600 yen, the shortage state is resolved, and the payment limit is set. The allocation will be canceled and the amount of the allocated settlement limit will be 0 yen.

他方、図5(b)に示すように、所定期間内にコード決済におけるユーザの口座に入金がなかった場合、口座の残高における不足額分(400円)が第2の決済手段に請求される。また、第2の決済手段に請求されたことに応じて、口座の残高は、0円に変更される。 On the other hand, as shown in FIG. 5 (b), if there is no deposit in the user's account in the code payment within a predetermined period, the shortage amount (400 yen) in the balance of the account is charged to the second payment means. .. In addition, the balance of the account is changed to 0 yen in response to the request to the second payment means.

[決済処理装置1における処理の流れ]
続いて、決済処理装置1における処理の流れについて説明する。まず、決済処理装置1が決済を行うまでの処理の流れについて説明する。図6は、決済処理装置1が決済を行うまでの処理の流れを示すフローチャートである。
[Processing flow in payment processing device 1]
Subsequently, the flow of processing in the payment processing device 1 will be described. First, the flow of processing until the payment processing device 1 makes a payment will be described. FIG. 6 is a flowchart showing a processing flow until the payment processing device 1 makes a payment.

まず、発行要求取得部132は、ユーザ端末2から、決済用コードの発行要求を取得する(S1)。発行要求には、ユーザ端末2のユーザのユーザIDが含まれている。
続いて、第1判定部133は、発行要求取得部132が取得した発行要求に含まれているユーザIDに対応するユーザのコード決済に関連付けられている口座の残高が、設定部131が設定した所定金額以上か否かを判定する(S2)。第1判定部133は、口座の残高が所定金額以上と判定すると、S3に処理を移し、口座の残高が所定金額未満と判定すると、S6に処理を移す。
First, the issuance request acquisition unit 132 acquires a payment code issuance request from the user terminal 2 (S1). The issuance request includes the user ID of the user of the user terminal 2.
Subsequently, in the first determination unit 133, the balance of the account associated with the code payment of the user corresponding to the user ID included in the issuance request acquired by the issuance request acquisition unit 132 is set by the setting unit 131. It is determined whether or not the amount is equal to or more than the predetermined amount (S2). When the first determination unit 133 determines that the balance of the account is equal to or greater than the predetermined amount, the process is transferred to S3, and when it is determined that the balance of the account is less than the predetermined amount, the process is transferred to S6.

S3において、トークン生成部134は、決済用トークンを生成する。そして、トークン生成部134は、生成した決済用トークンと、発行要求に含まれているユーザIDとを関連付けて記憶部12に記憶させる(S4)。
送信部135は、決済用コードの発行要求を送信したユーザ端末2に決済用トークンを送信する(S5)。これにより、ユーザ端末2において決済用コードが表示される。
In S3, the token generation unit 134 generates a settlement token. Then, the token generation unit 134 associates the generated payment token with the user ID included in the issuance request and stores it in the storage unit 12 (S4).
The transmission unit 135 transmits a payment token to the user terminal 2 that has sent the payment code issuance request (S5). As a result, the payment code is displayed on the user terminal 2.

S6において、トークン生成部134は、ユーザの口座の残高が不足していることを示す残高不足情報を生成する。
送信部135は、決済用コードの発行要求を送信したユーザ端末2に残高不足情報を送信する(S7)。
In S6, the token generation unit 134 generates balance shortage information indicating that the balance of the user's account is short.
The transmission unit 135 transmits the balance shortage information to the user terminal 2 that has transmitted the payment code issuance request (S7).

S5において決済用トークンが送信された後、決済要求取得部136は、決済情報と、店舗IDと、決済用トークンとを含む決済要求を店舗端末3から取得したか否かを判定する(S8)。決済要求取得部136は、決済要求を取得したと判定すると、S9に処理を移し、決済要求を取得していないと判定すると、S8を再実行する。 After the payment token is transmitted in S5, the payment request acquisition unit 136 determines whether or not the payment request including the payment information, the store ID, and the payment token has been acquired from the store terminal 3 (S8). .. When the settlement request acquisition unit 136 determines that the settlement request has been acquired, the process is transferred to S9, and when it is determined that the settlement request has not been acquired, the settlement request acquisition unit 136 re-executes S8.

S9において、第2判定部137は、決済要求に含まれている決済用トークンに関連付けられているユーザIDのユーザのコード決済における口座の残高が支払金額以上か否かを判定する。第2判定部137は、口座の残高が支払金額以上と判定すると、S11に処理を移し、口座の残高が支払金額未満と判定すると、S10に処理を移す。 In S9, the second determination unit 137 determines whether or not the balance of the account in the code payment of the user with the user ID associated with the payment token included in the payment request is equal to or greater than the payment amount. When the second determination unit 137 determines that the balance of the account is equal to or greater than the payment amount, the process is transferred to S11, and when the balance of the account is determined to be less than the payment amount, the process is transferred to S10.

S10において、第2判定部137は、第2の決済手段の利用可否を判定する判定装置に、支払金額とユーザの口座の残高との差額に対応する決済枠の割当を要求することにより、ユーザに関連付けられた第2の決済手段により当該差額を決済可能であるか否かを判定する。第2判定部137は、第2の決済手段により差額を決済可能であると判定すると、S11に処理を移し、第2の決済手段により差額を決済可能ではないと判定すると、S14に処理を移す。 In S10, the second determination unit 137 requests the determination device for determining the availability of the second payment means to allocate the payment limit corresponding to the difference between the payment amount and the balance of the user's account. It is determined whether or not the difference can be settled by the second settlement means associated with. When the second determination unit 137 determines that the difference can be settled by the second settlement means, the process is transferred to S11, and when it is determined that the difference cannot be settled by the second settlement means, the process is transferred to S14. ..

S11において、決済部138は、コード決済により支払金額の決済を行う。ここで、決済部138は、S9において、コード決済に関連付けられている口座の残高が支払金額よりも少ないと判定された場合には、コード決済におけるユーザの口座の残高が不足することを許容して、口座の残高から支払金額を減算する。
続いて、決済部138は、決済要求に含まれている店舗IDで特定される店舗の口座に支払金額を入金する処理を実行する(S12)。
In S11, the settlement unit 138 settles the payment amount by code settlement. Here, the settlement unit 138 allows the balance of the user's account in the code payment to be insufficient when it is determined in S9 that the balance of the account associated with the code payment is less than the payment amount. And subtract the payment amount from the balance of the account.
Subsequently, the settlement unit 138 executes a process of depositing the payment amount into the account of the store specified by the store ID included in the settlement request (S12).

続いて、通知部139は、支払いが完了したことを示す支払完了情報をユーザ端末2に通知する(S13)。ここで、通知部139は、コード決済に対応するユーザの口座の残高が不足している場合には、当該口座の残高が不足していることを示す情報を含む支払完了情報をユーザ端末2に通知する。 Subsequently, the notification unit 139 notifies the user terminal 2 of the payment completion information indicating that the payment has been completed (S13). Here, when the balance of the user's account corresponding to the code payment is insufficient, the notification unit 139 sends the payment completion information including the information indicating that the balance of the account is insufficient to the user terminal 2. Notice.

一方、S10において、第2の決済手段により差額を決済可能ではないと判定された場合、通知部139は、コード決済により支払金額の決済が行えない旨を示すエラー情報をユーザ端末2に通知する(S14)。 On the other hand, when it is determined in S10 that the difference cannot be settled by the second payment means, the notification unit 139 notifies the user terminal 2 of error information indicating that the payment amount cannot be settled by the code payment. (S14).

続いて、決済処理装置1における、コード決済に関連付けられている口座の残高が不足状態となっている場合の処理の流れについて説明する。図7は、決済処理装置1における、コード決済に関連付けられている口座の残高が不足状態となっている場合の処理の流れを示すフローチャートである。なお、本フローチャートは、所定時間(例えば1日)おきに実行されるものとする。 Next, the flow of processing in the payment processing device 1 when the balance of the account associated with the code payment is insufficient will be described. FIG. 7 is a flowchart showing a processing flow in the payment processing device 1 when the balance of the account associated with the code payment is in a shortage state. In addition, this flowchart shall be executed every predetermined time (for example, one day).

決済部138は、残高が不足状態となっている口座にチャージが行われることにより、当該口座の残高の不足状態が解消したか否かを判定する(S21)。決済部138は、不足状態が解消したと判定すると、S22に処理を移し、不足状態が解消されていないと判定すると、S23に処理を移す。 The settlement unit 138 determines whether or not the insufficient balance of the account has been resolved by charging the account whose balance is insufficient (S21). When the settlement unit 138 determines that the shortage state has been resolved, the process is transferred to S22, and when it is determined that the shortage state has not been resolved, the process is transferred to S23.

S22において、決済部138は、図6のS10において割当が行われた決済枠について、割当の取消を第2の決済手段に要求する。
S23において、決済部138は、コード決済に関連付けられている口座の残高が所定期間にわたって不足しているか否かを判定する。決済部138は、口座の残高が所定期間にわたって不足していると判定すると、S24に処理を移し、口座の残高が所定期間にわたって不足していないと判定すると、本フローチャートに係る処理を終了する。
In S22, the settlement unit 138 requests the second settlement means to cancel the allocation of the settlement slots allocated in S10 of FIG.
In S23, the settlement unit 138 determines whether or not the balance of the account associated with the code settlement is insufficient for a predetermined period. When the settlement unit 138 determines that the balance of the account is insufficient for a predetermined period, the process is transferred to S24, and when it is determined that the balance of the account is not insufficient for the predetermined period, the process according to this flowchart is terminated.

S24において、決済部138は、第2の決済手段に、図6のS10において割当が行われた決済枠に対応する金額を請求する。
続いて、決済部138は、口座の残高の不足分を解消させる(S25)。
In S24, the settlement unit 138 charges the second settlement means for the amount corresponding to the settlement slot allocated in S10 of FIG.
Subsequently, the settlement unit 138 resolves the shortage of the balance of the account (S25).

[変形例1]
以上の説明においては、ユーザ端末2が決済用コードを表示し、店舗端末3がユーザ端末2に表示された決済用コードを読み取り、決済要求を決済処理装置1に送信したが、これに限らない。例えば、店舗端末3が決済用コードを表示し、ユーザ端末2が決済用コードを読み取り、決済要求を決済処理装置1に送信してもよい。
[Modification 1]
In the above description, the user terminal 2 displays the payment code, the store terminal 3 reads the payment code displayed on the user terminal 2, and sends the payment request to the payment processing device 1, but the present invention is not limited to this. .. For example, the store terminal 3 may display the payment code, the user terminal 2 may read the payment code, and the payment request may be transmitted to the payment processing device 1.

図8は、ユーザ端末2が決済要求を決済処理装置1に送信する場合の処理の流れを説明する図である。まず、店舗における店員は、ユーザが店舗において会計を行う場合に、店舗端末3においてユーザが購入する商品に付されたバーコードを読み取り、ユーザの支払金額を示す決済情報を店舗端末3に生成させる。また、店員は、店舗端末3において、決済用コードを店舗端末3に表示させるための操作を行う。店舗端末3は、決済用コードの取得要求と、決済情報と、店舗IDとを決済処理装置1に送信する(図8における(1))。 FIG. 8 is a diagram illustrating a processing flow when the user terminal 2 transmits a payment request to the payment processing device 1. First, the clerk at the store reads the barcode attached to the product purchased by the user on the store terminal 3 when the user makes an account at the store, and causes the store terminal 3 to generate payment information indicating the payment amount of the user. .. Further, the store clerk performs an operation for displaying the payment code on the store terminal 3 on the store terminal 3. The store terminal 3 transmits a payment code acquisition request, payment information, and a store ID to the payment processing device 1 ((1) in FIG. 8).

決済処理装置1は、店舗端末3から、決済用コードの取得要求と、決済情報と、店舗IDとを受信すると、決済用トークンを生成する。決済処理装置1は、生成した決済用トークンと、店舗IDとを関連付けて記憶媒体に記憶する。決済処理装置1は、生成した決済用トークンを店舗端末3に送信する(図8における(2))。 When the payment processing device 1 receives the payment code acquisition request, the payment information, and the store ID from the store terminal 3, the payment processing device 1 generates a payment token. The payment processing device 1 stores the generated payment token in association with the store ID in the storage medium. The payment processing device 1 transmits the generated payment token to the store terminal 3 ((2) in FIG. 8).

店舗端末3は、受信した決済用トークンに基づいて決済用コードを生成して表示させる(図8における(3))。
ユーザ端末2は、例えばユーザの操作により、店舗端末3に表示された決済用コードを読み取る(図8における(4))。ユーザ端末2は、ユーザIDと、読み取った決済用コードが示す決済用トークンとを含む決済要求を決済処理装置1に送信する(図8における(5))。
The store terminal 3 generates and displays a payment code based on the received payment token ((3) in FIG. 8).
The user terminal 2 reads the payment code displayed on the store terminal 3 by, for example, the user's operation ((4) in FIG. 8). The user terminal 2 transmits a payment request including a user ID and a payment token indicated by the read payment code to the payment processing device 1 ((5) in FIG. 8).

決済処理装置1は、ユーザ端末2から決済要求を取得すると、コード決済に関連付けられているユーザの口座の残高が、所定金額以上であるかを判定する(図8における(6))。決済処理装置1は、ユーザの口座の残高が、所定金額未満である場合には、上述したように、残高不足情報を生成してユーザ端末2に通知する。ここで、決済処理装置1は、口座への入金を促す情報をユーザに通知してもよい。このようにすることで、決済処理装置1は、口座の残高が所定金額未満である場合にコード決済が行われ、口座の残高の不足額が増加することを防止することができる。 When the payment processing device 1 acquires a payment request from the user terminal 2, it determines whether the balance of the user's account associated with the code payment is equal to or greater than a predetermined amount ((6) in FIG. 8). When the balance of the user's account is less than the predetermined amount, the payment processing device 1 generates balance shortage information and notifies the user terminal 2 as described above. Here, the payment processing device 1 may notify the user of information prompting the payment to the account. By doing so, the payment processing device 1 can prevent the code payment from being performed when the balance of the account is less than the predetermined amount and the shortage of the balance of the account from increasing.

決済処理装置1は、口座の残高が、所定金額以上であると判定した場合、コード決済に関連付けられているユーザの口座の残高が、支払金額以上であるかを判定する(図8における(7))。 When the payment processing device 1 determines that the balance of the account is equal to or greater than the predetermined amount, it determines whether the balance of the user's account associated with the code payment is equal to or greater than the payment amount ((7 in FIG. 8). )).

決済処理装置1は、コード決済に関連付けられているユーザの口座の残高が支払金額以上である場合には、支払金額の決済を行い、口座の残高が支払金額未満の場合には、ユーザに関連付けられた第2の決済手段が第2の条件を満たすかを判定する(図8における(8))。 The payment processing device 1 setstles the payment amount when the balance of the user's account associated with the code payment is equal to or greater than the payment amount, and associates it with the user when the balance of the account is less than the payment amount. It is determined whether or not the second payment means is satisfied with the second condition ((8) in FIG. 8).

決済処理装置1は、第2の決済手段が第2の条件を満たすと判定すると、コード決済におけるユーザの口座の残高が不足することを許容して、コード決済により支払金額の決済を行う(図8の(9))。 When the payment processing device 1 determines that the second payment means satisfies the second condition, the payment processing device 1 allows the balance of the user's account in the code payment to be insufficient, and setstle the payment amount by the code payment (FIG. 8 (9)).

[変形例2]
また、上述の説明では、第1の決済手段は、コード決済であることとしたが、これに限らない。第1の決済手段は、決済処理装置1等のサーバ側で残高を管理するプリペイド式の決済手段、又は銀行口座から支払金額を引き落とす方式(デビット方式)の決済手段であってもよい。この場合、決済部138は、第1の決済手段に対応する口座の残高が不足することを許容して、第1の決済手段により支払金額の決済を行ってもよい。
[Modification 2]
Further, in the above description, the first payment means is code payment, but the present invention is not limited to this. The first payment method may be a prepaid payment method that manages the balance on the server side such as the payment processing device 1, or a payment method that debits the payment amount from the bank account (debit method). In this case, the settlement unit 138 may allow the balance of the account corresponding to the first settlement means to be insufficient and settle the payment amount by the first settlement means.

[変形例3]
また、上述の説明では、所定金額が0円であり、決済処理装置1が、ユーザの口座の残高が0円未満であると判定した場合に、決済用トークンを生成せずに、決済用コードが表示できない旨を示すエラーメッセージをユーザ端末2に送信したが、これに限らない。所定金額は、1円以上の金額、例えば、10円であってもよい。10円未満で購入できる商品は、限られていることから、ユーザの口座の残高が10円未満であると判定した場合に、決済用トークンを生成しないようにすることにより、決済時に口座の残高が不足する可能性が高いものとして決済を速やかに中断することができる。
[Modification 3]
Further, in the above description, when the predetermined amount is 0 yen and the payment processing device 1 determines that the balance of the user's account is less than 0 yen, the payment code is not generated and the payment code is not generated. An error message indicating that the message cannot be displayed is sent to the user terminal 2, but the present invention is not limited to this. The predetermined amount may be an amount of 1 yen or more, for example, 10 yen. Since the number of products that can be purchased for less than 10 yen is limited, if it is determined that the balance of the user's account is less than 10 yen, by not generating a payment token, the balance of the account at the time of payment Payment can be interrupted promptly as there is a high possibility that there will be a shortage.

[決済システムSによる効果]
以上説明したように、決済処理装置1は、コード決済に関連して決済用コードの発行要求を行ったユーザを識別するユーザIDをユーザ端末2から取得すると、当該ユーザIDに対応するユーザのコード決済に関連付けられている口座が決済可能な状態を示す所定条件を満たすか否かを判定する。決済処理装置1は、口座の所定条件を満たさないと判定した場合に、ユーザ端末2にユーザに対応する決済用コードに関する決済用トークンを生成せず、所定条件を満たすと判定した場合に決済用トークンを生成する。このようにすることで、決済処理装置1は、決済時に口座の残高が不足する可能性が高い場合に決済を速やかに中断することができる。
[Effect of payment system S]
As described above, when the payment processing device 1 acquires the user ID that identifies the user who has requested the issuance of the payment code in connection with the code payment from the user terminal 2, the code of the user corresponding to the user ID is obtained. It is determined whether or not the account associated with the payment satisfies a predetermined condition indicating the state in which the payment can be made. The payment processing device 1 does not generate a payment token for the payment code corresponding to the user on the user terminal 2 when it is determined that the predetermined condition of the account is not satisfied, and when it is determined that the predetermined condition is satisfied, the payment processing device 1 is used for payment. Generate a token. By doing so, the payment processing device 1 can promptly suspend the payment when there is a high possibility that the balance of the account will be insufficient at the time of payment.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されず、その要旨の範囲内で種々の変形及び変更が可能である。例えば、装置の分散・統合の具体的な実施の形態は、以上の実施の形態に限られず、その全部又は一部について、任意の単位で機能的又は物理的に分散・統合して構成することができる。また、複数の実施の形態の任意の組み合わせによって生じる新たな実施の形態も、本発明の実施の形態に含まれる。組み合わせによって生じる新たな実施の形態の効果は、もとの実施の形態の効果を合わせ持つ。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments, and various modifications and changes can be made within the scope of the gist. be. For example, the specific embodiment of the distribution / integration of the device is not limited to the above embodiment, and all or a part thereof may be functionally or physically distributed / integrated in any unit. Can be done. Also included in the embodiments of the present invention are new embodiments resulting from any combination of the plurality of embodiments. The effect of the new embodiment produced by the combination has the effect of the original embodiment together.

1 決済処理装置
2 ユーザ端末
3 店舗端末
11 通信部
12 記憶部
13 制御部
21 操作部
22 通信部
23 表示部
24 記憶部
25 制御部
31 操作部
32 読取部
33 通信部
34 表示部
35 記憶部
36 制御部
131 設定部
132 発行要求取得部
133 第1判定部
134 トークン生成部
135 送信部
136 決済要求取得部
137 第2判定部
138 決済部
139 通知部
251 操作受付部
252 要求送信部
253 コード生成部
361 決済情報生成部
362 トークン取得部
363 決済情報送信部
1 Payment processing device 2 User terminal 3 Store terminal 11 Communication unit 12 Storage unit 13 Control unit 21 Operation unit 22 Communication unit 23 Display unit 24 Storage unit 25 Control unit 31 Operation unit 32 Reading unit 33 Communication unit 34 Display unit 35 Storage unit 36 Control unit 131 Setting unit 132 Issuance request acquisition unit 133 First judgment unit 134 Token generation unit 135 Transmission unit 136 Payment request acquisition unit 137 Second judgment unit 138 Payment unit 139 Notification unit 251 Operation reception unit 252 Request transmission unit 253 Code generation unit 361 Payment information generation unit 362 Token acquisition unit 363 Payment information transmission unit

Claims (14)

コンピュータが実行する、
コードを利用した決済手段に関連して前記コードの発行要求を行ったユーザを識別するユーザ識別情報を前記ユーザの端末から取得するステップと、
取得された前記ユーザ識別情報に対応するユーザの前記決済手段に関連付けられている口座が決済可能な状態を示す前記口座の残高が所定金額以上であるという所定条件を満たすか否かを、前記ユーザが前記決済手段を用いて支払う支払金額を使用することなく前記口座の残高を前記所定金額と比較することにより判定するステップと、
前記口座が前記所定条件を満たすと判定された場合に、前記ユーザの端末に表示される前記ユーザに対応する前記コードに関するトークンを生成するステップと、
生成された前記トークンを前記端末に送信するステップと、
前記端末に送信された前記トークンに基づいて前記端末が表示した前記コードを読み取った当該端末とは異なる端末から、前記トークンと、前記ユーザが支払う支払金額とを含む決済要求を取得するステップと、
取得された前記決済要求に含まれる前記トークンと前記支払金額とに基づいて決済を行うステップと、
を有する決済処理方法。
Computer runs,
A step of acquiring user identification information that identifies a user who has made a request for issuing the code in relation to a payment method using the code from the terminal of the user, and a step of acquiring the user identification information.
Whether or not the account associated with the payment means of the user corresponding to the acquired user identification information satisfies a predetermined condition that the balance of the account indicating a paymentable state is a predetermined amount or more. A step of determining by comparing the balance of the account with the predetermined amount without using the payment amount paid by the user using the payment means.
When it is determined that the account satisfies the predetermined condition, a step of generating a token related to the code corresponding to the user displayed on the terminal of the user, and a step of generating a token.
The step of transmitting the generated token to the terminal,
A step of acquiring a payment request including the token and the payment amount paid by the user from a terminal different from the terminal that has read the code displayed by the terminal based on the token transmitted to the terminal.
A step of making a payment based on the token included in the acquired payment request and the payment amount, and
Payment processing method with.
前記コンピュータが実行する前記所定金額を設定するステップをさらに有し、
前記判定するステップにおいて、前記口座の残高が、前記設定するステップにおいて設定された前記所定金額以上か否かを判定する、
請求項に記載の決済処理方法。
Further having a step of setting the predetermined amount performed by the computer,
In the determination step, it is determined whether or not the balance of the account is equal to or greater than the predetermined amount set in the setting step.
The payment processing method according to claim 1 .
前記設定するステップにおいて、前記ユーザから前記所定金額を設定する情報を取得し、当該情報に基づいて前記所定金額を設定する、
請求項に記載の決済処理方法。
In the setting step, information for setting the predetermined amount is acquired from the user, and the predetermined amount is set based on the information.
The payment processing method according to claim 2 .
前記設定するステップにおいて、前記決済手段を提供する事業者から前記所定金額を設定する情報を取得し、当該情報に基づいて前記所定金額を設定する、
請求項に記載の決済処理方法。
In the setting step, information for setting the predetermined amount is acquired from the business operator that provides the payment means, and the predetermined amount is set based on the information.
The payment processing method according to claim 2 .
前記設定するステップにおいて、予め定められた金額を上限として前記所定金額を設定する、
請求項からのいずれか1項に記載の決済処理方法。
In the setting step, the predetermined amount is set up to a predetermined amount.
The payment processing method according to any one of claims 2 to 4 .
前記判定するステップにおいて前記所定金額未満と判定された場合に、前記コンピュータが、前記残高に関する情報を前記ユーザに通知するステップをさらに有する、
請求項からのいずれか1項に記載の決済処理方法。
Further, the computer has a step of notifying the user of information regarding the balance when the determination amount is determined to be less than the predetermined amount in the determination step.
The payment processing method according to any one of claims 1 to 5 .
前記通知するステップにおいて、前記口座への入金を促す情報を前記ユーザに通知する、
請求項に記載の決済処理方法。
In the notification step, the user is notified of information prompting the payment to the account.
The payment processing method according to claim 6 .
前記所定金額は0円である、
請求項からのいずれか1項に記載の決済処理方法。
The predetermined amount is 0 yen.
The payment processing method according to any one of claims 1 to 7 .
前記所定金額は1円以上の金額である、
請求項からのいずれか1項に記載の決済処理方法。
The predetermined amount is an amount of 1 yen or more.
The payment processing method according to any one of claims 1 to 7 .
前記コードを生成するステップにおいて、前記所定金額未満と判定された場合であっても、前記口座の残高が前記所定金額よりも低い設定金額となった場合に前記口座に自動的に入金を行うように設定がされているときには、前記ユーザの端末に前記ユーザに対応する前記コードを表示させる、
請求項に記載の決済処理方法。
Even if it is determined that the amount is less than the predetermined amount in the step of generating the code, if the balance of the account becomes a set amount lower than the predetermined amount, the money is automatically deposited in the account. When is set to, the terminal of the user is displayed with the code corresponding to the user.
The payment processing method according to claim 9 .
前記コンピュータが実行する、
前記ユーザ識別情報と、生成された前記トークンとを関連付けて記憶部に記憶させるステップと、
受信した前記決済要求に含まれているトークンに関連付けられて前記記憶部に記憶されている前記ユーザ識別情報に対応する前記口座の残高が、受信した前記決済要求に含まれている支払金額よりも少ないか否かを判定するステップと、
をさらに有し、
前記決済を行うステップにおいて、前記コンピュータは、前記口座の残高が、受信した前記決済要求に含まれている支払金額よりも多いと判定すると、前記ユーザ識別情報に対応するユーザの前記決済手段を用いて決済を行う、
請求項1から10のいずれか1項に記載の決済処理方法。
The computer runs,
A step of associating the user identification information with the generated token and storing it in a storage unit.
The balance of the account corresponding to the user identification information stored in the storage unit associated with the token included in the received payment request is higher than the payment amount included in the received payment request. Steps to determine if there are few,
Have more
In the payment step, when the computer determines that the balance of the account is larger than the payment amount included in the received payment request, the computer uses the payment means of the user corresponding to the user identification information. To make a payment,
The payment processing method according to any one of claims 1 to 10 .
コードを利用した決済手段に関連して前記コードの発行要求を行ったユーザを識別するユーザ識別情報を前記ユーザの端末から取得する取得部と、
前記取得部が取得した前記ユーザ識別情報に対応するユーザの前記決済手段に関連付けられている口座が決済可能な状態を示す前記口座の残高が所定金額以上であるという所定条件を満たすか否かを、前記ユーザが前記決済手段を用いて支払う支払金額を使用することなく前記口座の残高を前記所定金額と比較することにより判定する判定部と、
前記口座が前記所定条件を満たすと前記判定部が判定した場合に、前記ユーザの端末に表示される前記ユーザに対応する前記コードに関するトークンを生成するトークン生成部と、
生成された前記トークンを前記端末に送信する送信部と、
前記端末に送信された前記トークンに基づいて前記端末が表示した前記コードを読み取った当該端末とは異なる端末から、前記トークンと、前記ユーザが支払う支払金額とを含む決済要求を取得する決済要求取得部と、
取得された前記決済要求に含まれる前記トークンと前記支払金額とに基づいて決済を行う決済部と、
を備える決済処理装置。
An acquisition unit that acquires user identification information that identifies a user who has made a request to issue the code in relation to a payment method using the code from the terminal of the user.
Whether or not the account associated with the payment means of the user corresponding to the user identification information acquired by the acquisition unit satisfies a predetermined condition that the balance of the account indicating a paymentable state is a predetermined amount or more . With a determination unit that determines by comparing the balance of the account with the predetermined amount without using the payment amount paid by the user using the payment means.
When the determination unit determines that the account satisfies the predetermined condition, the token generation unit that generates a token related to the code corresponding to the user displayed on the terminal of the user, and a token generation unit.
A transmitter that transmits the generated token to the terminal,
Acquisition of a payment request including the token and the payment amount paid by the user from a terminal different from the terminal that has read the code displayed by the terminal based on the token transmitted to the terminal. Department and
A payment unit that makes a payment based on the token included in the acquired payment request and the payment amount.
Payment processing device.
前記判定部が前記口座の残高が前記所定金額未満と判定した場合に、前記残高に関する情報を前記ユーザに通知する通知部をさらに備える、
請求項12に記載の決済処理装置。
The determination unit further includes a notification unit for notifying the user of information regarding the balance when the determination unit determines that the balance of the account is less than the predetermined amount.
The payment processing device according to claim 12 .
前記ユーザから前記所定金額を設定する情報を取得し、当該情報に基づいて前記所定金額を設定する設定部をさらに備える、
請求項12又は13に記載の決済処理装置。
It further includes a setting unit that acquires the information for setting the predetermined amount from the user and sets the predetermined amount based on the information.
The payment processing device according to claim 12 or 13 .
JP2019214153A 2019-11-27 2019-11-27 Payment processing method and payment processing device Active JP7022108B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019214153A JP7022108B2 (en) 2019-11-27 2019-11-27 Payment processing method and payment processing device
US17/098,819 US20210158337A1 (en) 2019-11-27 2020-11-16 Payment processing method and payment processing device
CN202011286233.4A CN112862473A (en) 2019-11-27 2020-11-17 Settlement processing method and settlement processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019214153A JP7022108B2 (en) 2019-11-27 2019-11-27 Payment processing method and payment processing device

Publications (2)

Publication Number Publication Date
JP2021086353A JP2021086353A (en) 2021-06-03
JP7022108B2 true JP7022108B2 (en) 2022-02-17

Family

ID=76087751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019214153A Active JP7022108B2 (en) 2019-11-27 2019-11-27 Payment processing method and payment processing device

Country Status (1)

Country Link
JP (1) JP7022108B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002008981A1 (en) 2000-07-25 2002-01-31 Image Media Design Co., Ltd. Business transacting method
JP2018116435A (en) 2017-01-17 2018-07-26 株式会社エヌ・ティ・ティ・データ Authentication device, authentication system, authentication method, and program
JP6585808B1 (en) 2018-12-21 2019-10-02 LINE Pay株式会社 Generating method, program, information processing apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002008981A1 (en) 2000-07-25 2002-01-31 Image Media Design Co., Ltd. Business transacting method
JP2018116435A (en) 2017-01-17 2018-07-26 株式会社エヌ・ティ・ティ・データ Authentication device, authentication system, authentication method, and program
JP6585808B1 (en) 2018-12-21 2019-10-02 LINE Pay株式会社 Generating method, program, information processing apparatus

Also Published As

Publication number Publication date
JP2021086353A (en) 2021-06-03

Similar Documents

Publication Publication Date Title
JP6567261B2 (en) Electronic currency management apparatus, electronic currency management method, and electronic currency management system
JP6667010B2 (en) Mobile prepaid card service system, clone card storage device and service method thereof
JP6723680B2 (en) Mobile terminal, information providing method, and program
JP6947795B2 (en) Payment processing method and payment processing device
JP2019125018A (en) Transaction management system and transaction management method
JP7077430B2 (en) Benefit management device and privilege management method
JP6031073B2 (en) Electronic currency management apparatus, electronic currency management method, and electronic currency management system
JP6910509B1 (en) Payment processing method
JP6059694B2 (en) Privilege grant device and privilege grant method
JP7022108B2 (en) Payment processing method and payment processing device
JP2019125017A (en) Transaction management system and transaction management method
JP6218707B2 (en) Electronic currency management system and electronic currency management method
JP6324849B2 (en) Management system and management method
JP6793686B2 (en) Benefit granting device and privilege granting method
US20210158337A1 (en) Payment processing method and payment processing device
JP6612286B2 (en) Point management system and point management method
JP7144634B1 (en) Information processing method
JP7123094B2 (en) Information processing system, method and program
JP6924877B1 (en) Payment processing method
JP6924876B1 (en) Payment processing method
JP6059186B2 (en) Point management apparatus and point management method
JP7223184B1 (en) Information processing device and information processing method
JP7113153B1 (en) Information processing method
JP6695388B2 (en) Electronic currency management system and electronic currency management method
JP2019125016A (en) Transaction management system and transaction management method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201016

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20201016

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20201104

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210420

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210617

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210921

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211013

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: 20220118

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220204

R150 Certificate of patent or registration of utility model

Ref document number: 7022108

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150