JP7486651B1 - Payment server, payment control method, and program - Google Patents

Payment server, payment control method, and program Download PDF

Info

Publication number
JP7486651B1
JP7486651B1 JP2023144861A JP2023144861A JP7486651B1 JP 7486651 B1 JP7486651 B1 JP 7486651B1 JP 2023144861 A JP2023144861 A JP 2023144861A JP 2023144861 A JP2023144861 A JP 2023144861A JP 7486651 B1 JP7486651 B1 JP 7486651B1
Authority
JP
Japan
Prior art keywords
payment
user
time code
storage unit
terminal device
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
JP2023144861A
Other languages
Japanese (ja)
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.)
PayPay Corp
Original Assignee
PayPay 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 PayPay Corp filed Critical PayPay Corp
Priority to JP2023144861A priority Critical patent/JP7486651B1/en
Application granted granted Critical
Publication of JP7486651B1 publication Critical patent/JP7486651B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

【課題】より安全な電子決済を実現する決済サーバ、決済制御方法およびプログラムを提供する。【解決手段】一以上の利用者端末装置、一以上の第1店舗端末装置及び一以上の第2店舗端末装置のそれぞれとネットワークを介して通信する決済サーバ100は、決済情報に、予め利用者に付与され記憶部に記憶されたオフラインキーが含まれ、且つ、記憶部170を参照して得られるワンタイムコードに基づく情報が含まれない場合は、オフラインキーを用いて利用者を特定して電子決済を進行させる決済処理部130を備える。決済処理部130は、決済情報にオフラインキーが含まれ、且つ記憶部170を参照して得られるワンタイムコードに基づく情報が含まれない場合、所定期間内における決済回数の上限を設定する。【選択図】図4[Problem] To provide a payment server, a payment control method, and a program for realizing safer electronic payment. [Solution] A payment server 100 that communicates with one or more user terminal devices, one or more first store terminal devices, and one or more second store terminal devices via a network includes a payment processing unit 130 that identifies the user using the offline key and proceeds with electronic payment when payment information includes an offline key that has been assigned to the user in advance and stored in a storage unit, and does not include information based on a one-time code obtained by referring to the storage unit 170. When payment information includes an offline key, and does not include information based on a one-time code obtained by referring to the storage unit 170, the payment processing unit 130 sets an upper limit on the number of payments that can be made within a specified period. [Selected Figure] Figure 4

Description

特許法第30条第2項適用 1. ウェブサイトの掲載日:2023年7月20日 ウェブサイトのURL(1):https://about.paypay.ne.jp/pr/20230720/01/ ウェブサイトのURL(2):https://paypay.ne.jp/help/c0398/?appwebview&_ga=2.261947278.2056208584.1692065200-161083322.1668519568Patent Act Article 30, Paragraph 2 Application 1. Website posting date: July 20, 2023 Website URL (1): https://about.paypay.ne.jp/pr/20230720/01/ Website URL (2): https://paypay.ne.jp/help/c0398/?appwebview&_ga=2.261947278.2056208584.1692065200-161083322.1668519568

本発明は、決済サーバ、決済制御方法、およびプログラムに関する。 The present invention relates to a payment server, a payment control method, and a program.

スマートフォン等の端末装置において動作する決済アプリがコード画像を表示し、店舗側の装置でコード画像から情報を読み取ることで行われる態様の電子決済が普及している(特許文献1)。この態様の電子決済では、コード画像に表示させる元の情報として、決済サーバが利用者のアカウントに対応付けて発行するワンタイムコードが使用される。ワンタイムコードを使用することで、コード画像に個人情報等を入れ込む必要が無くなるため、セキュリティ性の向上が実現されている。 A form of electronic payment in which a payment app running on a terminal device such as a smartphone displays a code image and a device at the store reads information from the code image is becoming widespread (Patent Document 1). In this form of electronic payment, a one-time code issued by the payment server in association with the user's account is used as the original information to be displayed in the code image. The use of a one-time code eliminates the need to include personal information in the code image, thereby improving security.

特許第7237224号公報Patent No. 7237224

上記の態様の電子決済においては、電子決済が行われようとする際に決済アプリから決済サーバにワンタイムコードのリクエストが送信され、それに対してワンタイムコードが発行される。従って、従来の技術では、電子決済の時点において端末装置と決済サーバの通信が困難な状況において、有効なワンタイムコードが取得できないことで、電子決済が不可になってしまう場合があった。そして、従来の技術では、そのような場合に代替的な手法で電子決済を行う際に、セキュリティ性の低下が懸念される場合があった。 In the above-described electronic payment mode, when an electronic payment is about to be made, a request for a one-time code is sent from the payment app to the payment server, and a one-time code is issued in response. Therefore, in conventional technology, if communication between the terminal device and the payment server is difficult at the time of electronic payment, it may be impossible to obtain a valid one-time code, making the electronic payment impossible. In such cases, when making electronic payment using an alternative method, there may be concerns about reduced security.

本発明は、このような事情を考慮してなされたものであり、より安全な電子決済を実現することができる決済サーバ、決済制御方法、およびプログラムを提供することを目的の一つとする。 The present invention was made in consideration of these circumstances, and one of its objectives is to provide a payment server, a payment control method, and a program that can realize safer electronic payments.

本発明の一態様は、利用者の端末装置において動作するアプリケーションプログラムと協働して電子決済サービスを前記利用者に提供する決済サーバであって、店舗に設置された店舗端末装置と通信し、前記店舗端末装置が、前記端末装置が表示するコード画像から読み取った情報の少なくとも一部と決済金額とを含む決済情報を前記店舗端末装置から受信する通信部と、前記通信部を介して、ワンタイムコードを前記アプリケーションプログラムに提供すると共に、前記利用者を識別可能な情報と共に前記ワンタイムコードを記憶部に記憶させる提供部と、前記決済情報に基づいて電子決済を行う決済処理部であって、前記決済情報に、前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれる場合は、前記ワンタイムコードを用いて前記利用者を特定して電子決済を進行させ、前記決済情報に、予め前記利用者に付与され前記記憶部に記憶されたオフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合は、前記オフラインキーを用いて前記利用者を特定して電子決済を進行させる決済処理部と、を備え、前記決済処理部は、前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、所定期間内における決済回数の上限を設定する、決済サーバである。 One aspect of the present invention is a payment server that cooperates with an application program running on a user's terminal device to provide the user with an electronic payment service, comprising: a communication unit that communicates with a store terminal device installed in a store, and receives from the store terminal device payment information including at least a portion of information read from a code image displayed by the terminal device and a payment amount; a provision unit that provides a one-time code to the application program via the communication unit and stores the one-time code in a storage unit together with information that can identify the user; and a payment processing unit that performs electronic payment based on the payment information, and refers to the storage unit to receive the payment information. and a payment processing unit that, if the payment information includes information based on the one-time code obtained by referencing the storage unit, identifies the user using the one-time code and proceeds with the electronic payment, and, if the payment information includes an offline key that has been assigned to the user in advance and stored in the storage unit and does not include information based on the one-time code obtained by referencing the storage unit, identifies the user using the offline key and proceeds with the electronic payment, and the payment processing unit is a payment server that, if the payment information includes the offline key and does not include information based on the one-time code obtained by referencing the storage unit, sets an upper limit on the number of payments within a predetermined period.

本発明の一態様によれば、より安全な電子決済を実現することができる決済サーバ、決済制御方法、およびプログラムを提供することができる。 According to one aspect of the present invention, it is possible to provide a payment server, a payment control method, and a program that can realize more secure electronic payments.

電子決済サービスが実現されるための構成の一例を示す図である。FIG. 1 is a diagram showing an example of a configuration for realizing an electronic payment service. 電子決済(オンライン決済)の大まかな流れを例示したシーケンス図(その1)である。FIG. 1 is a sequence diagram (part 1) illustrating an example of a general flow of electronic payment (online payment). 電子決済の(オンライン決済)大まかな流れを例示したシーケンス図(その2)である。FIG. 2 is a sequence diagram (part 2) illustrating an example of a general flow of electronic payment (online payment). 第1実施形態に係る決済サーバ100の構成図である。FIG. 2 is a configuration diagram of a payment server 100 according to the first embodiment. 利用者情報172の内容の一例を示す図である。FIG. 11 is a diagram showing an example of the contents of user information 172. 加盟店/店舗情報176の内容の一例を示す図である。FIG. 13 is a diagram showing an example of the contents of affiliated store/store information 176. 決済アプリ20のトップ画面IM1の一例を示す図である。FIG. 2 is a diagram showing an example of a top screen IM1 of a payment application 20. オフライン決済のために行われる処理の流れを例示したシーケンス図である。FIG. 11 is a sequence diagram illustrating a process flow for offline payment. 決済アプリ20による画面制御に係る処理の流れの一例を示すフローチャートである。11 is a flowchart showing an example of a process flow related to screen control by a payment application 20. 待機画面IM2の一例を示す図である。FIG. 13 is a diagram showing an example of a standby screen IM2. ハーフシートIM3の一例を示す図である。FIG. 13 is a diagram showing an example of a half sheet IM3. 詳細説明画面IMeの一例を示す図である。FIG. 13 is a diagram showing an example of a detailed explanation screen IMe. 第1オフラインコード画像が表示される第1オフラインモード画面IM4の一例を示す図である。FIG. 13 is a diagram showing an example of a first offline mode screen IM4 on which a first offline code image is displayed. 第2オフラインコード画像が表示される第2オフラインモード画面IM5の一例を示す図である。FIG. 13 is a diagram showing an example of a second offline mode screen IM5 on which a second offline code image is displayed. 決済方法選択画面IM6の一例を示す図である。FIG. 13 is a diagram showing an example of a payment method selection screen IM6.

以下、図面を参照し、本発明のアプリケーションプログラム、決済制御方法、決済サーバ、プログラム、および決済システムを提供することの実施形態について説明する。アプリケーションプログラムと決済サーバは、協働して電子決済サービスを提供する。以下の説明ではアプリケーションプログラムを決済アプリと称する。電子決済サービスは、店舗における商品やサービスの購買に係る決済をサポートするサービスである。店舗とは、例えば、現実空間に存在する物理的な店舗(実店舗)であるが、電子商取引の仮想店舗を含んでもよい。仮想店舗は、電子決済サービスの運営者とは異なる主体によって提供されるものを含んでもよい。その場合、仮想店舗における買い物の決済の際に、電子決済サービスのインターフェース画面に遷移するように制御される。電子決済サービスにおいて、店舗は、例えば加盟店(ブランド)に属するものとして扱われ、店舗において購買行動が行われた際の決済などの処理は、主として利用者と加盟店の間で行われる。これに代えて、決済などの処理が利用者と店舗との間で行われてもよい。 Hereinafter, with reference to the drawings, an embodiment of the application program, the payment control method, the payment server, the program, and the payment system of the present invention will be described. The application program and the payment server work together to provide an electronic payment service. In the following description, the application program is referred to as a payment app. The electronic payment service is a service that supports payments related to the purchase of goods and services at a store. The store is, for example, a physical store (real store) that exists in the real world, but may also include a virtual store for electronic commerce. The virtual store may also include a store provided by an entity other than the operator of the electronic payment service. In that case, when making a payment for a purchase at the virtual store, the screen is controlled to transition to an interface screen of the electronic payment service. In the electronic payment service, the store is treated as belonging to, for example, an affiliated store (brand), and processing such as payment when a purchase is made at the store is mainly performed between the user and the affiliated store. Alternatively, processing such as payment may be performed between the user and the store.

[電子決済サービス]
図1は、電子決済サービスが実現されるための構成の一例を示す図である。電子決済サービスは、決済サーバ100を中心として実現される。決済サーバ100は、例えば、一以上の利用者端末装置10、一以上の第1店舗端末装置50、及び一以上の第2店舗端末装置70のそれぞれとネットワークNWを介して通信する。ネットワークNWは、例えば、インターネット、LAN(Local Area Network)、無線基地局、プロバイダ装置などを含む。
[Electronic payment service]
1 is a diagram showing an example of a configuration for realizing an electronic payment service. The electronic payment service is realized mainly by a payment server 100. The payment server 100 communicates with, for example, one or more user terminal devices 10, one or more first store terminal devices 50, and one or more second store terminal devices 70 via a network NW. The network NW includes, for example, the Internet, a LAN (Local Area Network), a wireless base station, a provider device, and the like.

利用者端末装置10は、例えば、スマートフォンやタブレット端末等の可搬型端末装置である。利用者端末装置10は、少なくとも、光学読取機能、通信機能、表示機能、入力受付機能、プログラム実行機能を有するコンピュータ装置である。以下の説明では、これらの機能を実現するための構成をそれぞれカメラ、通信装置、タッチパネル、CPU(Central Processing Unit)等と称する。利用者端末装置10では、CPU等のプロセッサにより決済アプリ20が実行されることで、決済サーバ100と連携して電子決済サービスを利用者に提供するように動作する。決済アプリ20は、例えば、アプリケーションストアから利用者端末装置10にインストールされ、カメラ、通信装置、タッチパネルなどを制御する。 The user terminal device 10 is, for example, a portable terminal device such as a smartphone or a tablet terminal. The user terminal device 10 is a computer device having at least an optical reading function, a communication function, a display function, an input acceptance function, and a program execution function. In the following description, the components for realizing these functions are referred to as a camera, a communication device, a touch panel, a CPU (Central Processing Unit), etc. In the user terminal device 10, a processor such as a CPU executes a payment app 20, which operates in cooperation with the payment server 100 to provide electronic payment services to users. The payment app 20 is installed in the user terminal device 10 from, for example, an application store, and controls the camera, communication device, touch panel, etc.

第1店舗端末装置50は、例えば、店舗に設置される。第1店舗端末装置50は、少なくとも、商品価格取得機能、光学読取機能、プログラム実行機能、通信機能を有するコンピュータ装置である。第1店舗端末装置50は、いわゆるPOS(Point of Sale)装置を含み、POS装置によって商品価格取得機能や光学読取機能を実現してもよい。店舗コード画像60は、店舗に置かれ、QRコード(登録商標)等のコード画像が紙やプラスチックの媒体に印刷されたものである。なお、店舗コード画像60は、店舗に置かれたディスプレイ(スマートフォンなどの端末装置のディスプレイでもよい)によって表示されてもよい。 The first store terminal device 50 is installed, for example, in a store. The first store terminal device 50 is a computer device having at least a product price acquisition function, an optical reading function, a program execution function, and a communication function. The first store terminal device 50 includes a so-called POS (Point of Sale) device, and the product price acquisition function and the optical reading function may be realized by the POS device. The store code image 60 is placed in the store, and is a code image such as a QR code (registered trademark) printed on a paper or plastic medium. The store code image 60 may be displayed on a display placed in the store (which may be the display of a terminal device such as a smartphone).

第2店舗端末装置70は、加盟店の運営者によって使用される。第2店舗端末装置70は、スマートフォンやタブレット端末、パーソナルコンピュータ等である。第2店舗端末装置70では、加盟店向けインターフェース72が動作する。加盟店向けインターフェース72は、加盟店向けアプリであってもよいし、ブラウザであってもよい。加盟店向けインターフェース72は、加盟店の運営者によるクーポンの設定等を受け付け、決済サーバ100に送信する。スマートフォンである第2店舗端末装置70は、加盟店向けアプリを実行することで、店舗コード画像に相当するコード画像を表示したり、利用者端末装置10が表示するコード画像を読み取ったりする機能を有する。 The second store terminal device 70 is used by the operator of the affiliated store. The second store terminal device 70 is a smartphone, a tablet terminal, a personal computer, etc. An interface 72 for affiliated stores runs on the second store terminal device 70. The interface 72 for affiliated stores may be an app for affiliated stores or a browser. The interface 72 for affiliated stores accepts coupon settings and the like made by the operator of the affiliated store and transmits them to the payment server 100. The second store terminal device 70, which is a smartphone, has the function of displaying a code image equivalent to a store code image and reading a code image displayed by the user terminal device 10 by executing the app for affiliated stores.

決済サーバ100は、利用者端末装置10または第1店舗端末装置50から受信した決済情報に基づいて電子決済を実現する。第1店舗端末装置50は、POS装置、POSゲートウェイ、加盟店サーバなどを含む場合があり、その場合、POS装置から各種装置を介して決済情報が決済サーバ100に送信される。以下の説明では、これを特に区別せず、第1店舗端末装置50から決済情報が送信されるものとする。 The payment server 100 realizes electronic payment based on payment information received from the user terminal device 10 or the first store terminal device 50. The first store terminal device 50 may include a POS device, a POS gateway, an affiliated store server, etc., in which case the payment information is sent from the POS device to the payment server 100 via various devices. In the following explanation, no distinction is made between these two, and it is assumed that the payment information is sent from the first store terminal device 50.

図2および図3は、電子決済(オンライン決済)の大まかな流れを例示したシーケンス図である。電子決済には、パターン1とパターン2の二つが存在してよい。 Figures 2 and 3 are sequence diagrams illustrating the general flow of electronic payment (online payment). There may be two types of electronic payment: pattern 1 and pattern 2.

図2に示すパターン1(以下、ユーザスキャンと称する)の場合、決済アプリ20が起動した状態の利用者端末装置10が、光学読取機能によって店舗コード画像60をデコードする(S1)。店舗コード画像60には、店舗URL(Uniform Resource Locator)の情報が含まれている。この店舗URLは、電子決済サービスのドメインに対して店舗を識別可能な情報が付加されたものであり、決済サーバ100において加盟店IDや店舗ID等との対応付けがなされている(後述)。決済アプリ20は、店舗URLとアカウントIDを含む第1決済情報を決済サーバ100に送信する(S2)。決済サーバ100は、店舗URLに対応する加盟店ID、店舗IDから、店舗情報(後述)を検索して加盟店名と店舗名の情報を取得し(S3)、決済アプリ20に送信する(S4)。利用者は、加盟店名や店舗名が表示された画面において、決済金額を利用者端末装置10に入力する(S5)。そして、利用者端末装置10は、少なくとも決済金額を含む第2決済情報を生成し、決済サーバ100に送信する(S6)。決済サーバ100は、受信した第2決済情報に基づいて電子決済を行う(S7)。そして、決済サーバ100は、決済完了通知(決済完了画面を表示するための情報)を決済アプリ20に送信し(S8)、決済アプリ20は決済完了画面を表示する(S9)。なお、店舗コード画像60が店舗に置かれたディスプレイによって表示される場合、店舗コード画像60には、店舗URLだけでなく決済金額の情報が含まれる場合がある。この場合、利用者が決済金額を入力する手順が省略され、第1決済情報に決済金額の情報が含められて決済サーバ100に送信される。加盟店名や店舗名の情報は、決済完了画面に含めて表示されてよい。 In the case of pattern 1 (hereinafter referred to as user scan) shown in FIG. 2, the user terminal device 10 with the payment application 20 activated decodes the store code image 60 by the optical reading function (S1). The store code image 60 includes store URL (Uniform Resource Locator) information. This store URL is the domain of the electronic payment service to which information capable of identifying the store is added, and is associated with the affiliated store ID, store ID, etc. in the payment server 100 (described later). The payment application 20 transmits the first payment information including the store URL and the account ID to the payment server 100 (S2). The payment server 100 searches for store information (described later) from the affiliated store ID and store ID corresponding to the store URL, acquires the affiliated store name and store name information (S3), and transmits it to the payment application 20 (S4). The user inputs the payment amount into the user terminal device 10 on the screen on which the affiliated store name and store name are displayed (S5). Then, the user terminal device 10 generates second payment information including at least the payment amount and transmits it to the payment server 100 (S6). The payment server 100 performs electronic payment based on the received second payment information (S7). The payment server 100 then transmits a payment completion notice (information for displaying a payment completion screen) to the payment application 20 (S8), and the payment application 20 displays the payment completion screen (S9). Note that when the store code image 60 is displayed on a display installed in the store, the store code image 60 may include not only the store URL but also information on the payment amount. In this case, the procedure in which the user inputs the payment amount is omitted, and the first payment information is transmitted to the payment server 100 with the information on the payment amount included. Information on the affiliated store name and store name may be included and displayed on the payment completion screen.

図3に示すパターン2(以下、ストアスキャンと称する)の場合、決済アプリ20の起動時、決済アプリ20において支払う操作が行われたとき、自動更新のタイミング(例えば1分おき)になったとき、およびその他のタイミングで、決済アプリ20はワンタイムコードの発行要求を決済サーバ100に送信する(S11)。決済サーバ100(後述する決済コンテンツ提供部120)はワンタイムコードを生成し(S12)、決済アプリ20に送信する(S13)。決済アプリ20は、ワンタイムコードに基づいて生成した、QRコードやバーコード等のコード画像(オンラインコード画像)を表示する(S14)。利用者は利用者端末装置10の表示面を第1店舗端末装置50に翳し(提示し)、第1店舗端末装置50は、光学読取機能によってコード画像をデコードし、ワンタイムコード等を取得する(S15)。そして、第1店舗端末装置50は、ワンタイムコード、決済金額、加盟店ID、店舗ID等を含む決済情報を生成し、決済サーバ100に送信する(S16)。決済金額の情報は、予めバーコード読み取りや手入力等によって取得されている。決済サーバ100は、受信した情報に基づいて、ワンタイムコードに対応する利用者を特定し、電子決済を行う(S17)。そして、決済サーバ100は、決済完了通知を決済アプリ20に送信し(S18)、決済アプリ20は決済完了画面を表示する(S19)。なお、これと並行して第1店舗端末装置50にも決済完了を通知する情報が送信される。 In the case of pattern 2 (hereinafter referred to as store scan) shown in FIG. 3, when the payment app 20 is started, when a payment operation is performed in the payment app 20, when the automatic update timing (for example, every minute) occurs, and at other timings, the payment app 20 sends a request to issue a one-time code to the payment server 100 (S11). The payment server 100 (the payment content providing unit 120 described later) generates a one-time code (S12) and sends it to the payment app 20 (S13). The payment app 20 displays a code image (online code image) such as a QR code or a barcode generated based on the one-time code (S14). The user holds (presents) the display surface of the user terminal device 10 over the first store terminal device 50, and the first store terminal device 50 decodes the code image by the optical reading function and obtains the one-time code, etc. (S15). Then, the first store terminal device 50 generates payment information including the one-time code, payment amount, affiliated store ID, store ID, etc., and sends it to the payment server 100 (S16). The payment amount information is acquired in advance by reading a barcode or manually entering it. Based on the received information, the payment server 100 identifies the user corresponding to the one-time code and performs electronic payment (S17). The payment server 100 then sends a payment completion notification to the payment application 20 (S18), and the payment application 20 displays a payment completion screen (S19). At the same time, information notifying the first store terminal device 50 of the completion of payment is also sent.

なお、上記のいずれか一方のみのパターンで電子決済が行われてもよい。また、図2で説明した「アカウントID」は、利用者の識別情報として用いられ得る他の情報(例えば電話番号)であってもよい。 Note that electronic payment may be made using only one of the above patterns. In addition, the "account ID" described in FIG. 2 may be other information (e.g., a telephone number) that can be used as user identification information.

[決済サーバ]
図4は、第1実施形態に係る決済サーバ100の構成図である。決済サーバ100は、例えば、通信部110と、決済コンテンツ提供部120と、決済処理部130と、情報管理部140と、記憶部170とを備える。通信部110および記憶部170以外の構成要素は、例えば、CPUなどのハードウェアプロセッサがプログラム(ソフトウェア)を実行することにより実現される。これらの構成要素のうち一部または全部は、LSI(Large Scale Integration)やASIC(Application Specific Integrated Circuit)、FPGA(Field-Programmable Gate Array)、GPU(Graphics Processing Unit)などのハードウェア(回路部;circuitryを含む)によって実現されてもよいし、ソフトウェアとハードウェアの協働によって実現されてもよい。プログラムは、予めHDD(Hard Disk Drive)やフラッシュメモリなどの記憶装置(非一過性の記憶媒体を備える記憶装置)に格納されていてもよいし、DVDやCD-ROMなどの着脱可能な記憶媒体(非一過性の記憶媒体)に格納されており、記憶媒体がドライブ装置に装着されることで記憶装置にインストールされてもよい。
[Payment server]
FIG. 4 is a configuration diagram of the payment server 100 according to the first embodiment. The payment server 100 includes, for example, a communication unit 110, a payment content providing unit 120, a payment processing unit 130, an information management unit 140, and a storage unit 170. The components other than the communication unit 110 and the storage unit 170 are realized by, for example, a hardware processor such as a CPU executing a program (software). Some or all of these components may be realized by hardware (including circuitry) such as an LSI (Large Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a GPU (Graphics Processing Unit), or may be realized by cooperation between software and hardware. The program may be stored in advance in a storage device (storage device having a non-transient storage medium) such as an HDD (Hard Disk Drive) or a flash memory, or may be stored in a removable storage medium (non-transient storage medium) such as a DVD or a CD-ROM, and may be installed in the storage device by mounting the storage medium in a drive device.

記憶部170は、HDDやフラッシュメモリ、RAM(Random Access Memory)などである。記憶部170は、決済サーバ100がネットワークを介してアクセス可能なNAS(Network Attached Storage)装置であってもよい。記憶部170には、利用者情報172、決済コンテンツ情報174、加盟店/店舗情報176などの情報が格納される。 The storage unit 170 is a HDD, flash memory, RAM (Random Access Memory), etc. The storage unit 170 may be a NAS (Network Attached Storage) device that the payment server 100 can access via a network. The storage unit 170 stores information such as user information 172, payment content information 174, and affiliated store/shop information 176.

通信部110は、ネットワークNWに接続するための通信インターフェースである。通信部110は、例えばネットワークインターフェースカードである。 The communication unit 110 is a communication interface for connecting to the network NW. The communication unit 110 is, for example, a network interface card.

決済コンテンツ提供部120は、例えば、Webサーバの機能を有し、電子決済サービスの各種画面を表示するための情報(コンテンツ)を利用者端末装置10に提供する。決済コンテンツ提供部120は、決済コンテンツ情報174から適宜、必要なコンテンツを読み出して利用者端末装置10に提供する。利用者端末装置10は、決済アプリ20によってコンテンツが再生された状態で利用者による各種入力を受け付け、前述した決済情報などを決済サーバ100に送信する。 The payment content providing unit 120 has, for example, a web server function, and provides information (content) for displaying various screens of the electronic payment service to the user terminal device 10. The payment content providing unit 120 reads out necessary content from the payment content information 174 as appropriate and provides it to the user terminal device 10. The user terminal device 10 accepts various inputs by the user while the content is being played by the payment application 20, and transmits the above-mentioned payment information and the like to the payment server 100.

決済処理部130は、利用者端末装置10または第1店舗端末装置50により送信された決済情報に基づいて、決済処理を行う。決済処理部130は、利用者情報172を参照しながら決済処理を行う。 The payment processing unit 130 performs payment processing based on the payment information transmitted by the user terminal device 10 or the first store terminal device 50. The payment processing unit 130 performs payment processing while referring to the user information 172.

図5は、利用者情報172の内容の一例を示す図である。利用者情報172は、利用者の登録情報の一例である。利用者情報172は、例えば、利用者URL、アカウントID、電話番号、パスワードの他、メールアドレス、利用者ID、氏名・住所・生年月日、登録日、チャージ残高、後払い設定、後払い枠、後払い利用額、後払い利用可能額、決済方法設定、銀行口座、クレジットカード番号、発行済ワンタイムコード、後述するオフライン決済のための利用者識別トークン、シークレットキー(チャージ残高用)、およびシークレットキー(後払い用)、オフライン決済の上限情報、チャージ履歴情報、決済履歴情報などの情報が対応付けられたものである。 Figure 5 is a diagram showing an example of the contents of user information 172. User information 172 is an example of user registration information. User information 172 is associated with information such as user URL, account ID, phone number, password, email address, user ID, name, address, date of birth, registration date, charge balance, deferred payment settings, deferred payment limit, deferred payment usage amount, available deferred payment amount, payment method settings, bank account, credit card number, issued one-time code, user identification token for offline payment described below, secret key (for charge balance), secret key (for deferred payment), offline payment upper limit information, charge history information, and payment history information.

利用者URLは、利用者間の送金処理に使用される。電子決済サービスへの新規登録時には、電話番号およびパスワードの登録が必須となる。アカウントIDは、決済サーバ100によって利用者に発行されるものであり、利用者IDは、利用者が任意に設定できる(設定しなくてもよい)IDである。メールアドレス、および氏名・住所・生年月日も同様に、利用者が任意に設定できる(設定しなくてもよい)情報である。登録日とは利用者が電子決済サービスに登録した日(アカウントを作成した日)である。以下、これらの情報が対応付けられた利用者のインスタンス(電子決済口座)のことをアカウントと称する。 The user URL is used for money transfer processing between users. When registering for the electronic payment service, registration of a phone number and password is mandatory. The account ID is issued to the user by the payment server 100, and the user ID is an ID that the user can set at their discretion (does not have to set). Similarly, the email address, name, address, and date of birth are also information that the user can set at their discretion (does not have to set). The registration date is the date that the user registered for the electronic payment service (the date that the account was created). Hereinafter, the user instance (electronic payment account) to which this information is associated will be referred to as an account.

チャージ残高は、利用者が予めアカウントに送金することで設定された電子マネーの残高を示す情報である。送金の手段としては、指定業者(銀行)のATM(Automatic Teller Machine)からの送金、登録された銀行口座からの送金などがある。後払い設定は、後払いによる電子決済を可能とするための設定が済んでいるか否かを示す情報であり、「済」と「未」のいずれかに設定される。決済方法設定は、その時点において利用者がチャージ残高による電子決済を行うのか、後払いによる決済を行うのかを示す設定情報である。銀行口座とクレジットカード番号のそれぞれは、電子決済サービスに入金可能な銀行口座またはクレジットカード番号の情報(口座番号、カード番号)である。チャージ履歴情報は、利用者が予め電子決済サービスに送金してチャージ残高を増加させた履歴である。決済履歴情報は、利用者が行った決済の内訳(日時、購買行動が行われた店舗の店舗ID、決済金額、決済方法など)を、決済ごとに示す情報である。 The charge balance is information indicating the balance of electronic money that is set by the user by transferring money to the account in advance. Methods of transfer include transfer from an ATM (Automatic Teller Machine) of a designated business (bank) and transfer from a registered bank account. The deferred payment setting is information indicating whether the setting for enabling deferred electronic payment has been completed, and is set to either "completed" or "not completed." The payment method setting is setting information indicating whether the user will make electronic payment from the charge balance or deferred payment at that time. The bank account and credit card number are information on the bank account or credit card number (account number, card number) that can be used to deposit money into the electronic payment service. The charge history information is a history of the user transferring money to the electronic payment service in advance to increase the charge balance. The payment history information is information indicating the details of the payment made by the user (date and time, store ID of the store where the purchase was made, payment amount, payment method, etc.) for each payment.

図6は、加盟店/店舗情報176の内容の一例を示す図である。加盟店/店舗情報176は、例えば、店舗URLに対して加盟店IDと店舗IDが対応付けられた第1テーブル176Aと、加盟店IDに対して加盟店名と売上金(前述)が対応付けられた第2テーブル176Bと、店舗IDに対して店舗IDが対応付けられた第3テーブル176Cとを含む。加盟店/店舗情報176には、これらの情報の他、加盟店または店舗のカテゴリ、店舗の所在地、決済パターン等の情報が含まれてもよい。 Figure 6 is a diagram showing an example of the contents of affiliated store/store information 176. Affiliated store/store information 176 includes, for example, a first table 176A in which an affiliated store ID and a store ID are associated with a store URL, a second table 176B in which an affiliated store name and sales amount (described above) are associated with an affiliated store ID, and a third table 176C in which a store ID is associated with a store ID. In addition to this information, affiliated store/store information 176 may also include information such as the affiliated store or store category, the store's location, and payment patterns.

情報管理部140は、利用者端末装置10や第2店舗端末装置70から取得した情報に基づいて、利用者情報172および加盟店/店舗情報176を管理する。情報管理部140は、利用者情報172および加盟店/店舗情報176について新規レコードの追加、編集、削除などを行う。 The information management unit 140 manages the user information 172 and the affiliated store/store information 176 based on information acquired from the user terminal device 10 and the second store terminal device 70. The information management unit 140 adds new records, edits, deletes, etc. for the user information 172 and the affiliated store/store information 176.

[電子決済]
決済処理部130は、利用者端末装置10または第1店舗端末装置50から決済情報が取得されると、利用者情報172を参照して当該利用者の「決済方法設定」を取得する。決済処理部130は、「決済方法設定」が「チャージ残高」に設定されている利用者に関して、以下のように電子決済を行う。決済処理部130は、例えば、利用者IDに対応付けて管理しているチャージ残高を減少させ、加盟店の売上金の項目値を増加させることで、電子決済を行う。加盟店の売上金の項目値は、例えば、それ自体が電子マネーとして使用されるものでは無く、加盟店と電子決済サービスとの取り決めに応じたサイクルで、売上金の項目値に対応する金額が銀行口座に送金される。
[Electronic Payment]
When payment information is acquired from the user terminal device 10 or the first store terminal device 50, the payment processing unit 130 refers to the user information 172 to acquire the "payment method setting" of the user. For a user whose "payment method setting" is set to "charge balance", the payment processing unit 130 performs electronic payment as follows. For example, the payment processing unit 130 performs electronic payment by decreasing the charge balance managed in association with the user ID and increasing the item value of the affiliated store's sales. The item value of the affiliated store's sales is not itself used as electronic money, for example, and an amount corresponding to the item value of the sales is transferred to a bank account in a cycle according to an agreement between the affiliated store and the electronic payment service.

決済処理部130は、「設定情報」が「後払い」に設定されている利用者に関して、以下のように電子決済を行う。後払いとは、電子決済サービスの運営者とは別主体であるクレジットカード会社との連携による「クレジット払い」とは別枠で設定されるものであり、電子決済サービスの運営者が与信者となって、後払い枠の範囲内でチャージ残高に依存しない電子決済を許容するものである。なお後払いサービスを受けるために、電子決済サービスの運営者が提供するクレジットカードの取得が要求されてよい。後払いで利用された金額は、一か月分まとめて翌月の支払日に、例えば銀行口座からの引き落としによって決済される。この場合、決済処理部130は、後払い利用額に決済金額を加算し、後払い利用可能額から同額を差し引くことで暫定決済を行い、締め日になると上記のように当月分の決済を翌月の支払い日に引き落とすための処理を行う、或いはクレジットカード会社の運営者に当該処理を依頼する。なお暫定決済の時点で決済金額が後払い利用可能額を超える場合は、エラー通知が決済アプリ20に返信される。 The payment processing unit 130 performs electronic payment for users whose "setting information" is set to "deferred payment" as follows. Deferred payment is set separately from "credit payment" in cooperation with a credit card company, which is a separate entity from the operator of the electronic payment service, and the operator of the electronic payment service acts as the creditor and allows electronic payment that is not dependent on the charge balance within the deferred payment limit. In order to receive the deferred payment service, it may be required to obtain a credit card provided by the operator of the electronic payment service. The amount used for deferred payment is settled on the payment date of the following month in a lump sum for one month, for example, by debiting from a bank account. In this case, the payment processing unit 130 performs provisional payment by adding the payment amount to the deferred payment amount and subtracting the same amount from the available deferred payment amount, and when the closing date comes, it performs processing to debit the payment for the current month on the payment date of the following month as described above, or requests the operator of the credit card company to perform such processing. In addition, if the payment amount exceeds the available deferred payment amount at the time of provisional payment, an error notification is returned to the payment application 20.

[チャージ残高と後払いの切り替え(オンライン決済時)]
図7は、決済アプリ20のトップ画面IM1の一例を示す図である。なお図示する状態は、決済アプリ20と決済サーバ100の通信が困難でない第1状態(オンライン決済可能な状態)であることを前提とする。第1状態においては、有効なワンタイムコードが決済サーバ100から決済アプリ20に提供されている。「有効な」とは、直近に発信されたワンタイムコードの発行要求に応じたものであることを意味する。トップ画面IM1には、コード画像CDが表示される。コード画像CDは、例えばバーコードとQRコードを含む。また、コード画像CDと共に、チャージ残高による電子決済を行うか、後払いによる電子決済を行うかを示すテキスト(図では「残高で支払う」)が表示される。このテキストは、切替スイッチ(トグルスイッチ)SWが操作される度に決済アプリ20が更新する情報に基づいて決済アプリ20が描画する。また、トップ画面IM1は、切替スイッチSWを含む操作領域CAと、遷移ボタンTB1とを含む。なお、「スイッチ」、「ボタン」とはタッチパネルと協働して実現されるGUI(Graphical User Interface)である。切替スイッチSWは、チャージ残高による電子決済を行うか、後払いによる電子決済を行うかを切り替える操作を受け付けるものである。切替スイッチSWは、デフォルトではチャージ残高による電子決済を行う設定になっており、利用者によって操作される度に、チャージ残高による電子決済を行う設定と、後払いによる電子決済を行う設定との間で設定が切り替わる。図では「残高払い」と説明表示がされているが、これはチャージ残高による電子決済を行う設定になっていることを意味する。操作領域CAには、スキャン(ユーザスキャンの開始)を指示するボタンやチャージを指示するボタンなど、電子決済における主要な操作を指示するボタンが設けられている。遷移ボタンTB1が操作されると、電子決済に用いられるコード画像と利用可能額を表示する支払い画面に遷移する。
[Switching between charge balance and deferred payment (when paying online)]
FIG. 7 is a diagram showing an example of the top screen IM1 of the payment application 20. Note that the illustrated state is premised on the first state (online payment possible state) in which communication between the payment application 20 and the payment server 100 is not difficult. In the first state, a valid one-time code is provided from the payment server 100 to the payment application 20. "Valid" means that it is in response to the most recently transmitted one-time code issuance request. The top screen IM1 displays a code image CD. The code image CD includes, for example, a barcode and a QR code. In addition, together with the code image CD, text indicating whether electronic payment is to be made with the charge balance or electronic payment by deferred payment (in the figure, "Pay with the balance") is displayed. This text is drawn by the payment application 20 based on information updated by the payment application 20 each time the changeover switch (toggle switch) SW is operated. In addition, the top screen IM1 includes an operation area CA including the changeover switch SW and a transition button TB1. Note that the "switch" and "button" are GUIs (Graphical User Interfaces) realized in cooperation with a touch panel. The changeover switch SW is for switching between electronic payment based on the charge balance and post-payment. The changeover switch SW is set to electronic payment based on the charge balance by default, and each time the user operates the switch SW, the setting is switched between electronic payment based on the charge balance and post-payment. In the figure, the explanation "Balance payment" is displayed, which means that the setting is set to electronic payment based on the charge balance. The operation area CA is provided with buttons for instructing main operations in electronic payment, such as a button for instructing scanning (starting user scanning) and a button for instructing charging. When the transition button TB1 is operated, the screen transitions to a payment screen that displays a code image used for electronic payment and the available amount.

[オフライン決済]
以下、決済アプリ20と決済サーバ100との通信が困難であることで、有効なワンタイムコードが取得されない第2状態における電子決済(オフライン決済)について説明する。本実施形態のオフライン決済は、前述したストアスキャンの店舗において実施可能なものである。
[Offline payment]
Hereinafter, a description will be given of electronic payment (offline payment) in the second state in which a valid one-time code is not acquired due to difficulty in communication between the payment application 20 and the payment server 100. The offline payment in this embodiment can be performed at the store where the store scan is performed as described above.

決済アプリ20は、決済サーバ100との通信が正常な第1状態にあるか、通信が困難な第2状態にあるかに応じて、オンライン決済を行うかオフライン決済を行うかを決定する。例えば、決済アプリ20は、ワンタイムコード発行要求に対する応答が既定時間内に届かない事象がn回以上発生した場合、第2状態であると判断する(nは1以上の整数)。決済アプリ20は、決済サーバ100との通信が第2状態にあると判断した場合、利用者端末装置10が計時している時刻やシークレットキーを用いてオフラインコードを生成し、オフラインコードに基づいてオフラインコード画像を生成し、オフラインコード画像を利用者端末装置10の表示部に表示させる。つまり、決済アプリ20は、ワンタイムコードを用いずに自身が生成したオフラインコードに基づいてオフラインコード画像を生成する。 The payment app 20 determines whether to perform online or offline payment depending on whether communication with the payment server 100 is in a first state where communication is normal or in a second state where communication is difficult. For example, the payment app 20 determines that the payment is in the second state when an event occurs n times or more where a response to a one-time code issuance request does not arrive within a predetermined time (n is an integer equal to or greater than 1). When the payment app 20 determines that communication with the payment server 100 is in the second state, it generates an offline code using the time measured by the user terminal device 10 and a secret key, generates an offline code image based on the offline code, and displays the offline code image on the display unit of the user terminal device 10. In other words, the payment app 20 generates an offline code image based on an offline code that it has generated itself without using a one-time code.

シークレットキーは、決済サーバ100から決済アプリ20に、ワンタイムコードよりも低頻度に取得されるものである。例えば、起動中の決済アプリ20は、1週間に1回程度の頻度でシークレットキーを取得する。この取得処理においてシークレットキー発行要求が決済アプリ20から決済サーバ100に送信されてもよいし、決済サーバ100から自発的にシークレットキーが決済アプリ20に提供されてもよい。 The secret key is obtained from the payment server 100 to the payment app 20 less frequently than the one-time code. For example, the activated payment app 20 obtains the secret key approximately once a week. In this obtaining process, a secret key issuance request may be sent from the payment app 20 to the payment server 100, or the payment server 100 may voluntarily provide the secret key to the payment app 20.

決済アプリ20は、時刻とシークレットキーに加えて、利用者識別トークンを用いてオフラインコードを生成してもよい。利用者識別トークンは、固定的に利用者に割り当てられるものであってもよいし、シークレットキー発行要求に併せて決済サーバ100から送信されるものであってもよい。なお、シークレットキーと利用者識別トークンの一方または双方を含むものがオフラインキーの一例である。 The payment application 20 may generate an offline code using a user identification token in addition to the time and the secret key. The user identification token may be one that is fixedly assigned to the user, or may be one that is sent from the payment server 100 together with the secret key issuance request. An example of an offline key is one that includes one or both of the secret key and the user identification token.

例えば、決済アプリ20は、シークレットキーと時刻を所定の関数に入力して得られたデータと、利用者識別トークンを結合して得られるデータに基づいて、オフラインコードを生成する。係る手法はあくまで一例であり、決済アプリ20は、シークレットキー、時刻、利用者識別トークンのうち一部または全部に基づいて、復号可能な任意の手法でオフラインコードを生成してよい。 For example, the payment application 20 generates an offline code based on data obtained by inputting the secret key and the time into a specific function and combining the data with the user identification token. This method is merely one example, and the payment application 20 may generate an offline code using any method that can be decrypted based on some or all of the secret key, the time, and the user identification token.

また、決済アプリ20は、所定のタイミングで(例えばシークレットキー発行要求の度に)、利用者端末装置10の計時する時刻と決済サーバ100の計時する時刻との同期を利用者端末装置10に行わせてもよい。このとき、決済アプリ20は、決済サーバ100と略同時に電波時計などの時刻に合わせる処理を行ってよい。 The payment application 20 may also cause the user terminal device 10 to synchronize the time measured by the user terminal device 10 with the time measured by the payment server 100 at a predetermined timing (e.g., each time a secret key issuance request is made). At this time, the payment application 20 may perform a process of synchronizing the time measured by the user terminal device 10 with the time measured by a radio clock or the like at approximately the same time as the payment server 100.

オフラインコード画像が第1店舗端末装置50によって読み取られ、読み取られた情報の少なくとも一部と決済金額とを含む決済情報決済情報を取得すると(決済アプリ20が時刻を用いて生成したオフラインコード画像に基づく情報が含まれる場合は)、決済サーバ100の決済処理部130は、オフライン認証条件が満たされる場合に、決済情報に基づく電子決済を進行させる。つまりオフライン決済を進める。「読み取られた情報の少なくとも一部」とは「オフラインコードの少なくとも一部」であり、以下では単にオフラインコードと称する。オフライン認証条件は、決済アプリ20がオフラインコードに基づいて生成したオフラインコード画像に関連するものである。例えば、オフライン認証条件は、オフラインコード画像から読み取られた時刻(以下、アプリ時刻)が、決済サーバ100の計時する時刻(以下、サーバ時刻)と比較して所定範囲内にあることを含む。オフライン認証条件は、オフラインキー(シークレットキーと利用者識別トークンの一方または双方)が、決済アプリ20に提供されたものとして記憶部170に保持されたものであることを含んでもよい。オフライン決済において扱われる時刻は、例えば分単位で計時されるものであるが、これに限られない。決済処理部130は、決済情報を取得すると、オフラインキーを用いて利用者を特定する。例えば、決済処理部130は、決済情報を取得すると、決済情報に含まれるオフラインコードに含まれる利用者識別トークンからシークレットキーを特定し、特定したシークレットキーと、決済サーバ100が計時する現在の時刻とを用いて、決済アプリ20と同じ手法でオフラインコードを生成し、第1店舗端末装置50から取得したオフラインコードと自身で生成したコードが一致した場合、オフラインコードが正当なものであると判断する。決済処理部130は、例えば、利用者端末装置10と決済サーバ100の間で時刻がずれる場合に備え、決済サーバ100の計時する現在時刻プラスマイナス所定時間(例えば1分)の所定範囲で複数のコードを生成し、いずれかが店舗端末装置から取得したオフラインコードと一致した場合、オフライン認証条件が満たされる、つまりは正当な決済情報であると判断する。 When the offline code image is read by the first store terminal device 50 and payment information including at least a part of the read information and the payment amount is obtained (if the information based on the offline code image generated by the payment app 20 using the time is included), the payment processing unit 130 of the payment server 100 proceeds with the electronic payment based on the payment information if the offline authentication condition is satisfied. In other words, the offline payment is proceeded. "At least a part of the read information" means "at least a part of the offline code" and will be simply referred to as the offline code below. The offline authentication condition is related to the offline code image generated by the payment app 20 based on the offline code. For example, the offline authentication condition includes that the time read from the offline code image (hereinafter, the app time) is within a predetermined range compared with the time clocked by the payment server 100 (hereinafter, the server time). The offline authentication condition may include that the offline key (one or both of the secret key and the user identification token) is stored in the storage unit 170 as provided to the payment app 20. The time handled in the offline payment is, for example, clocked in minutes, but is not limited to this. When the payment processing unit 130 acquires the payment information, it uses the offline key to identify the user. For example, when the payment processing unit 130 acquires the payment information, it identifies a secret key from the user identification token included in the offline code included in the payment information, and generates an offline code in the same manner as the payment app 20 using the identified secret key and the current time clocked by the payment server 100. If the offline code acquired from the first store terminal device 50 matches the code generated by itself, it determines that the offline code is valid. For example, in preparation for a time discrepancy between the user terminal device 10 and the payment server 100, the payment processing unit 130 generates multiple codes within a predetermined range of the current time clocked by the payment server 100 plus or minus a predetermined time (for example, one minute), and if any of the codes matches the offline code acquired from the store terminal device, it determines that the offline authentication condition is satisfied, that is, that the payment information is valid.

決済処理部130は、オフライン決済を行う場合(決済情報にオフラインコード画像から得られた情報が含まれる場合)、決済回数と、決済額とのうち一方または双方に上限を設ける。これらの上限は、オンライン決済を行う場合(決済情報にワンタイムコードに基づく情報が含まれる場合)には設定されない、あるいはオンライン決済を行う場合に比して低いものである。例えば図5に示すように、決済処理部130は、オフライン決済を行う場合に以下の上限を設ける。
(決済回数の上限)
・過去の第1期間T1内にオフライン決済としてn1回まで
・過去の第2期間T2内にオフライン決済としてn2回まで(T1<T2、n1<n2)
(決済額の上限)
・オフライン決済としての1回の決済額はP1円まで
・過去24時間のオフライン決済としての決済額の合計はP2まで(P1<P2、但し、各回の決済額はP1以下である必要がある)
・過去30日間のオフライン決済としての決済額の合計はP3まで(P2<P2、ただし、各回の決済額はP1以下、過去24時間の決済額の合計はP2以下である必要がある)
When performing offline payment (when the payment information includes information obtained from the offline code image), the payment processing unit 130 sets upper limits on one or both of the number of payments and the payment amount. When performing online payment (when the payment information includes information based on the one-time code), these upper limits are not set or are lower than those for online payment. For example, as shown in FIG. 5, the payment processing unit 130 sets the following upper limits when performing offline payment:
(Maximum number of payments)
Up to n1 offline payments in the past first period T1 Up to n2 offline payments in the past second period T2 (T1<T2, n1<n2)
(Upper limit of payment amount)
・The amount of a single offline payment is limited to P1 yen. ・The total amount of offline payments in the past 24 hours is limited to P2 (P1 < P2, but each payment amount must be less than P1).
The total amount of offline payments in the past 30 days must be up to P3 (P2<P2, but each payment amount must be less than P1, and the total amount of payments in the past 24 hours must be less than P2)

例えば、T1は24時間、T2は30日間、P1は5000円、P2は10000円、P3は50000円といった値に設定される。決済処理部130は、これらのうち一部または全部について、上記の値を規定値として、それを超えない範囲で利用者の設定操作や利用者の決済履歴等に基づいて決定してもよい。例えば、利用者の設定操作に応じて、1回の決済額の上限が0円から5000円までの範囲内で任意に決定されてもよい。図5の例では、アカウントIDが「002」の利用者に関して、当該利用者の決済アプリ20に対する操作によって1回の決済額の上限が3000円に設定されている。また、利用者の決済履歴に基づいて上限値を決定する場合、決済処理部130は、過去の利用者の電子決済の頻度、一回あたりの決済額、決済対象のカテゴリの傾向等に基づいて上限値を決定する。決済処理部130は、オフライン決済を行う場合において上限値を超える決済情報が決済アプリ20から取得された場合、エラーメッセージを第1店舗端末装置50に送信すると共に、利用者端末装置10との通信が回復した後、エラーメッセージを利用者端末装置10にも送信する。 For example, T1 is set to 24 hours, T2 to 30 days, P1 to 5,000 yen, P2 to 10,000 yen, and P3 to 50,000 yen. The payment processing unit 130 may determine some or all of these based on the above values as default values and the user's setting operations and payment history of the user within a range not exceeding these values. For example, the upper limit of the payment amount per transaction may be arbitrarily determined within a range from 0 yen to 5,000 yen depending on the user's setting operations. In the example of FIG. 5, for a user with an account ID of "002", the upper limit of the payment amount per transaction is set to 3,000 yen by the user's operation on the payment app 20. In addition, when determining the upper limit based on the user's payment history, the payment processing unit 130 determines the upper limit based on the frequency of electronic payments by the user in the past, the payment amount per transaction, the tendency of the category of the payment object, and the like. When performing an offline payment, if payment information exceeding the upper limit is acquired from the payment app 20, the payment processing unit 130 sends an error message to the first store terminal device 50, and after communication with the user terminal device 10 is restored, also sends an error message to the user terminal device 10.

なお、オフライン決済に関する上限とは別に、チャージ残高や後払い利用可能額による上限も考慮される。例えば、チャージ残高が3000円、1回の決済額の上限が5000円である利用者が、オフライン決済で3500円の決済をしようとした場合、チャージ残高が不足することによるエラーメッセージが第1店舗端末装置50に通知され、画面表示等によって店舗の従業員に通知される。 In addition to the upper limit for offline payments, the upper limit for the charge balance and the available deferred payment amount are also taken into consideration. For example, if a user with a charge balance of 3,000 yen and an upper limit for a single payment of 5,000 yen attempts to make an offline payment of 3,500 yen, an error message indicating that the charge balance is insufficient is notified to the first store terminal device 50, and a store employee is notified by a screen display or the like.

図8は、オフライン決済のために行われる処理の流れを例示したシーケンス図である。まず、電子決済とは無関係なタイミングで、決済アプリ20はオフラインキーの発行要求を決済サーバ100に送信する(S21)。決済サーバ100はオフラインキーを生成し(S22)、決済アプリ20に送信する(S23)。決済アプリ20は、受信したオフラインキーを利用者端末装置10のメモリに記憶させておく。 Figure 8 is a sequence diagram illustrating the process flow performed for offline payment. First, at a timing unrelated to electronic payment, the payment application 20 sends a request to issue an offline key to the payment server 100 (S21). The payment server 100 generates an offline key (S22) and sends it to the payment application 20 (S23). The payment application 20 stores the received offline key in the memory of the user terminal device 10.

別のタイミングで、ストアスキャンが行われる店舗において利用者が決済アプリ20を起動させ、或いは決済アプリ20において支払う操作が行われた場合、決済アプリ20はワンタイムコードの発行要求を決済サーバ100に送信する(S31)。ワンタイムコード発行要求に対する応答が既定時間内に届かない事象がn回以上発生した場合、決済アプリ20は、オフラインコードを生成し、オフラインコードに基づいて生成したオフラインコード画像を表示する(S32)。利用者は利用者端末装置10の表示面を第1店舗端末装置50に翳し(提示し)、第1店舗端末装置50は、光学読取機能によってコード画像をデコードし、オフラインキー等を取得する(S33)。 At another time, when a user launches the payment app 20 in a store where a store scan is performed, or when a payment operation is performed using the payment app 20, the payment app 20 sends a request to issue a one-time code to the payment server 100 (S31). If an event occurs n times or more where a response to the one-time code issuance request does not arrive within a predetermined time, the payment app 20 generates an offline code and displays an offline code image generated based on the offline code (S32). The user holds (presents) the display surface of the user terminal device 10 over the first store terminal device 50, and the first store terminal device 50 decodes the code image using its optical reading function and obtains an offline key, etc. (S33).

そして、第1店舗端末装置50は、オフラインキー、決済金額、加盟店ID、店舗ID等を含む決済情報を生成し、決済サーバ100に送信する(S33)。決済サーバ100は、受信した情報に基づいて、利用者識別トークンに対応する利用者を特定し、上記の通りオフライン認証条件が満たされるか否かを判定し(S34)、オフライン認証条件が満たされる場合に電子決済を進める(S35)。この場合、専ら第1店舗端末装置50にも決済完了を通知する情報が送信される。 Then, the first store terminal device 50 generates payment information including the offline key, payment amount, affiliated store ID, store ID, etc., and transmits it to the payment server 100 (S33). Based on the received information, the payment server 100 identifies the user corresponding to the user identification token, and determines whether the offline authentication conditions are met as described above (S34), and proceeds with the electronic payment if the offline authentication conditions are met (S35). In this case, information notifying the first store terminal device 50 of the completion of the payment is also transmitted.

係る処理によれば、ストアスキャンを行う店舗が電波の弱い場所にある場合など、決済アプリ20と決済サーバ100の通信が困難な場合でも電子決済を可能にすることができるため、より柔軟に電子決済を実現可能にすることができる。また、オフライン決済においてもアカウントIDなどの利用者識別情報をオフラインコードに含めずに電子決済を進めることで、利用者の個人情報の保護度合いが低下しないようにすることができる。 This process enables electronic payment even when communication between the payment app 20 and the payment server 100 is difficult, such as when the store where the store scan is performed is located in an area with weak radio waves, making it possible to realize electronic payment more flexibly. In addition, by proceeding with electronic payment without including user identification information such as an account ID in the offline code even in offline payments, the degree of protection of the user's personal information can be prevented from being reduced.

更に、時刻とオフラインキーの双方を用いてオフラインコード画像を生成し、オフライン決済を行うことで、正当な決済であることの蓋然性を高めることができる。オフラインキーのみを用いてオフラインコード画像を生成し、オフライン決済を行うと、オフラインコード画像がいつ生成されたのか分からなくなるため、決済の正当性が低下してしまう。また、時刻のみを用いてオフラインコード画像を生成し、オフライン決済を行うと、オフラインコード画像の生成ロジックが暴かれてしまった場合に誰でもオフラインコード画像を生成できてしまう。これらの両者を用いてオフラインコード画像を生成することで、オフラインコード画像の生成タイミングを知ることができ、またオフラインキーがオフラインコード画像に含められることで、決済サーバ100が発行した情報に基づいていることが保証される。この結果、正当な決済であることの蓋然性を高めることができる。 Furthermore, by generating an offline code image using both the time and the offline key and performing an offline payment, the probability that the payment is legitimate can be increased. If an offline code image is generated using only the offline key and an offline payment is performed, it becomes impossible to know when the offline code image was generated, which reduces the legitimacy of the payment. Furthermore, if an offline code image is generated using only the time and an offline payment is performed, anyone can generate an offline code image if the logic for generating the offline code image is exposed. By generating an offline code image using both of these, the timing of the generation of the offline code image can be known, and by including the offline key in the offline code image, it is guaranteed that it is based on information issued by the payment server 100. As a result, the probability that the payment is legitimate can be increased.

また、オフライン決済の上限額をオンライン決済よりも低く設定することで、より安全な電子決済を実現することができる。 In addition, by setting the upper limit for offline payments lower than for online payments, more secure electronic payments can be achieved.

以下、決済アプリ20による画面制御について説明する。図9は、決済アプリ20による画面制御に係る処理の流れの一例を示すフローチャートである。本フローチャートの処理は、決済サーバ100との通信が発生する各種場面において開始される。 Screen control by the payment app 20 will be described below. Figure 9 is a flowchart showing an example of the processing flow related to screen control by the payment app 20. The processing of this flowchart is started in various situations where communication with the payment server 100 occurs.

まず、決済アプリ20は、決済サーバ100から通知が届かない状態であるか否かを判定する(S100)。通知とは、例えば前述したワンタイムパスワード発行要求に対して返信されるワンタイムパスワードなどである。決済サーバ100から通知が届いている場合、決済アプリ20は、オンラインモード画面(例えば図7に示すもの)を表示し、通常動作を継続する(S102)。 First, the payment application 20 determines whether or not a notification has been received from the payment server 100 (S100). A notification is, for example, a one-time password returned in response to the one-time password issuance request described above. If a notification has been received from the payment server 100, the payment application 20 displays an online mode screen (for example, the one shown in FIG. 7) and continues normal operation (S102).

決済サーバ100から通知が届かない状態である場合、決済アプリ20は、決済サーバ100から情報の読み込みが困難であることを示す待機画面IM2を利用者端末装置10に表示させる(S104)。図10は、待機画面IM2の一例を示す図である。待機画面IM2には、有効なコード画像は表示されず、利用者に対して決済サーバ100との接続状態を示すテキストTX1が表示される。 If no notification is received from the payment server 100, the payment application 20 causes the user terminal device 10 to display a standby screen IM2 indicating that it is difficult to read information from the payment server 100 (S104). FIG. 10 is a diagram showing an example of the standby screen IM2. The standby screen IM2 does not display a valid code image, and instead displays text TX1 indicating the connection status with the payment server 100 to the user.

次に、決済アプリ20は、第2状態であることが確定したか否かを判定する(S106)。前述したように、第2状態であることが確定するための条件は、「ワンタイムコード発行要求に対する応答等の通知が既定時間内に届かない事象がn回以上発生した場合」である。第2状態が確定していない場合、S100に処理が戻される。 Next, the payment application 20 determines whether the second state has been determined (S106). As described above, the condition for determining the second state is when "an event occurs n times or more in which a notification such as a response to a one-time code issuance request does not arrive within a predetermined time." If the second state has not been determined, the process returns to S100.

第2状態が確定すると、決済アプリ20は、有効なオフラインキー(シークレットキーおよび利用者識別トークン)が取得され、利用者端末装置10のメモリに保存されているか否かを判定する(S108)。有効なオフラインキーとは、例えば、取得時刻からの経過時間が上限時間(オフラインキーの発行周期と同程度の時間)を超えていないオフラインキーである。 When the second state is determined, the payment application 20 determines whether a valid offline key (secret key and user identification token) has been acquired and stored in the memory of the user terminal device 10 (S108). A valid offline key is, for example, an offline key for which the elapsed time from the acquisition time has not exceeded the upper limit time (a time approximately equal to the offline key issuance cycle).

有効なオフラインキーが取得されていない場合、決済アプリ20は、エラー画面を利用者端末装置10に表示させる(S110)。エラー画面には、インターネット接続が困難であること等を説明するテキスト等が含まれる。 If a valid offline key has not been obtained, the payment application 20 causes the user terminal device 10 to display an error screen (S110). The error screen includes text explaining that an Internet connection is difficult, etc.

有効なオフラインキーが取得されている場合、決済アプリ20は、カウンタ値kが閾値Th以上であるか否かを判定する(S112)。カウンタ値kは、例えば、決済アプリ20が利用者端末装置10にインストールされたときにゼロに設定され、S116で判定される承諾操作が行われるごとに1インクリメントされる値である。つまり、S112の判定処理は、承諾操作が所定回数(=閾値Th)以上行われたか否かを判定するものである。閾値Thは、例えば1~3程度の値である。 If a valid offline key has been obtained, the payment application 20 determines whether the counter value k is equal to or greater than the threshold value Th (S112). The counter value k is set to zero, for example, when the payment application 20 is installed in the user terminal device 10, and is incremented by one each time the approval operation determined in S116 is performed. In other words, the determination process in S112 determines whether the approval operation has been performed a predetermined number of times (= threshold value Th) or more. The threshold value Th is, for example, a value of about 1 to 3.

カウンタ値kが閾値Th未満である場合、決済アプリ20は、図11により例示されるハーフシートを利用者端末装置10に表示させる(S114)。図11は、ハーフシートIM3の一例を示す図である。ハーフシートIM3は、トップ画面IM1などのオンラインコード画像が表示される画面よりも小さいサイズで表示される。ハーフシートIM3は、「インターフェース画面」の一例である。ハーフシートIM3には、オフライン決済について説明するテキストテキストTX2が表示される。また、ハーフシートIM3には、オフラインモードでの決済に関する詳細説明画面への遷移を指示する第1操作部B1と、オフラインモードでの決済を承諾することを指示するための第2操作部B2とが設けられている。図12は、詳細説明画面IMeの一例を示す図である。詳細説明画面IMeには、オフライン決済について説明するテキストTXeが表示される。また、詳細説明画面IMeには、オフラインモードでの決済に関するヘルプページへの遷移を指示する第1操作部Be1と、ハーフシートIM3に戻ることを指示するための第2操作部Be2とが設けられている。ヘルプページは、決済サーバ100により随時更新されるものであり、決済アプリ20は、利用者端末装置10と決済サーバ100との通信が正常に行われている任意のタイミングでヘルプページをダウンロードし、利用者端末装置10のメモリに格納しておく(キャッシュする)。これによって、決済サーバ100との通信が困難な状況においても、オフラインモードでの決済に関する詳細情報を記載したヘルプページを利用者に提供することができる。なおヘルプページもハーフシートIM3と同様にトップ画面IM1などのオンラインコード画像が表示される画面よりも小さいサイズで表示されてよい。 If the counter value k is less than the threshold value Th, the payment application 20 causes the user terminal device 10 to display the half sheet exemplified in FIG. 11 (S114). FIG. 11 is a diagram showing an example of the half sheet IM3. The half sheet IM3 is displayed in a size smaller than the screen on which the online code image such as the top screen IM1 is displayed. The half sheet IM3 is an example of an "interface screen". The half sheet IM3 displays text text TX2 explaining offline payment. The half sheet IM3 also has a first operation unit B1 for instructing a transition to a detailed explanation screen regarding payment in offline mode, and a second operation unit B2 for instructing to accept payment in offline mode. FIG. 12 is a diagram showing an example of the detailed explanation screen IMe. The detailed explanation screen IMe displays text TXe explaining offline payment. The detailed explanation screen IMe also has a first operation unit Be1 for instructing a transition to a help page regarding payment in offline mode, and a second operation unit Be2 for instructing to return to the half sheet IM3. The help page is updated by the payment server 100 from time to time, and the payment application 20 downloads the help page at any time when communication between the user terminal device 10 and the payment server 100 is normal, and stores (caches) it in the memory of the user terminal device 10. This makes it possible to provide the user with a help page that describes detailed information about payments in offline mode, even in situations where communication with the payment server 100 is difficult. Note that the help page may also be displayed in a smaller size than the screen on which the online code image is displayed, such as the top screen IM1, in the same way as the half sheet IM3.

決済アプリ20は、ハーフシートIM3において第2操作部B2に対する操作、つまりオフラインモードでの決済を承諾する操作がなされたか否かを判定する(S116)。 The payment application 20 determines whether an operation has been performed on the second operation section B2 on the half sheet IM3, i.e., an operation to accept payment in offline mode (S116).

オフラインモードでの決済を承諾する操作がなされた場合、決済アプリ20は、オフラインモード画面を利用者端末装置10に表示させる(S118)。また、S112においてカウンタ値kが閾値Th以上であると判定された場合も、決済アプリ20は、オフラインモード画面を利用者端末装置10に表示させる(S118)。オフラインモード画面は、オフラインコード画像が表示された画面である。このように、オフラインモード画面への遷移条件は例えば、有効なオフラインキーが決済サーバ100から取得されていることを含み、基本的には承諾する操作がなされたことを含むが、承諾する操作が所定回数以上行われた場合は、承諾する操作がなされたことが除外される。 When an operation to accept payment in offline mode is performed, the payment application 20 causes the user terminal device 10 to display the offline mode screen (S118). Also, when it is determined in S112 that the counter value k is equal to or greater than the threshold value Th, the payment application 20 causes the user terminal device 10 to display the offline mode screen (S118). The offline mode screen is a screen on which an offline code image is displayed. In this way, the conditions for transitioning to the offline mode screen include, for example, a valid offline key being obtained from the payment server 100, and basically includes an operation to accept being performed, but if the operation to accept is performed a predetermined number of times or more, the operation to accept being performed is excluded.

係る処理を行うことで、利用者をスムーズにオフラインコード画像を用いたオフライン決済に誘導することができる。 By carrying out this process, users can be smoothly guided to offline payment using the offline code image.

以下、オフラインモード画面について説明する。オフラインモード画面には、第1決済方法でオフライン決済が可能な第1オフラインコード画像が表示される第1オフラインモード画面と、第2決済方法でオフライン決済が可能な第2オフラインコード画像が表示される第2オフラインモード画面とがあり、それらを利用者の操作によって互いに切り替え可能にしてもよい。つまり、電子決済システムが提供するオフラインモードでの決済において、第1決済方法と、第2決済方法とが選択的に実施可能であってよい。例えば、オンライン決済と同様に、第1決済方法はチャージ残高による電子決済を行う方法であり、第2決済方法は後払いによる電子決済を行う方法である。第1決済方法と第2決済方法のそれぞれは、これらとは異なる方法、例えばデビットカード機能を利用した決済方法、ポイント払い、クレジットカード払いなどの方法であってもよい。 The offline mode screen will be described below. The offline mode screen includes a first offline mode screen on which a first offline code image that allows offline payment using a first payment method is displayed, and a second offline mode screen on which a second offline code image that allows offline payment using a second payment method is displayed, and these screens may be switchable between each other by a user's operation. In other words, in payments in the offline mode provided by the electronic payment system, the first payment method and the second payment method may be selectively implemented. For example, similar to online payments, the first payment method is a method of making electronic payments using a charge balance, and the second payment method is a method of making electronic payments by deferred payment. Each of the first and second payment methods may be a different method, such as a payment method using a debit card function, points payment, or credit card payment.

この場合、決済アプリ20は、ワンタイムコードよりも低頻度で、第1オフラインコード画像を生成するための第1オフラインキーと、第2オフラインコード画像を生成するための第2オフラインキーとを取得しておく。第1オフラインキー、第2オフラインキーのそれぞれは、前述したオフラインキーと同じ情報を含み、更に、第1オフラインキーであるか、第2オフラインキーであるかを示す識別情報が付与されたものである。決済アプリ20は、第1オフラインキーを用いて第1オフラインコードを生成し、それに基づいて第1オフラインコード画像を生成して利用者端末装置10に表示させる。また、決済アプリ20は、第2オフラインキーを用いて第2オフラインコードを生成し、それに基づいて第2オフラインコード画像を生成して利用者端末装置10に表示させる。第1オフラインキーと第2オフラインキーに含まれる利用者識別トークンは共通でもよいし、異なってもよい(図5では共通になっている)。 In this case, the payment application 20 acquires a first offline key for generating a first offline code image and a second offline key for generating a second offline code image less frequently than the one-time code. Each of the first offline key and the second offline key includes the same information as the offline key described above, and further includes identification information indicating whether it is the first offline key or the second offline key. The payment application 20 generates a first offline code using the first offline key, generates a first offline code image based on the first offline code, and displays it on the user terminal device 10. The payment application 20 also generates a second offline code using the second offline key, generates a second offline code image based on the first offline code, and displays it on the user terminal device 10. The user identification tokens included in the first offline key and the second offline key may be the same or different (they are the same in FIG. 5).

図13は、第1オフラインコード画像が表示される第1オフラインモード画面IM4の一例を示す図であり、図14は、第2オフラインコード画像が表示される第2オフラインモード画面IM5の一例を示す図である。第1オフラインモード画面IM4には、第1コード画像CD#1が表示される。第1オフラインモード画面IM4には、現在の決済方法を表示すると共に、決済方法選択画面IM6への遷移を指示するための第3操作部B3が設定される。また、第1オフラインモード画面IM4には、リロードボタンB5が設けられる。リロードボタンB5が操作されると、決済サーバ100に対して通信要求が送信され、図9のフローチャートの処理が開始される。一方、第2オフラインモード画面IM5には、第2コード画像CD#2が表示される。第2オフラインモード画面IM5には、現在の決済方法を表示すると共に、決済方法選択画面IM6への遷移を指示するための第4操作部B4が設定される。また、第2オフラインモード画面IM5にも、リロードボタンB5が設けられる。 13 is a diagram showing an example of the first offline mode screen IM4 on which the first offline code image is displayed, and FIG. 14 is a diagram showing an example of the second offline mode screen IM5 on which the second offline code image is displayed. The first offline mode screen IM4 displays the first code image CD#1. The first offline mode screen IM4 displays the current payment method and has a third operation section B3 for instructing a transition to the payment method selection screen IM6. The first offline mode screen IM4 also has a reload button B5. When the reload button B5 is operated, a communication request is sent to the payment server 100, and the process of the flowchart in FIG. 9 is started. On the other hand, the second offline mode screen IM5 displays the second code image CD#2. The second offline mode screen IM5 displays the current payment method and has a fourth operation section B4 for instructing a transition to the payment method selection screen IM6. The second offline mode screen IM5 also has a reload button B5.

図15は、決済方法選択画面IM6の一例を示す図である。決済方法選択画面IM6には、決済方法(支払い方法)として選択可能なものを記載した第6操作部B6~第8操作部B8が設定される。第6操作部B6が操作されると第1オフラインモード画面IM4に遷移し、第7操作部B7が操作されると第2オフラインモード画面IM5に遷移する。第8操作部が選択された場合の処理については任意に定められてよい。 Figure 15 is a diagram showing an example of the payment method selection screen IM6. The payment method selection screen IM6 has a sixth operation section B6 to an eighth operation section B8 that list the payment methods (payment methods) that can be selected. When the sixth operation section B6 is operated, the screen transitions to the first offline mode screen IM4, and when the seventh operation section B7 is operated, the screen transitions to the second offline mode screen IM5. The processing when the eighth operation section is selected may be determined arbitrarily.

決済アプリ20は、オンライン決済における決済方法の設定を、オフライン決済の初期設定として引き継いでもよい。例えば、決済アプリ20は、オフライン決済を行うと決定された場合に最初に表示される画面を第1オフラインモード画面IM4とするのか、第2オフラインモード画面IM5とするのかを、オンライン決済時の設定に合わせて決定してもよい。この場合、決済アプリ20は、オンライン決済における決済方法の設定を利用者端末装置10のメモリに記憶させておく。 The payment app 20 may carry over the payment method settings for online payment as the initial settings for offline payment. For example, the payment app 20 may determine whether the screen to be displayed first when it is decided to make an offline payment is the first offline mode screen IM4 or the second offline mode screen IM5, in accordance with the settings for online payment. In this case, the payment app 20 stores the payment method settings for online payment in the memory of the user terminal device 10.

決済サーバ100は、オフライン決済において取得される決済情報に、第1オフラインコード画面から得られた情報すなわち第1オフラインキーが含まれる場合は第1決済方法で電子決済を進行させ、第2オフラインコード画面から得られた情報すなわち第2オフラインキーが含まれる場合は第2決済方法で電子決済を進行させる。 If the payment information acquired in the offline payment includes information obtained from the first offline code screen, i.e., the first offline key, the payment server 100 proceeds with the electronic payment using the first payment method, and if the payment information acquired from the second offline code screen, i.e., the second offline key, the payment server 100 proceeds with the electronic payment using the second payment method.

係る処理を行うことで、オフラインコード画像を用いたオフライン決済において利用者の選択の幅を広げ、利便性を向上させることができる。 By performing this process, it is possible to expand the range of choices available to users when making offline payments using offline code images, thereby improving convenience.

なお、上記においてオフライン処理として説明したものが、第1状態においても実行されてよい。つまり、利用者端末装置10と決済サーバ100との通信状態に関わらず常時、オフライン処理として説明した処理が実行されてもよい。 Note that the offline processing described above may also be executed in the first state. In other words, the processing described as offline processing may be executed at all times regardless of the communication state between the user terminal device 10 and the payment server 100.

以上、本発明を実施するための形態について実施形態を用いて説明したが、本発明はこうした実施形態に何等限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々の変形及び置換を加えることができる。 The above describes the form for carrying out the present invention using an embodiment, but the present invention is not limited to such an embodiment, and various modifications and substitutions can be made without departing from the spirit of the present invention.

10 利用者端末装置
20 決済アプリ
100 決済サーバ
120 決済コンテンツ提供部
130 決済処理部
140 情報管理部
10 User terminal device 20 Payment application 100 Payment server 120 Payment content providing unit 130 Payment processing unit 140 Information management unit

Claims (10)

利用者の端末装置において動作するアプリケーションプログラムと協働して電子決済サービスを前記利用者に提供する決済サーバであって、
店舗に設置された店舗端末装置と通信し、前記店舗端末装置が、前記端末装置が表示するコード画像から読み取った情報の少なくとも一部と決済金額とを含む決済情報を前記店舗端末装置から受信する通信部と、
前記通信部を介して、ワンタイムコードを前記アプリケーションプログラムに提供すると共に、前記利用者を識別可能な情報と共に前記ワンタイムコードを記憶部に記憶させる提供部と、
前記決済情報に基づいて電子決済を行う決済処理部であって、
前記決済情報に、前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれる場合は、前記ワンタイムコードを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、予め前記利用者に付与され前記記憶部に記憶されたオフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合は、前記オフラインキーを用いて前記利用者を特定して電子決済を進行させる決済処理部と、
を備え、
前記決済処理部は、前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、所定期間内における決済回数の上限を設定する、
決済サーバ。
A payment server that provides an electronic payment service to a user in cooperation with an application program running on a user's terminal device,
a communication unit that communicates with a store terminal device installed in a store and receives payment information from the store terminal device, the payment information including at least a part of information read from the code image displayed by the terminal device and a payment amount;
a providing unit that provides a one-time code to the application program via the communication unit and stores the one-time code together with information capable of identifying the user in a storage unit;
A payment processing unit that performs electronic payment based on the payment information,
if the payment information includes information based on the one-time code obtained by referring to the storage unit, identifying the user using the one-time code and proceeding with the electronic payment;
a payment processing unit which, when the payment information includes an offline key that has been assigned to the user in advance and stored in the storage unit, but does not include information based on the one-time code obtained by referring to the storage unit, identifies the user by using the offline key and proceeds with the electronic payment;
Equipped with
the payment processing unit, when the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, sets an upper limit on the number of payments that can be made within a predetermined period.
Payment server.
前記決済処理部は、前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、第1期間における決済回数の上限と、前記第1期間に比して長い第2期間における決済回数の上限とを設定する、
請求項1記載の決済サーバ。
when the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, the payment processing unit sets an upper limit on the number of payments in a first period and an upper limit on the number of payments in a second period that is longer than the first period.
The payment server according to claim 1.
前記決済処理部は、前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、更に、一回の電子決済における決済額の上限と、所定期間内における決済額の上限とを設定する、
請求項1記載の決済サーバ。
and when the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, the payment processing unit further sets an upper limit on the payment amount in one electronic payment and an upper limit on the payment amount within a predetermined period.
The payment server according to claim 1.
利用者の端末装置において動作するアプリケーションプログラムと協働して電子決済サービスを前記利用者に提供する決済サーバであって、
店舗に設置された店舗端末装置と通信し、前記店舗端末装置が、前記端末装置が表示するコード画像から読み取った情報の少なくとも一部と決済金額とを含む決済情報を前記店舗端末装置から受信する通信部と、
前記通信部を介して、ワンタイムコードを前記アプリケーションプログラムに提供すると共に、前記利用者を識別可能な情報と共に前記ワンタイムコードを記憶部に記憶させる提供部と、
前記決済情報に基づいて電子決済を行う決済処理部であって、
前記決済情報に、前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれる場合は、前記ワンタイムコードを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、予め前記利用者に付与され前記記憶部に記憶されたオフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合は、前記オフラインキーを用いて前記利用者を特定して電子決済を進行させる決済処理部と、
を備え、
前記決済処理部は、前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、一回の電子決済における決済額の上限と、所定期間内における決済額の上限とを設定する、
決済サーバ。
A payment server that provides an electronic payment service to a user in cooperation with an application program running on a user's terminal device,
a communication unit that communicates with a store terminal device installed in a store and receives payment information from the store terminal device, the payment information including at least a part of information read from the code image displayed by the terminal device and a payment amount;
a providing unit that provides a one-time code to the application program via the communication unit and stores the one-time code together with information capable of identifying the user in a storage unit;
A payment processing unit that performs electronic payment based on the payment information,
if the payment information includes information based on the one-time code obtained by referring to the storage unit, identifying the user using the one-time code and proceeding with the electronic payment;
a payment processing unit which, when the payment information includes an offline key that has been assigned to the user in advance and stored in the storage unit, but does not include information based on the one-time code obtained by referring to the storage unit, identifies the user by using the offline key and proceeds with the electronic payment;
Equipped with
the payment processing unit, when the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, sets an upper limit on the payment amount for one electronic payment and an upper limit on the payment amount within a predetermined period.
Payment server.
前記決済処理部は、前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、一回の電子決済における決済額の上限と、第1期間内における決済額の上限と、前記第1期間よりも長い第2期間内における決済額の上限とを設定する、
請求項4記載の決済サーバ。
when the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, the payment processing unit sets an upper limit on the payment amount in one electronic payment, an upper limit on the payment amount within a first period, and an upper limit on the payment amount within a second period longer than the first period.
The payment server according to claim 4.
前記決済処理部は、前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合に設定する上限の値を、前記利用者の前記アプリケーションプログラムに対する設定操作に基づいて決定する、
請求項1から5のうちいずれか1項記載の決済サーバ。
the payment processing unit determines, based on a setting operation of the user for the application program, an upper limit value to be set when the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit.
The payment server according to any one of claims 1 to 5.
利用者の端末装置において動作するアプリケーションプログラムと協働して電子決済サービスを前記利用者に提供する決済サーバが、
店舗に設置された店舗端末装置と通信し、前記店舗端末装置が、前記端末装置が表示するコード画像から読み取った情報の少なくとも一部と決済金額とを含む決済情報を前記店舗端末装置から受信し、
通信によって、ワンタイムコードを前記アプリケーションプログラムに提供すると共に、前記利用者を識別可能な情報と共に前記ワンタイムコードを記憶部に記憶させ、
前記決済情報に基づいて電子決済を行う際に、
前記決済情報に、前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれる場合は、前記ワンタイムコードを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、予め前記利用者に付与され前記記憶部に記憶されたオフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合は、前記オフラインキーを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、所定期間内における決済回数の上限を設定する、
決済制御方法。
A payment server that provides an electronic payment service to a user in cooperation with an application program running on a user's terminal device,
communicating with a store terminal device installed in a store, and receiving payment information from the store terminal device, the payment information including at least a part of the information read from the code image displayed by the terminal device and a payment amount;
providing a one-time code to the application program through communication, and storing the one-time code together with information capable of identifying the user in a storage unit;
When making an electronic payment based on the payment information,
if the payment information includes information based on the one-time code obtained by referring to the storage unit, identifying the user using the one-time code and proceeding with the electronic payment;
if the payment information includes an offline key that has been assigned to the user in advance and stored in the storage unit, and does not include information based on the one-time code obtained by referring to the storage unit, identifying the user using the offline key and proceeding with the electronic payment;
if the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, setting an upper limit on the number of payments that can be made within a predetermined period.
Payment control methods.
利用者の端末装置において動作するアプリケーションプログラムと協働して電子決済サービスを前記利用者に提供する決済サーバが、
店舗に設置された店舗端末装置と通信し、前記店舗端末装置が、前記端末装置が表示するコード画像から読み取った情報の少なくとも一部と決済金額とを含む決済情報を前記店舗端末装置から受信し、
通信によって、ワンタイムコードを前記アプリケーションプログラムに提供すると共に、前記利用者を識別可能な情報と共に前記ワンタイムコードを記憶部に記憶させ、
前記決済情報に基づいて電子決済を行う際に、
前記決済情報に、前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれる場合は、前記ワンタイムコードを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、予め前記利用者に付与され前記記憶部に記憶されたオフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合は、前記オフラインキーを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、一回の電子決済における決済額の上限と、所定期間内における決済額の上限とを設定する、
決済制御方法。
A payment server that provides an electronic payment service to a user in cooperation with an application program running on a user's terminal device,
communicating with a store terminal device installed in a store, and receiving payment information from the store terminal device, the payment information including at least a part of the information read from the code image displayed by the terminal device and a payment amount;
providing a one-time code to the application program through communication, and storing the one-time code together with information capable of identifying the user in a storage unit;
When making an electronic payment based on the payment information,
if the payment information includes information based on the one-time code obtained by referring to the storage unit, identifying the user using the one-time code and proceeding with the electronic payment;
if the payment information includes an offline key that has been assigned to the user in advance and stored in the storage unit, and does not include information based on the one-time code obtained by referring to the storage unit, identifying the user using the offline key and proceeding with the electronic payment;
if the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, setting an upper limit on the payment amount for one electronic payment and an upper limit on the payment amount within a predetermined period.
Payment control methods.
利用者の端末装置において動作するアプリケーションプログラムと協働して電子決済サービスを前記利用者に提供する決済サーバに、
店舗に設置された店舗端末装置と通信し、前記店舗端末装置が、前記端末装置が表示するコード画像から読み取った情報の少なくとも一部と決済金額とを含む決済情報を前記店舗端末装置から受信し、
通信によって、ワンタイムコードを前記アプリケーションプログラムに提供すると共に、前記利用者を識別可能な情報と共に前記ワンタイムコードを記憶部に記憶させ、
前記決済情報に基づいて電子決済を行う際に、
前記決済情報に、前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれる場合は、前記ワンタイムコードを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、予め前記利用者に付与され前記記憶部に記憶されたオフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合は、前記オフラインキーを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、所定期間内における決済回数の上限を設定する、
処理を行わせるためのプログラム。
A payment server that provides an electronic payment service to a user in cooperation with an application program running on the user's terminal device,
communicating with a store terminal device installed in a store, and receiving payment information from the store terminal device, the payment information including at least a part of the information read from the code image displayed by the terminal device and a payment amount;
providing a one-time code to the application program through communication, and storing the one-time code together with information capable of identifying the user in a storage unit;
When making an electronic payment based on the payment information,
if the payment information includes information based on the one-time code obtained by referring to the storage unit, identifying the user using the one-time code and proceeding with the electronic payment;
if the payment information includes an offline key that has been assigned to the user in advance and stored in the storage unit, and does not include information based on the one-time code obtained by referring to the storage unit, identifying the user using the offline key and proceeding with the electronic payment;
if the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, setting an upper limit on the number of payments that can be made within a predetermined period.
A program to carry out processing.
利用者の端末装置において動作するアプリケーションプログラムと協働して電子決済サービスを前記利用者に提供する決済サーバに、
店舗に設置された店舗端末装置と通信し、前記店舗端末装置が、前記端末装置が表示するコード画像から読み取った情報の少なくとも一部と決済金額とを含む決済情報を前記店舗端末装置から受信し、
通信によって、ワンタイムコードを前記アプリケーションプログラムに提供すると共に、前記利用者を識別可能な情報と共に前記ワンタイムコードを記憶部に記憶させ、
前記決済情報に基づいて電子決済を行う際に、
前記決済情報に、前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれる場合は、前記ワンタイムコードを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、予め前記利用者に付与され前記記憶部に記憶されたオフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合は、前記オフラインキーを用いて前記利用者を特定して電子決済を進行させ、
前記決済情報に、前記オフラインキーが含まれ、且つ前記記憶部を参照して得られる前記ワンタイムコードに基づく情報が含まれない場合、一回の電子決済における決済額の上限と、所定期間内における決済額の上限とを設定する、
処理を行わせるためのプログラム。
A payment server that provides an electronic payment service to a user in cooperation with an application program running on the user's terminal device,
communicating with a store terminal device installed in a store, and receiving payment information from the store terminal device, the payment information including at least a part of the information read from the code image displayed by the terminal device and a payment amount;
providing a one-time code to the application program through communication, and storing the one-time code together with information capable of identifying the user in a storage unit;
When making an electronic payment based on the payment information,
if the payment information includes information based on the one-time code obtained by referring to the storage unit, identifying the user using the one-time code and proceeding with the electronic payment;
if the payment information includes an offline key that has been assigned to the user in advance and stored in the storage unit, and does not include information based on the one-time code obtained by referring to the storage unit, identifying the user using the offline key and proceeding with the electronic payment;
if the payment information includes the offline key and does not include information based on the one-time code obtained by referring to the storage unit, setting an upper limit on the payment amount for one electronic payment and an upper limit on the payment amount within a predetermined period.
A program to carry out processing.
JP2023144861A 2023-09-06 2023-09-06 Payment server, payment control method, and program Active JP7486651B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023144861A JP7486651B1 (en) 2023-09-06 2023-09-06 Payment server, payment control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023144861A JP7486651B1 (en) 2023-09-06 2023-09-06 Payment server, payment control method, and program

Publications (1)

Publication Number Publication Date
JP7486651B1 true JP7486651B1 (en) 2024-05-17

Family

ID=91067381

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023144861A Active JP7486651B1 (en) 2023-09-06 2023-09-06 Payment server, payment control method, and program

Country Status (1)

Country Link
JP (1) JP7486651B1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020052633A (en) 2018-09-26 2020-04-02 株式会社メルカリ Program, information processing terminal, and information processing method
JP2021021991A (en) 2019-07-24 2021-02-18 LINE Pay株式会社 Program, information processing method, and terminal
JP2021022385A (en) 2019-07-24 2021-02-18 LINE Pay株式会社 Information processing method, program, and terminal
JP2022158871A (en) 2021-08-16 2022-10-17 PayPay株式会社 Information processing device, information processing method and information processing program
JP7237224B1 (en) 2022-06-14 2023-03-10 PayPay株式会社 Application program, information processing device, information processing method, and program
US20230196328A1 (en) 2013-02-14 2023-06-22 Advanced New Technologies Co., Ltd. Data interaction method and device, and offline credit payment method and device
JP2023117834A (en) 2022-02-14 2023-08-24 株式会社ジェーシービー Information processing device, program, and information processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230196328A1 (en) 2013-02-14 2023-06-22 Advanced New Technologies Co., Ltd. Data interaction method and device, and offline credit payment method and device
JP2020052633A (en) 2018-09-26 2020-04-02 株式会社メルカリ Program, information processing terminal, and information processing method
JP2021021991A (en) 2019-07-24 2021-02-18 LINE Pay株式会社 Program, information processing method, and terminal
JP2021022385A (en) 2019-07-24 2021-02-18 LINE Pay株式会社 Information processing method, program, and terminal
JP2022158871A (en) 2021-08-16 2022-10-17 PayPay株式会社 Information processing device, information processing method and information processing program
JP2023117834A (en) 2022-02-14 2023-08-24 株式会社ジェーシービー Information processing device, program, and information processing method
JP7237224B1 (en) 2022-06-14 2023-03-10 PayPay株式会社 Application program, information processing device, information processing method, and program

Similar Documents

Publication Publication Date Title
CN107408252B (en) System and method for mobile checkout
JP7315772B1 (en) Application program, information processing device, information processing method, and program
JP6990796B2 (en) Payment processing method
JP7283084B2 (en) Processing device, processing method and program
JP7134325B1 (en) Electronic payment system, payment management device, card, electronic payment method, and program
JP6990797B2 (en) Payment processing method
JP2009140199A (en) Point management apparatus, point management method and point management program
JP2021196844A (en) Settlement processing method and settlement processing apparatus
JP2009252080A (en) Credit payment management device, credit payment management system, and method, and program
JP7486651B1 (en) Payment server, payment control method, and program
JP7391263B1 (en) Payment server, payment control method, and program
JP7445055B1 (en) Application program, payment control method, payment server, program, and payment system
JP7446508B1 (en) Application program, payment control method, payment server, program, and payment system
JP7425244B1 (en) Application programs, payment control methods, and payment systems
JP2010033546A (en) Prepaid type electronic money settlement system
JP6840814B1 (en) Benefit granting method and privilege granting device
JP2021077423A (en) Privilege offering method and privilege offering apparatus
JP7395780B1 (en) Information processing device, information processing method, and program
JP7469531B1 (en) Card payment management device, payment management system, card payment management method, and program
JP7448713B1 (en) Payment management device, payment management method, application program, and payment management system
JP7425247B1 (en) Payment management device, payment system, payment management method, and program
JP7456037B1 (en) Card information management device, card information management method, and program
JP7209888B1 (en) program and method
JP7467747B1 (en) Information processing device, information processing method, and program
JP7411848B1 (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230906

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20230906

A80 Written request to apply exceptions to lack of novelty of invention

Free format text: JAPANESE INTERMEDIATE CODE: A80

Effective date: 20231003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231219

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240507