TWI782266B - Method, device, storage medium and terminal device for inputting payment amount by scanning code - Google Patents

Method, device, storage medium and terminal device for inputting payment amount by scanning code Download PDF

Info

Publication number
TWI782266B
TWI782266B TW109111219A TW109111219A TWI782266B TW I782266 B TWI782266 B TW I782266B TW 109111219 A TW109111219 A TW 109111219A TW 109111219 A TW109111219 A TW 109111219A TW I782266 B TWI782266 B TW I782266B
Authority
TW
Taiwan
Prior art keywords
payment
code
scanning
transaction
payment amount
Prior art date
Application number
TW109111219A
Other languages
Chinese (zh)
Other versions
TW202138989A (en
Inventor
龔傑奇
Original Assignee
香港商黑傑克科技有限公司
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 香港商黑傑克科技有限公司 filed Critical 香港商黑傑克科技有限公司
Priority to TW109111219A priority Critical patent/TWI782266B/en
Publication of TW202138989A publication Critical patent/TW202138989A/en
Application granted granted Critical
Publication of TWI782266B publication Critical patent/TWI782266B/en

Links

Images

Abstract

本發明實施例公開了一種掃碼支付金額輸入的方法、裝置、存儲介質及終端設備,所述方法包括:當監聽到啟動掃描支付事件時,通過二維碼,獲得當前掃碼交易的支付商家;獲取移動終端當前所在的定位位置,並以此為當前掃碼交易的交易位置;根據當前掃碼交易的掃碼時間,獲取與掃碼時間處於非同一天但同一時間段內的歷史掃碼交易的歷史支付資訊;其中,歷史支付資訊包括歷史掃碼交易的支付金額、支付商家和交易位置; 根據當前掃碼交易的支付商家和交易位置以及歷史支付資訊,計算當前掃碼交易的支付金額;根據當前掃碼交易的支付商家和支付金額,生成支付顯示介面並進行顯示。採用本發明實施例,能夠預測支付金額,無需支付方輸入支付金額。The embodiment of the present invention discloses a method, device, storage medium and terminal equipment for inputting the payment amount by scanning the code. The method includes: when the start scanning payment event is detected, obtain the payment merchant of the current scanning code transaction through the two-dimensional code ; Obtain the current positioning location of the mobile terminal, and use it as the transaction location of the current code scanning transaction; according to the scanning time of the current scanning code transaction, obtain the historical scanning code that is not on the same day as the scanning code time but within the same time period The historical payment information of the transaction; among them, the historical payment information includes the payment amount, payment merchant and transaction location of the historical scanning code transaction; calculate the payment amount of the current scanning code transaction based on the payment merchant, transaction location and historical payment information of the current scanning code transaction ; According to the payment merchant and payment amount of the current scan code transaction, generate and display the payment display interface. By adopting the embodiment of the present invention, the payment amount can be predicted without the payer needing to input the payment amount.

Description

掃碼支付金額輸入的方法、裝置、存儲介質和終端設備Method, device, storage medium and terminal equipment for inputting payment amount by scanning code

本發明涉及電腦技術領域,尤其涉及一種掃碼支付金額輸入的方法、裝置、存儲介質和終端設備。The present invention relates to the field of computer technology, in particular to a method, device, storage medium and terminal equipment for inputting payment amount by scanning a code.

隨著移動支付方式的不斷演化,支付管道的逐漸拓寬,新型支付方式的不斷推廣,掃碼支付應運而生。掃碼支付的交易,是指在移動設備的用戶端產生一個支付錢包帳號安全索引資訊,比如支付寶、微信的支付索引資訊,這個支付索引資訊可以是一維碼,也可以是二維碼,而後通過收銀設備的掃描槍來進行掃碼,將交易帳戶索引資訊、商家和商品資訊、交易金額等資訊送到支付機構進行交易授權處理的過程。或者是指商家提供一個交易帳戶索引資訊,即可以是一維碼也可以是二維碼,而支付方可以通過移動設備的用戶端的掃描功能來進行掃碼,進而用戶端介面顯示相應的商家資訊和交易金額輸入框,支付方通過介面的鍵盤手動輸入相應的金額數值於交易金額輸入框,支付方最後確認授權確認交易授權處理。With the continuous evolution of mobile payment methods, the gradual expansion of payment channels, and the continuous promotion of new payment methods, scanning code payment came into being. The transaction of scan code payment refers to generating a payment wallet account security index information on the client side of the mobile device, such as the payment index information of Alipay and WeChat. This payment index information can be a one-dimensional code or a two-dimensional code, and then Scan the code through the scanning gun of the cash register device, and send the transaction account index information, merchant and product information, transaction amount and other information to the payment institution for transaction authorization processing. Or it means that the merchant provides a transaction account index information, which can be a one-dimensional code or a two-dimensional code, and the payer can scan the code through the scanning function of the client terminal of the mobile device, and then the corresponding merchant information will be displayed on the client terminal interface and the transaction amount input box, the payer manually enters the corresponding amount value into the transaction amount input box through the keyboard of the interface, and the payer finally confirms the authorization to confirm the transaction authorization process.

對於後者的掃碼支付方式,需要支付方先掃碼,並跟商家確認好支付金額後再手動輸入金額數值於交易金額輸入框,最後再授權確認支付,如此花費的時長也是有一段時間的,會使得後續人群排隊付款等待的時長過長,或者花費支付方過長時間,佔用支付方時間,例如 搭計程車到目的地後付款時間過長,一方面會引起計程車佔道,另一方面耽擱支付方的時間。For the latter method of payment by scanning the code, the payer needs to scan the code first, confirm the payment amount with the merchant, then manually enter the amount value in the transaction amount input box, and finally authorize and confirm the payment. This takes a while , it will make the follow-up crowd wait in line for payment for too long, or it will take too long for the payer, taking up the payer's time, for example, the payment time after taking a taxi to the destination is too long, on the one hand, it will cause the taxi to occupy the road, on the other hand Delay the payer's time.

本發明實施例提供掃碼支付金額輸入的方法、裝置、存儲介質和終端設備方,預測支付金額,無需支付方輸入支付金額,減少支付排隊時間。Embodiments of the present invention provide a method, device, storage medium, and terminal device for inputting payment amount by scanning a code, predicting the payment amount, eliminating the need for the payer to input the payment amount, and reducing payment queuing time.

作為本發明實施例的第一個方面,本發明實施例提供一種掃碼支付金額輸入的方法,包括: 監聽移動終端啟動掃描支付事件; 當監聽到啟動所述掃描支付事件時,通過移動終端的攝像裝置掃描到的二維碼,獲得當前掃碼交易的支付商家; 獲取所述移動終端當前所在的定位位置,並以所述定位位置為當前掃碼交易的交易位置; 根據當前掃碼交易的掃碼時間,獲取與所述掃碼時間處於非同一天但同一時間段內的歷史掃碼交易的歷史支付資訊;其中,所述歷史支付資訊包括所述歷史掃碼交易的支付金額、支付商家和交易位置; 根據當前掃碼交易的支付商家和交易位置以及所述歷史支付資訊,計算當前掃碼交易的支付金額; 根據當前掃碼交易的支付商家和支付金額,生成支付顯示介面並進行顯示。As the first aspect of the embodiment of the present invention, the embodiment of the present invention provides a method for inputting payment amount by scanning a code, including: Monitor mobile terminal start scan payment event; When listening to start the scan payment event, obtain the payment merchant of the current scan code transaction through the two-dimensional code scanned by the camera device of the mobile terminal; Acquiring the current positioning location of the mobile terminal, and using the positioning location as the transaction location of the current scanning code transaction; According to the scanning time of the current code scanning transaction, obtain the historical payment information of the historical code scanning transaction that is not on the same day as the scanning code time but within the same time period; wherein, the historical payment information includes the historical scanning code transaction payment amount, payment merchant and transaction location; Calculate the payment amount of the current code scanning transaction according to the payment merchant and transaction location of the current code scanning transaction and the historical payment information; According to the payment merchant and payment amount of the current scan code transaction, a payment display interface is generated and displayed.

優選地,所述根據當前掃碼交易的支付商家和交易位置以及所述歷史支付資訊,計算當前掃碼交易的支付金額,包括: 從所述歷史支付資訊中,提取與當前掃碼交易的支付商家和交易位置均相同的歷史支付資訊; 根據提取的歷史支付資訊,統計同一支付金額的交易次數; 當掃碼支付事件的發生數量大於1時,根據每一個掃碼支付事件的支付金額,計算當前掃碼交易的支付金額;所述掃碼支付事件為同一支付金額的交易次數大於次數閾值所發生的事件; 當所述掃碼支付事件的發生數量等於1時,根據所述掃碼支付事件的支付金額,計算當前掃碼交易的支付金額; 當所述掃碼支付事件的發生數量小於1時,從提取的歷史支付資訊中再次提取與當前掃碼支付的掃碼時間位於同一星期的週期位置且距離當前最近的時間的掃碼支付資訊,並根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額。Preferably, the calculation of the payment amount of the current code-scanning transaction based on the payment merchant and transaction location of the current code-scanning transaction and the historical payment information includes: From the historical payment information, extract the historical payment information that is the same as the payment merchant and transaction location of the current code scanning transaction; According to the extracted historical payment information, count the number of transactions with the same payment amount; When the number of scan code payment events is greater than 1, calculate the payment amount of the current code scan transaction according to the payment amount of each scan code payment event; the scan code payment event occurs when the number of transactions with the same payment amount is greater than the threshold value event; When the occurrence number of the scanning code payment event is equal to 1, calculate the payment amount of the current code scanning transaction according to the payment amount of the scanning code payment event; When the number of occurrences of the code scanning payment event is less than 1, the code scanning payment information that is located in the cycle position of the same week as the code scanning time of the current code scanning payment and is closest to the current time is extracted again from the extracted historical payment information, And according to the payment amount of the code scanning payment information extracted again, the payment amount of the current scanning code transaction is calculated.

優選地,所述根據每一個掃碼支付事件的支付金額,計算當前掃碼交易的支付金額,包括: 判斷是否存在任意兩個掃碼支付事件的支付金額之間是否大於預設閾值; 若是,選取交易次數最高的掃碼支付事件,並以所述掃碼支付事件的支付金額作為當前掃碼交易的支付金額; 若否,根據所有掃碼支付事件的支付金額,從中選取處於中位數的支付金額,作為當前掃碼交易的支付金額。Preferably, the calculation of the payment amount of the current code scanning transaction according to the payment amount of each code scanning payment event includes: Determine whether the payment amount between any two scan code payment events is greater than the preset threshold; If so, select the scan code payment event with the highest number of transactions, and use the payment amount of the scan code payment event as the payment amount of the current scan code transaction; If not, according to the payment amounts of all scan code payment events, select the payment amount in the median as the payment amount of the current scan code transaction.

優選地,所述根據所述掃碼支付事件的支付金額,計算當前掃碼交易的支付金額,包括: 以所述掃碼支付事件的支付金額,作為當前掃碼交易的支付金額。Preferably, the calculation of the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment event includes: The payment amount of the code scanning payment event is used as the payment amount of the current code scanning transaction.

優選地,所述根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額,包括: 判斷再次提取的掃碼支付資訊是否為空集資訊; 若是,確定當前掃碼交易的支付金額為零; 若否,以所述再次提取的掃碼支付資訊的支付金額,作為當前掃碼交易的支付金額。Preferably, the calculation of the payment amount of the current code scanning transaction based on the payment amount of the code scanning payment information extracted again includes: Judging whether the scanned code payment information extracted again is empty set information; If yes, determine that the payment amount of the current scan code transaction is zero; If not, use the payment amount of the re-extracted code-scanning payment information as the payment amount of the current code-scanning transaction.

優選地,所述根據當前掃碼交易的支付商家和支付金額,生成支付顯示介面並進行顯示,包括: 判斷當前掃碼交易的支付金額是否為零; 若是,生成所述支付顯示介面時,控制所述支付顯示介面的支付金額輸入框為空; 若否,生成所述支付顯示介面時,控制所述支付顯示介面的支付金額輸入框的數值為當前掃碼交易的支付金額。Preferably, the generating and displaying the payment display interface according to the payment merchant and the payment amount of the current scanning code transaction includes: Determine whether the payment amount of the current scan code transaction is zero; If so, when generating the payment display interface, control the payment amount input box of the payment display interface to be empty; If not, when the payment display interface is generated, the value of the payment amount input box of the payment display interface is controlled to be the payment amount of the current code scanning transaction.

相應地,本發明實施例還提供一種掃碼支付金額輸入的裝置,包括: 事件監聽模組,用於監聽移動終端啟動掃描支付事件; 支付商家獲取模組,用於當監聽到啟動所述掃描支付事件時,通過移動終端的攝像裝置掃描到的二維碼,獲得當前掃碼交易的支付商家; 交易位置獲取模組,用於獲取所述移動終端當前所在的定位位置,並以所述定位位置為當前掃碼交易的交易位置; 歷史資訊獲取模組,用於根據當前掃碼交易的掃碼時間,獲取與所述掃碼時間處於非同一天但同一時間段內的歷史掃碼交易的歷史支付資訊;其中,所述歷史支付資訊包括所述歷史掃碼交易的支付金額、支付商家和交易位置; 支付金額計算模組,用於根據當前掃碼交易的支付商家和交易位置以及所述歷史支付資訊,計算當前掃碼交易的支付金額; 顯示介面生成模組,用於根據當前掃碼交易的支付商家和支付金額,生成支付顯示介面並進行顯示。Correspondingly, the embodiment of the present invention also provides a device for inputting payment amount by scanning a code, including: The event monitoring module is used to monitor the mobile terminal to start scanning and payment events; The payment merchant acquisition module is used to obtain the payment merchant of the current code scanning transaction from the two-dimensional code scanned by the camera device of the mobile terminal when the scanning and payment event is monitored and started; The transaction position acquisition module is used to obtain the current positioning position of the mobile terminal, and use the positioning position as the transaction position of the current scanning code transaction; The historical information acquisition module is used to obtain the historical payment information of the historical code scanning transactions that are not on the same day as the code scanning time but within the same time period according to the code scanning time of the current code scanning transaction; wherein, the historical payment The information includes the payment amount, payment merchant and transaction location of the historical scanning code transaction; The payment amount calculation module is used to calculate the payment amount of the current code scanning transaction according to the payment merchant and transaction location of the current code scanning transaction and the historical payment information; The display interface generation module is used to generate and display the payment display interface according to the payment merchant and payment amount of the current scan code transaction.

優選地,所述支付金額計算模組,包括: 資訊再次提取單元,用於從所述歷史支付資訊中,提取與當前掃碼交易的支付商家和交易位置均相同的歷史支付資訊; 交易次數統計單元,用於根據提取的歷史支付資訊,統計同一支付金額的交易次數; 第一計算單元,用於當掃碼支付事件的發生數量大於1時,根據每一個掃碼支付事件的支付金額,計算當前掃碼交易的支付金額;所述掃碼支付事件為同一支付金額的交易次數大於次數閾值所發生的事件; 第二計算單元,用於當所述掃碼支付事件的發生數量等於1時,根據所述掃碼支付事件的支付金額,計算當前掃碼交易的支付金額; 第三計算單元,用於當所述掃碼支付事件的發生數量小於1時,從提取的歷史支付資訊中再次提取與當前掃碼支付的掃碼時間位於同一星期的週期位置且距離當前最近的時間的掃碼支付資訊,並根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額。Preferably, the payment amount calculation module includes: The information re-extraction unit is used to extract the same historical payment information as the payment merchant and transaction location of the current scanning transaction from the historical payment information; The number of transactions statistics unit is used to count the number of transactions of the same payment amount according to the extracted historical payment information; The first calculation unit is used to calculate the payment amount of the current code scanning transaction according to the payment amount of each code scanning payment event when the number of code scanning payment events is greater than 1; the code scanning payment event is the payment amount of the same payment amount An event that occurs when the number of transactions is greater than the number threshold; The second calculation unit is used to calculate the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment event when the occurrence number of the code scanning payment event is equal to 1; The third calculation unit is used to re-extract the code scanning time of the current code scanning payment from the extracted historical payment information when the number of occurrences of the code scanning payment event is less than 1. The code scanning payment information at the time, and the payment amount of the current scanning code transaction is calculated according to the payment amount of the scanning code payment information extracted again.

另外,本發明實施例提供一種電腦可讀存儲介質,所述電腦可讀存儲介質包括存儲的電腦程式,其中,在所述電腦程式運行時控制所述電腦可讀存儲介質所在設備執行如前任一所述的掃碼支付金額輸入的方法。In addition, an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium includes a stored computer program, wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the preceding one. The method for inputting the payment amount by scanning the code.

以及,本發明實施例提供一種終端設備,包括處理器、存儲器以及存儲在所述存儲器且被配置由所述處理器執行的電腦程式,所述處理器執行所述電腦程式時實現如前任一項所述的掃碼支付金額輸入的方法。And, an embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the preceding item is implemented. The method for inputting the payment amount by scanning the code.

本發明實施例採用上述技術方案,當掃碼到當前掃碼交易的支付商家時,獲取當前掃碼交易的交易位置,並根據當前掃碼交易的掃碼時間,獲取相應的歷史支付資訊,進而可以將當前掃碼交易的支付商家和交易位置與歷史支付資訊進行結合,計算出當前掃碼交易的支付金額,最後根據當前掃碼交的支付商家和支付金額,生成支付顯示介面並顯示於移動終端的介面中,準確地根據支付習慣來預測當前掃碼交易的支付金額,無需支付方輸入支付金額,減少支付排隊時間。The embodiment of the present invention adopts the above-mentioned technical solution. When scanning the code to the payment merchant of the current scanning code transaction, the transaction position of the current scanning code transaction is obtained, and the corresponding historical payment information is obtained according to the scanning code time of the current scanning code transaction, and then The payment merchant and transaction location of the current code scanning transaction can be combined with the historical payment information to calculate the payment amount of the current scanning code transaction, and finally according to the current payment merchant and payment amount submitted by scanning the code, a payment display interface is generated and displayed on the mobile phone In the interface of the terminal, the payment amount of the current scan code transaction is accurately predicted according to the payment habit, without the need for the payer to input the payment amount, reducing the payment queuing time.

上述概述僅僅是為了說明書的目的,並不意圖以任何方式進行限制。除上述描述的示意性的方面、實施方式和特徵之外,通過參考附圖和以下的詳細描述,本發明進一步的方面、實施方式和特徵將會是容易明白的。The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the drawings and the following detailed description.

在附圖中,除非另外規定,否則貫穿多個附圖相同的附圖標記表示相同或相似的部件或元素。這些附圖不一定是按照比例繪製的。應該理解,這些附圖僅描繪了根據本發明公開的一些實施方式,而不應將其視為是對本發明範圍的限制。In the drawings, unless otherwise specified, the same reference numerals designate the same or similar parts or elements throughout the several drawings. The drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in accordance with the present invention and should not be taken as limiting the scope of the present invention.

在下文中,僅簡單地描述了某些示例性實施例。正如本領域技術人員可認識到的那樣,在不脫離本發明的精神或範圍的情況下,可通過各種不同方式修改所描述的實施例。因此,附圖和描述被認為本質上是示例性的而非限制性的。In the following, only some exemplary embodiments are briefly described. As those skilled in the art would realize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and descriptions are to be regarded as illustrative in nature and not restrictive.

在本發明的描述中,需要理解的是,術語“中心”、“縱向”、“橫向”、“長度”、“寬度”、“厚度”、“上”、“下”、“前”、“後”、“左”、“右”、“豎直”、“水準”、“頂”、“底”、“內”、“外”、“順時針”、“逆時針”、“軸向”、“徑向”、“周向”等指示的方位或位置關係為基於附圖所示的方位或位置關係,僅是為了便於描述本發明和簡化描述,而不是指示或暗示所指的裝置或元件必須具有特定的方位、以特定的方位構造和操作,因此不能理解為對本發明的限制。In describing the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", " Back", "Left", "Right", "Vertical", "Horizontal", "Top", "Bottom", "Inner", "Outer", "Clockwise", "Counterclockwise", "Axial" , "radial", "circumferential" and other indicated orientations or positional relationships are based on the orientations or positional relationships shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying the referred device or Elements must have certain orientations, be constructed and operate in certain orientations, and therefore should not be construed as limitations on the invention.

此外,術語“第一”、“第二”僅用於描述目的,而不能理解為指示或暗示相對重要性或者隱含指明所指示的技術特徵的數量。由此,限定有“第一”、“第二”的特徵可以明示或者隱含地包括一個或者更多個該特徵。在本發明的描述中,“多個”的含義是兩個或兩個以上,除非另有明確具體的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

參見圖1,本發明實施例提供一種掃碼支付金額輸入的方法,由移動終端執行,移動終端包括但不限於手機、平板等,該方法包括步驟S10至步驟S60,具體如下:Referring to Fig. 1, an embodiment of the present invention provides a method for inputting payment amount by scanning a code, which is executed by a mobile terminal. The mobile terminal includes but is not limited to a mobile phone, a tablet, etc. The method includes steps S10 to S60, as follows:

S10,監聽移動終端啟動掃描支付事件。S10, listening to the event that the mobile terminal starts scanning and payment.

在本發明實施例,掃描支付事件是指支付方,即用戶,啟動支付寶、微信、網上銀行等二維碼或一維碼掃碼支付的功能,例如,掃一掃。用戶點擊掃一掃的功能,即啟動掃描支付事件。In the embodiment of the present invention, the scanning payment event means that the payer, that is, the user, activates the payment function of Alipay, WeChat, online banking, etc. by scanning QR codes or one-dimensional codes, for example, scanning. When the user clicks the scan function, the scan payment event is started.

S20,當監聽到啟動所述掃描支付事件時,通過移動終端的攝像裝置掃描到的二維碼,獲得當前掃碼交易的支付商家。S20. Obtain the payment merchant of the current code scanning transaction through the two-dimensional code scanned by the camera device of the mobile terminal when the scanning payment event is detected.

在本發明實施例中,當啟動掃描支付事件時,移動終端會調用其攝像裝置來掃描獲取二維碼,根據該二維碼獲得當前掃碼交易的支付商家資訊。In the embodiment of the present invention, when the scanning payment event is started, the mobile terminal will invoke its camera device to scan and obtain the QR code, and obtain the payment merchant information of the current code scanning transaction according to the QR code.

S30,獲取所述移動終端當前所在的定位位置,並以所述定位位置為當前掃碼交易的交易位置。S30. Obtain the current positioning location of the mobile terminal, and use the positioning location as the transaction location of the current scanning code transaction.

由於同一商家可以在不同的地理位置設置了店鋪,因而僅基於支付商家資訊來判別支付習慣,準確度不足夠,因而可以通過移動終端的GPS功能,定位當前移動終端所在的地理位置,以該地理位置為當前掃碼交易的交易位置。Since the same merchant can set up stores in different geographic locations, it is not accurate enough to judge payment habits based on payment merchant information only. Therefore, the GPS function of the mobile terminal can be used to locate the current geographic location of the mobile terminal, and the geographic location The position is the transaction position of the current scan code transaction.

S40,根據當前掃碼交易的掃碼時間,獲取與所述掃碼時間處於非同一天但同一時間段內的歷史掃碼交易的歷史支付資訊;其中,所述歷史支付資訊包括所述歷史掃碼交易的支付金額、支付商家和交易位置。S40, according to the scanning time of the current code scanning transaction, obtain the historical payment information of the historical scanning code transaction that is not on the same day as the scanning code time but within the same time period; wherein, the historical payment information includes the historical scanning code transaction The payment amount, payment merchant and transaction location of code transactions.

假設當前掃碼交易的掃碼時間為2018年2月5日星期一10:30,那麼移動終端可以預設一個時間閾值,例如,在當前掃碼時間的前半小時和後半小時之間的時間段為同一時間段,還可以預設另一個時間閾值,僅限一個月內的歷史支付資訊,那麼以上述為例,從2018年1月4日至2018年2月4日之間且位於當天的10:00至11:00的時間段的歷史支付資訊,都可以提取出來。上述時間閾值可以根據具體情況進行設置。但也不宜過長,以保證精確度。Assuming that the scanning time of the current code scanning transaction is 10:30 on Monday, February 5, 2018, the mobile terminal can preset a time threshold, for example, the time period between half an hour before and half an hour after the current scanning time For the same time period, another time threshold can also be preset, which is limited to historical payment information within one month. Taking the above as an example, from January 4, 2018 to February 4, 2018 and located on the same day Historical payment information from 10:00 to 11:00 can be extracted. The above time threshold can be set according to specific situations. But it should not be too long to ensure accuracy.

S50,根據當前掃碼交易的支付商家和交易位置以及所述歷史支付資訊,計算當前掃碼交易的支付金額。S50. Calculate the payment amount of the current code scanning transaction according to the payment merchant and transaction location of the current code scanning transaction and the historical payment information.

由於提取的歷史支付資訊僅基於時間條件進行篩選,後續再需要進一步根據當前掃碼交易的支付產家和交易位置來進一步確定與當前掃碼交易密切相關的交易習慣。具體地,如圖2所示,本步驟S50可以具體如下執行:Since the extracted historical payment information is only screened based on time conditions, it is necessary to further determine the transaction habits closely related to the current code scanning transaction based on the payment industry and transaction location of the current code scanning transaction. Specifically, as shown in FIG. 2, this step S50 can be specifically performed as follows:

S51,根據提取的歷史支付資訊,統計同一支付金額的交易次數。S51. Count the number of transactions with the same payment amount according to the extracted historical payment information.

在本實施例中,例如歷史支付資訊的支付金額,出現以下列舉情況:20rmb、20rmb、19rmb、18rmb、20rmb、19rmb、18rmb、20rmb、19rmb;那麼,對於20rmb的支付金額其交易次數為4次,對於19rmb的支付金額,其交易次數為3次,對於18rmb的支付金額,其交易次數為2次。在本實施例中,以同一支付金額的交易次數大於預設的次數閾值的事件為一次事件;例如,假設次數閾值為3次,那麼同一支付金額的交易次數大於預設的次數閾值的事件發生數量為1次;假設次數閾值為2次,那麼同一支付金額的交易次數大於預設的次數閾值的事件發生數量為2次。In this embodiment, for example, the payment amount of historical payment information, the following enumeration occurs: 20rmb, 20rmb, 19rmb, 18rmb, 20rmb, 19rmb, 18rmb, 20rmb, 19rmb; then, the number of transactions for the payment amount of 20rmb is 4 times , for the payment amount of 19rmb, the number of transactions is 3 times, and for the payment amount of 18rmb, the number of transactions is 2 times. In this embodiment, an event in which the number of transactions of the same payment amount is greater than the preset number of times threshold is an event; for example, assuming that the number of times the threshold is 3 times, then the event that the number of transactions of the same payment amount is greater than the preset number of times threshold occurs The quantity is 1 time; assuming that the number of times threshold is 2 times, then the number of events where the number of transactions with the same payment amount is greater than the preset number of times threshold is 2 times.

S52,當掃碼支付事件的發生數量大於1時,根據每一個掃碼支付事件的支付金額,計算當前掃碼交易的支付金額。S52. When the number of code-scanning payment events is greater than 1, calculate the payment amount of the current code-scanning transaction according to the payment amount of each code-scanning payment event.

在本實施例中,當掃碼支付事件的發生數量大於1時,意味著有多個滿足條件的同一支付金額的交易次數大於次數閾值,例如,以上述舉例為例,假設次數閾值為2,則掃碼支付事件的發生數量為2次,包括:對於20rmb的支付金額其交易次數為4次,對於19rmb的支付金額,其交易次數為3次。那麼,根據這兩個掃碼支付事件的支付金額,計算相應的支付金額。在一個具體示例中,該過程可以如下: 判斷是否存在任意兩個掃碼支付事件的支付金額之間是否大於預設閾值; 若是,選取交易次數最高的掃碼支付事件,並以所述掃碼支付事件的支付金額作為當前掃碼交易的支付金額; 若否,根據所有掃碼支付事件的支付金額,從中選取處於中位數的支付金額,作為當前掃碼交易的支付金額。In this embodiment, when the number of scanning payment events is greater than 1, it means that there are multiple transactions with the same payment amount that meet the conditions and are greater than the threshold value. For example, taking the above example as an example, assuming that the threshold value is 2, Then, the number of scanning payment events is 2 times, including: 4 transactions for a payment amount of 20 rmb, and 3 transactions for a payment amount of 19 rmb. Then, the corresponding payment amount is calculated according to the payment amount of the two scanning code payment events. In a concrete example, the process could be as follows: Determine whether the payment amount of any two scan code payment events is greater than the preset threshold; if so, select the scan code payment event with the highest number of transactions, and use the payment amount of the scan code payment event as the current code scan transaction Payment amount; If not, according to the payment amount of all scan code payment events, select the payment amount in the median as the payment amount of the current scan code transaction.

需要說明的是,若是相互兩個掃碼支付事件的支付金額差距過大時,那麼交易次數最高的掃碼支付事件的支付金額所出現的概率可性性會更高,以該支付金額來確定當前掃碼交易的支付金額有利於提取預測的準確度,而當支付金額差距不大時,那麼在這些掃碼支付事件中,處於中位數的支付金額出現的概率可能性更新,以該支付金額來確定當前掃碼交易的支付金額有利於提取預測的準確度。It should be noted that if the difference between the payment amounts of the two scanning code payment events is too large, then the probability of the payment amount of the scanning code payment event with the highest number of transactions will be higher, and the payment amount is used to determine the current The payment amount of the scan code transaction is conducive to the accuracy of the extraction prediction, and when the difference in the payment amount is not large, then in these scan code payment events, the probability of the occurrence of the median payment amount is updated, with the payment amount To determine the payment amount of the current scan code transaction is conducive to the accuracy of the prediction prediction.

S53,當所述掃碼支付事件的發生數量等於1時,根據所述掃碼支付事件的支付金額,計算當前掃碼交易的支付金額。優選地,由於同一支付金額的交易次數大於次數閾值的事件只有一個,那麼可以以這一個掃碼支付事件的支付金額,作為當前掃碼交易的支付金額。S53. When the occurrence number of the code scanning payment event is equal to 1, calculate the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment event. Preferably, since there is only one event where the number of transactions of the same payment amount is greater than the number threshold, the payment amount of this one code scanning payment event can be used as the payment amount of the current code scanning transaction.

S54,當所述掃碼支付事件的發生數量小於1時,從提取的歷史支付資訊中再次提取與當前掃碼支付的掃碼時間位於同一星期的週期位置且距離當前最近的時間的掃碼支付資訊,並根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額。S54, when the number of occurrences of the scan code payment event is less than 1, extract again from the extracted historical payment information the scan code payment that is at the same week cycle position as the scan code time of the current scan code payment and is closest to the current time information, and calculate the payment amount of the current scan code transaction based on the payment amount of the scan code payment information extracted again.

需要說明的是,以上述舉例的當前掃碼支付的掃碼時間為例,再次提取的掃碼支付資訊可以是,從2018年1月4日至2018年2月4日之間且位於當天的10:00至11:00的時間段以及當天是距離當前時間最近的星期一的歷史支付資訊。而再次提取歷史支付資訊的過程中,有可能提取不到資訊,也就是不存在滿足提取條件的交易資訊,那麼本步驟S54的“根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額”的過程可以為:It should be noted that, taking the scanning time of the current code scanning payment as an example above, the code scanning payment information extracted again can be from January 4, 2018 to February 4, 2018 and located on the same day The time period from 10:00 to 11:00 and the historical payment information of the Monday closest to the current time. In the process of re-extracting historical payment information, it is possible that no information can be extracted, that is, there is no transaction information that satisfies the extraction conditions. Then in step S54, "according to the payment amount of the re-extracted scan code payment information, calculate the current scan code The payment amount of the transaction" process can be:

判斷再次提取的掃碼支付資訊是否為空集資訊;若是,確定當前掃碼交易的支付金額為零;若否,以所述再次提取的掃碼支付資訊的支付金額,作為當前掃碼交易的支付金額。Determine whether the code scanning payment information extracted again is empty information; if so, determine that the payment amount of the current code scanning transaction is zero; if not, use the payment amount of the code scanning payment information extracted again as the payment amount of the current code scanning transaction Payment amount.

S60,根據當前掃碼交易的支付商家和支付金額,生成支付顯示介面並進行顯示。由於通過步驟S60的執行過程中有可能計算出來的支付金額為零,那麼本步驟S60的執行過程可以為:S60. Generate and display a payment display interface according to the payment merchant and the payment amount of the current code scanning transaction. Since the calculated payment amount may be zero during the execution of step S60, the execution process of this step S60 can be:

判斷當前掃碼交易的支付金額是否為零;若是,生成所述支付顯示介面時,控制所述支付顯示介面的支付金額輸入框為空; 若否,生成所述支付顯示介面時,控制所述支付顯示介面的支付金額輸入框的數值為當前掃碼交易的支付金額。Judging whether the payment amount of the current code scanning transaction is zero; if so, when generating the payment display interface, controlling the payment amount input box of the payment display interface to be empty; if not, controlling the payment amount input box when generating the payment display interface The value of the payment amount input box on the payment display interface is the payment amount of the current scan code transaction.

本發明實施例提供的掃碼支付金額輸入的方法,能夠當掃碼到當前掃碼交易的支付商家時,獲取當前掃碼交易的交易位置,並根據當前掃碼交易的掃碼時間,獲取相應的歷史支付資訊,進而可以將當前掃碼交易的支付商家和交易位置與歷史支付資訊進行結合,計算出當前掃碼交易的支付金額,最後根據當前掃碼交的支付商家和支付金額,生成支付顯示介面並顯示於移動終端的介面中,準確地根據支付習慣來預測當前掃碼交易的支付金額,無需支付方輸入支付金額,減少支付排隊時間。The method for inputting the payment amount by scanning the code provided by the embodiment of the present invention can obtain the transaction location of the current code scanning transaction when scanning the code to the payment merchant of the current code scanning transaction, and obtain the corresponding transaction location according to the scanning time of the current code scanning transaction The historical payment information of the current scan code transaction can be combined with the payment merchant and transaction location with the historical payment information to calculate the payment amount of the current scan code transaction, and finally generate a payment based on the current payment merchant and payment amount submitted by the scan code Display the interface and display it in the interface of the mobile terminal, accurately predict the payment amount of the current scan code transaction according to the payment habit, without the need for the payer to input the payment amount, and reduce the payment queuing time.

實施例二Embodiment two

請參閱圖3,本發明實施例還提供一種掃碼支付金額輸入的裝置,包括: 事件監聽模組10,用於監聽移動終端啟動掃描支付事件; 支付商家獲取模組20,用於當監聽到啟動所述掃描支付事件時,通過移動終端的攝像裝置掃描到的二維碼,獲得當前掃碼交易的支付商家; 交易位置獲取模組30,用於獲取所述移動終端當前所在的定位位置,並以所述定位位置為當前掃碼交易的交易位置; 歷史資訊獲取模組40,用於根據當前掃碼交易的掃碼時間,獲取與所述掃碼時間處於非同一天但同一時間段內的歷史掃碼交易的歷史支付資訊;其中,所述歷史支付資訊包括所述歷史掃碼交易的支付金額、支付商家和交易位置; 支付金額計算模組50,用於根據當前掃碼交易的支付商家和交易位置以及所述歷史支付資訊,計算當前掃碼交易的支付金額; 顯示介面生成模組60,用於根據當前掃碼交易的支付商家和支付金額,生成支付顯示介面並進行顯示。Please refer to Fig. 3, the embodiment of the present invention also provides a device for inputting payment amount by scanning the code, including: The event monitoring module 10 is used to monitor the mobile terminal to start scanning and payment events; The payment merchant acquisition module 20 is used to obtain the payment merchant of the current code scanning transaction through the two-dimensional code scanned by the camera device of the mobile terminal when the scanning payment event is monitored and started; The transaction position acquisition module 30 is used to obtain the current positioning position of the mobile terminal, and use the positioning position as the transaction position of the current scanning code transaction; The historical information acquisition module 40 is used to obtain historical payment information of historical code scanning transactions that are not on the same day as the code scanning time but within the same time period according to the code scanning time of the current code scanning transaction; The payment information includes the payment amount, payment merchant and transaction location of the historical scanning code transaction; The payment amount calculation module 50 is used to calculate the payment amount of the current code scanning transaction according to the payment merchant and transaction location of the current code scanning transaction and the historical payment information; The display interface generation module 60 is used to generate and display a payment display interface according to the payment merchant and payment amount of the current code scanning transaction.

優選地,所述支付金額計算模組50,包括: 資訊再次提取單元,用於從所述歷史支付資訊中,提取與當前掃碼交易的支付商家和交易位置均相同的歷史支付資訊; 交易次數統計單元,用於根據提取的歷史支付資訊,統計同一支付金額的交易次數; 第一計算單元,用於當掃碼支付事件的發生數量大於1時,根據每一個掃碼支付事件的支付金額,計算當前掃碼交易的支付金額;所述掃碼支付事件為同一支付金額的交易次數大於次數閾值所發生的事件; 第二計算單元,用於當所述掃碼支付事件的發生數量等於1時,根據所述掃碼支付事件的支付金額,計算當前掃碼交易的支付金額; 第三計算單元,用於當所述掃碼支付事件的發生數量小於1時,從提取的歷史支付資訊中再次提取與當前掃碼支付的掃碼時間位於同一星期的週期位置且距離當前最近的時間的掃碼支付資訊,並根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額。Preferably, the payment amount calculation module 50 includes: The information re-extraction unit is used to extract the same historical payment information as the payment merchant and transaction location of the current scanning transaction from the historical payment information; The number of transactions statistics unit is used to count the number of transactions of the same payment amount according to the extracted historical payment information; The first calculation unit is used to calculate the payment amount of the current code scanning transaction according to the payment amount of each code scanning payment event when the number of code scanning payment events is greater than 1; the code scanning payment event is the payment amount of the same payment amount An event that occurs when the number of transactions is greater than the number threshold; The second calculation unit is used to calculate the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment event when the occurrence number of the code scanning payment event is equal to 1; The third calculation unit is used to re-extract the code scanning time of the current code scanning payment from the extracted historical payment information when the number of occurrences of the code scanning payment event is less than 1. The code scanning payment information at the time, and the payment amount of the current scanning code transaction is calculated according to the payment amount of the scanning code payment information extracted again.

實施例三:Embodiment three:

本發明實施例提供一種實現掃碼支付金額輸入的終端設備,包括處理器、存儲器以及存儲在所述存儲器且被配置由所述處理器執行的電腦程式,例如:掃碼支付金額輸入的程式。所述處理器執行所述電腦程式時實現第一方面的上述任一項所述的掃碼支付金額輸入的實施例中的步驟,例如圖1所示的步驟S10。或者,所述處理器執行所述電腦程式時實現上述各裝置實施例中的功能,例如圖3所示的支付金額輸入模組50。An embodiment of the present invention provides a terminal device for inputting a payment amount by scanning a code, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, for example, a program for inputting an amount of payment by scanning a code. When the processor executes the computer program, it realizes the steps in the embodiment of inputting the payment amount by scanning the code according to any one of the above aspects of the first aspect, such as step S10 shown in FIG. 1 . Alternatively, when the processor executes the computer program, it realizes the functions in the above-mentioned device embodiments, such as the payment amount input module 50 shown in FIG. 3 .

示例性地,所述電腦程式可以被分割成一個或多個模組,所述一個或者多個模組被存儲在所述存儲器中,並由所述處理器執行,以完成本發明。所述一個或多個模組可以是能夠完成特定功能的一系列電腦程式指令段,該指令段用於描述所述電腦程式在所述實現掃碼支付金額輸入的終端設備中的執行過程。Exemplarily, the computer program can be divided into one or more modules, and the one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device that realizes the input of payment amount by scanning codes.

所述終端設備可包括,但不僅限於,處理器、存儲器、顯示器。本領域技術人員可以理解,所述示意圖僅僅是實現掃碼支付金額輸入的終端設備的示例,並不構成對實現掃碼支付金額輸入的終端設備的限定,可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件,例如實現掃碼支付金額輸入的終端設備還可以包括輸入輸出設備、網路接入設備、匯流排等。The terminal device may include, but not limited to, a processor, a memory, and a display. Those skilled in the art can understand that the schematic diagram is only an example of a terminal device that realizes the input of the payment amount by scanning the code, and does not constitute a limitation on the terminal device that realizes the input of the payment amount by scanning the code, and may include more or less than the figure components, or a combination of certain components, or different components, for example, the terminal equipment that realizes the input of the payment amount by scanning codes may also include input and output equipment, network access equipment, bus bars, etc.

所述處理器可以是中央處理單元(Central Processing Unit,CPU),還可以是其他通用處理器、數位訊號處理器 (Digital Signal Processor,DSP)、專用積體電路 (Application Specific Integrated Circuit,ASIC)、現成可程式設計閘陣列 (Field-Programmable Gate Array,FPGA) 或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可以是微處理器或者該處理器也可以是任何常規的處理器等,所述處理器是所述實現掃碼支付金額輸入的終端設備的控制中心,利用各種介面和線路連接整個所述實現掃碼支付金額輸入的終端設備的各個部分。The processor can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., the processor is the control center of the terminal device that realizes the input of the payment amount by scanning the code, and uses various interfaces and lines to connect the entire Describe the various parts of the terminal device that realizes the input of the payment amount by scanning the code.

所述存儲器可用於存儲所述電腦程式和/或模組,所述處理器通過運行或執行存儲在所述存儲器內的電腦程式和/或模組,以及調用存儲在存儲器內的資料,實現掃碼支付金額輸入的終端設備的各種功能。所述存儲器可主要包括存儲程式區和存儲資料區,其中,存儲程式區可存儲作業系統、至少一個功能所需的應用程式(比如聲音播放功能、文字轉換功能等)等;存儲資料區可存儲根據手機的使用所創建的資料(比如音訊資料、文字消息資料等)等。此外,存儲器可以包括高速隨機存取存儲器,還可以包括非易失性存儲器,例如硬碟、內存、插接式硬碟、智慧存儲卡(Smart Media Card, SMC)、安全數位(Secure Digital, SD)卡、閃存卡(Flash Card)、至少一個磁碟存儲器件、閃存器件、或其他易失性固態存儲器件。The memory can be used to store the computer programs and/or modules, and the processor realizes scanning by running or executing the computer programs and/or modules stored in the memory, and calling the data stored in the memory. Various functions of the terminal device for inputting the amount of code payment. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required by a function (such as a sound playback function, a text conversion function, etc.) and the like; the data storage area may store Data created based on the use of mobile phones (such as audio data, text message data, etc.), etc. In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as hard disk, internal memory, plug-in hard disk, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD ) card, flash card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

其中,所述實現掃碼支付金額輸入的終端設備的模組如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取存儲介質中。基於這樣的理解,本發明實現上述實施例方法中的全部或部分流程,也可以通過電腦程式來指令相關的硬體來完成,所述的電腦程式可存儲於一個電腦可讀存儲介質中,該電腦程式在被處理器執行時,可實現上述各個方法實施例的步驟。其中,所述電腦程式包括電腦程式代碼,所述電腦程式代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。所述電腦可讀介質可以包括:能夠攜帶所述電腦程式代碼的任何實體或裝置、記錄介質、U盤、移動硬碟、磁碟、光碟、電腦存儲器、唯讀存儲器(ROM,Read-Only Memory)、隨機存取存儲器(RAM,Random Access Memory)、電載波信號、電信信號以及軟體分發介質等。需要說明的是,所述電腦可讀介質包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不包括電載波信號和電信信號。Wherein, if the module of the terminal device that realizes the input of the payment amount by scanning the code is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can realize the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code may be in the form of original code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory ), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable Excludes electrical carrier signals and telecommunication signals.

需說明的是,以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。另外,本發明提供的裝置實施例附圖中,模組之間的連接關係表示它們之間具有通信連接,具體可以實現為一條或多條通信匯流排或信號線。本領域普通技術人員在不付出創造性勞動的情況下,即可以理解並實施。It should be noted that the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physically separated. A unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which can be implemented as one or more communication busbars or signal lines. It can be understood and implemented by those skilled in the art without creative effort.

以上所述,僅為本發明的具體實施方式,但本發明的保護範圍並不局限於此,任何熟悉本技術領域的技術人員在本發明揭露的技術範圍內,可輕易想到其各種變化或替換,這些都應涵蓋在本發明的保護範圍之內。因此,本發明的保護範圍應以所述請求項的保護範圍為準。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various changes or replacements within the technical scope disclosed in the present invention. , these should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

10:事件監聽模組 20:支付商家獲取模組 30:交易位置獲取模組 40:歷史資訊獲取模組 50:支付金額計算模組 60:顯示介面生成模組10:Event monitoring module 20:Pay merchants to obtain modules 30: Trading position acquisition module 40: Historical information acquisition module 50:Payment amount calculation module 60: Display interface generation module

圖1是本發明提供的掃碼支付金額輸入的方法的一個實施例的流程示意圖; 圖2是本發明提供的掃碼支付金額輸入的方法的步驟S50的一個實施例的流程示意圖; 圖3是本發明提供的掃碼支付金額輸入的方法的裝置的一個實施例的結構示意圖。Fig. 1 is a schematic flow chart of an embodiment of a method for inputting a payment amount by scanning a code provided by the present invention; Fig. 2 is a schematic flow chart of an embodiment of step S50 of the method for scanning code payment amount input provided by the present invention; Fig. 3 is a schematic structural diagram of an embodiment of the method and device for inputting payment amount by scanning a code provided by the present invention.

Claims (8)

一種掃碼支付金額輸入的方法,其特徵在於,包括:移動終端中之一事件監聽模組監聽移動終端啟動掃描支付事件;當監聽到啟動所述掃描支付事件時,所述移動終端中之一支付商家獲取模組開始進行一當前掃碼交易,通過所述移動終端的攝像裝置掃描到的二維碼,獲得該當前掃碼交易的一支付商家;所述移動終端中之一交易位置獲取模組獲取所述移動終端當前所在的定位位置,並以所述定位位置為該當前掃碼交易的一交易位置;所述移動終端中之一歷史資訊獲取模組根據該當前掃碼交易的一掃碼時間,獲取與所述掃碼時間處於非同一天但同一時間段內的歷史掃碼交易的歷史支付資訊;其中,所述歷史支付資訊包括所述歷史掃碼交易的支付金額、支付商家和交易位置;所述移動終端中之一支付金額計算模組根據該當前掃碼交易的該支付商家和該交易位置以及所述歷史支付資訊,計算該當前掃碼交易的一支付金額,包括下列步驟:所述移動終端中之一資訊再次提取單元從所述歷史支付資訊中,提取與該當前掃碼交易的該支付商家和該交易位置均相同的歷史支付資訊;所述移動終端中之一交易次數統計單元統計提取的歷史支付資訊中,具有相同之該歷史掃碼交易的支付金額的交易次數,並將同一該支付金額的該交易次數大於預設之一次數閾值的事件設為一次掃碼支付事件; 所述移動終端中之一第一計算單元當該掃碼支付事件的發生數量大於1時,根據每一個掃碼支付事件的支付金額,計算該當前掃碼交易的支付金額;所述移動終端中之一第二計算單元當所述掃碼支付事件的發生數量等於1時,根據所述掃碼支付事件的支付金額,計算該當前掃碼交易的支付金額;以及所述移動終端中之一第三計算單元當所述掃碼支付事件的發生數量小於1時,從提取的歷史支付資訊中再次提取與該當前掃碼支付的該掃碼時間位於同一星期的週期位置且距離當前最近的時間的掃碼支付資訊,並根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額;以及所述移動終端中之一顯示介面生成模組根據該當前掃碼交易的該支付商家和該支付金額,生成一支付顯示介面並進行顯示。 A method for inputting a payment amount by scanning a code, characterized in that it comprises: one of the event monitoring modules in a mobile terminal monitors an event that a mobile terminal starts a scanning payment; The payment merchant acquisition module starts to perform a current code scanning transaction, and obtains a payment merchant of the current code scanning transaction through the two-dimensional code scanned by the camera device of the mobile terminal; one of the transaction position acquisition modules in the mobile terminal The group obtains the current positioning position of the mobile terminal, and uses the positioning position as a transaction position of the current code scanning transaction; one of the historical information acquisition modules in the mobile terminal is based on a scanning code of the current scanning code transaction Time, to obtain the historical payment information of historical code scanning transactions that are not on the same day as the scanning code time but within the same time period; wherein, the historical payment information includes the payment amount, payment merchant, and transaction amount of the historical scanning code transaction Location; a payment amount calculation module in the mobile terminal calculates a payment amount of the current code scanning transaction according to the payment merchant and the transaction location of the current code scanning transaction and the historical payment information, including the following steps: One of the information re-extracting units in the mobile terminal extracts historical payment information that is the same as the payment merchant and the transaction location of the current code-scanning transaction from the historical payment information; one of the transaction times in the mobile terminal is The statistical unit counts the number of transactions with the same payment amount of the historical scanning code transaction in the extracted historical payment information, and sets the event that the transaction number of the same payment amount is greater than one of the preset thresholds as a scanning code payment event; One of the first calculation units in the mobile terminal calculates the payment amount of the current code scanning transaction according to the payment amount of each code scanning payment event when the number of occurrences of the code scanning payment event is greater than 1; in the mobile terminal A second calculation unit calculates the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment event when the number of occurrences of the code scanning payment event is equal to 1; and one of the mobile terminals first 3. When the number of code scanning payment events occurs is less than 1, the calculation unit extracts again from the extracted historical payment information the code scanning time of the current code scanning payment that is located in the same cycle position of the week and is closest to the current time. Scan the code payment information, and calculate the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment information extracted again; and one of the display interface generation modules in the mobile terminal is based on the payment merchant and the payment amount, generate a payment display interface and display it. 如請求項1所述的掃碼支付金額輸入的方法,其中所述根據每一個掃碼支付事件的支付金額,計算當前掃碼交易的支付金額,包括:判斷是否存在任意兩個掃碼支付事件的支付金額之間是否大於預設閾值;若是,選取交易次數最高的掃碼支付事件,並以所述掃碼支付事件的支付金額作為當前掃碼交易的支付金額;若否,根據所有掃碼支付事件的支付金額,從中選取處於中位數的支付金額,作為當前掃碼交易的支付金額。 The method for inputting the payment amount by scanning the code as described in claim 1, wherein the calculation of the payment amount of the current code scanning transaction according to the payment amount of each scanning code payment event includes: judging whether there are any two scanning code payment events Whether the payment amount between the payment amount is greater than the preset threshold; if yes, select the scan code payment event with the highest number of transactions, and use the payment amount of the scan code payment event as the payment amount of the current scan code transaction; if not, according to all scan code payment events The payment amount of the payment event, from which the median payment amount is selected as the payment amount of the current scan code transaction. 如請求項1所述的掃碼支付金額輸入的方法,其中所述根據所述掃碼支付事件的支付金額,計算當前掃碼交易的支付金額,包括:以所述掃碼支付事件的支付金額,作為當前掃碼交易的支付金額。 The method for inputting the payment amount by scanning the code according to claim 1, wherein the calculation of the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment event includes: using the payment amount of the code scanning payment event , as the payment amount of the current scan code transaction. 如請求項1所述的掃碼支付金額輸入的方法,其中所述根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額,包括:判斷再次提取的掃碼支付資訊是否為空集資訊;若是,確定當前掃碼交易的支付金額為零;若否,以所述再次提取的掃碼支付資訊的支付金額,作為當前掃碼交易的支付金額。 The method for inputting the payment amount by scanning the code as described in claim 1, wherein the calculation of the payment amount of the current code scanning transaction based on the payment amount of the code scanning payment information extracted again includes: judging whether the code scanning payment information extracted again is an empty set of information; if yes, determine that the payment amount of the current code scanning transaction is zero; if not, use the payment amount of the re-extracted code scanning payment information as the payment amount of the current code scanning transaction. 如請求項1所述的掃碼支付金額輸入的方法,其中所述根據當前掃碼交易的支付商家和支付金額,生成支付顯示介面並進行顯示,包括:判斷當前掃碼交易的支付金額是否為零;若是,生成所述支付顯示介面時,控制所述支付顯示介面的支付金額輸入框為空;若否,生成所述支付顯示介面時,控制所述支付顯示介面的支付金額輸入框的數值為當前掃碼交易的支付金額。 The method for inputting the payment amount by scanning the code as described in claim 1, wherein the payment display interface is generated and displayed according to the payment merchant and the payment amount of the current scanning code transaction, including: judging whether the payment amount of the current scanning code transaction is Zero; if, when generating the payment display interface, control the payment amount input box of the payment display interface to be empty; if not, control the value of the payment amount input box of the payment display interface when generating the payment display interface It is the payment amount of the current scan code transaction. 一種掃碼支付金額輸入的裝置,其特徵在於,包括:事件監聽模組,用於監聽移動終端啟動掃描支付事件;支付商家獲取模組,用於當監聽到啟動所述掃描支付事件時,開始進行一當前掃碼交易,通過所述移動終端的攝像裝置掃描到的二維碼,獲得該當前掃碼交易的支付商家;交易位置獲取模組,用於獲取所述移動終端當前所在的定位位置,並以所述定位位置為該當前掃碼交易的交易位置;歷史資訊獲取模組,用於根據該當前掃碼交易的掃碼時間,獲取與所述掃碼時間處於非同一天但同一時間段內的歷史掃碼交易的歷史支付資訊;其 中,所述歷史支付資訊包括所述歷史掃碼交易的支付金額、支付商家和交易位置;支付金額計算模組,用於根據該當前掃碼交易的該支付商家和該交易位置以及所述歷史支付資訊,計算該當前掃碼交易的支付金額,所述支付金額計算模組包括:資訊再次提取單元,用於從所述歷史支付資訊中,提取與該當前掃碼交易的該支付商家和該交易位置均相同的歷史支付資訊;交易次數統計單元,用於統計提取的歷史支付資訊中,具有相同之該歷史掃碼交易的支付金額的交易次數,並將同一該支付金額的該交易次數大於預設之一次數閾值的事件設為一次掃碼支付事件;第一計算單元,用於當該掃碼支付事件的發生數量大於1時,根據每一個掃碼支付事件的支付金額,計算當前掃碼交易的支付金額;第二計算單元,用於當所述掃碼支付事件的發生數量等於1時,根據所述掃碼支付事件的支付金額,計算該當前掃碼交易的支付金額;以及第三計算單元,用於當所述掃碼支付事件的發生數量小於1時,從提取的歷史支付資訊中再次提取與該當前掃碼支付的該掃碼時間位於同一星期的週期位置且距離當前最近的時間的掃碼支付資訊,並根據再次提取的掃碼支付資訊的支付金額,計算當前掃碼交易的支付金額;以及顯示介面生成模組,用於根據該當前掃碼交易的該支付商家和該支付金額,生成支付顯示介面並進行顯示。 A device for inputting a payment amount by scanning a code, characterized in that it includes: an event monitoring module, configured to monitor a mobile terminal to start a scanning payment event; Carry out a current code scanning transaction, and obtain the payment merchant of the current scanning code transaction through the two-dimensional code scanned by the camera device of the mobile terminal; the transaction position acquisition module is used to obtain the current positioning position of the mobile terminal , and take the positioning position as the transaction position of the current code scanning transaction; the historical information acquisition module is used to obtain the time that is not on the same day as the scanning code time but at the same time according to the scanning code time of the current code scanning transaction. The historical payment information of the historical scan code transaction in the segment; Among them, the historical payment information includes the payment amount, payment merchant and transaction location of the historical code scanning transaction; the payment amount calculation module is used to calculate the payment merchant, the transaction location and the historical payment amount according to the current scanning code transaction. Payment information, calculating the payment amount of the current code scanning transaction, the payment amount calculation module includes: an information re-extraction unit, used to extract the payment merchant and the payment merchant of the current scanning code transaction from the historical payment information Historical payment information with the same transaction location; the transaction count unit is used to count the number of transactions with the same payment amount of the historical scanning code transaction in the extracted historical payment information, and count the number of transactions with the same payment amount greater than An event with a preset number of thresholds is set as a scan code payment event; the first calculation unit is used to calculate the current scan code payment event according to the payment amount of each scan code payment event when the number of occurrences of the scan code payment event is greater than 1. The payment amount of the code transaction; the second calculation unit is used to calculate the payment amount of the current code scanning transaction according to the payment amount of the code scanning payment event when the occurrence number of the code scanning payment event is equal to 1; and the second Three calculation units, used to re-extract from the extracted historical payment information the cycle position that is located in the same week as the code scanning time of the current code scanning payment and is closest to the current one when the number of occurrences of the code scanning payment event is less than 1 The code scanning payment information at the time, and calculate the payment amount of the current scanning code transaction according to the payment amount of the scanning code payment information extracted again; and the display interface generation module for the payment merchant and For the payment amount, a payment display interface is generated and displayed. 一種電腦可讀存儲介質,其特徵在於,所述電腦可讀存儲介質包括存儲的電腦程式,其中,在所述電腦程式運行時控制所述電腦可讀存儲介質所在設備執行如請求項1至5任意一項所述的掃碼支付金額輸入的方法。 A computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored computer program, wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute requests 1 to 5 The method of inputting the payment amount by scanning the code described in any one of the items. 一種終端設備,其特徵在於,包括處理器、存儲器以及存儲在所述存儲器且被配置由所述處理器執行的電腦程式,所述處理器執行所述電腦程式時實現如請求項1至5任一項所述的掃碼支付金額輸入的方法。 A terminal device, characterized in that it includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, any of the requirements 1 to 5 are realized. A method for inputting payment amount by scanning a code.
TW109111219A 2020-04-01 2020-04-01 Method, device, storage medium and terminal device for inputting payment amount by scanning code TWI782266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109111219A TWI782266B (en) 2020-04-01 2020-04-01 Method, device, storage medium and terminal device for inputting payment amount by scanning code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109111219A TWI782266B (en) 2020-04-01 2020-04-01 Method, device, storage medium and terminal device for inputting payment amount by scanning code

Publications (2)

Publication Number Publication Date
TW202138989A TW202138989A (en) 2021-10-16
TWI782266B true TWI782266B (en) 2022-11-01

Family

ID=79600945

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109111219A TWI782266B (en) 2020-04-01 2020-04-01 Method, device, storage medium and terminal device for inputting payment amount by scanning code

Country Status (1)

Country Link
TW (1) TWI782266B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496402A (en) * 2020-04-01 2021-10-12 黑杰克科技有限公司 Method and device for inputting code scanning payment amount, storage medium and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351147A1 (en) * 2011-12-09 2014-11-27 Merchantwarehouse.Com, Llc Payment Processing and Customer Engagement Platform Methods, Apparatuses and Media
US20170017955A1 (en) * 2015-07-14 2017-01-19 Fmr Llc Point-to-Point Transaction Guidance Apparatuses, Methods and Systems
TWM584953U (en) * 2019-07-15 2019-10-11 黃國展 QR code store management system that combines ordering and ordering goods
US20200042976A1 (en) * 2014-11-07 2020-02-06 Paypal, Inc. Payment processing apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351147A1 (en) * 2011-12-09 2014-11-27 Merchantwarehouse.Com, Llc Payment Processing and Customer Engagement Platform Methods, Apparatuses and Media
US20200042976A1 (en) * 2014-11-07 2020-02-06 Paypal, Inc. Payment processing apparatus
US20170017955A1 (en) * 2015-07-14 2017-01-19 Fmr Llc Point-to-Point Transaction Guidance Apparatuses, Methods and Systems
TWM584953U (en) * 2019-07-15 2019-10-11 黃國展 QR code store management system that combines ordering and ordering goods

Also Published As

Publication number Publication date
TW202138989A (en) 2021-10-16

Similar Documents

Publication Publication Date Title
CN109961365B (en) Account receiving record processing method and system based on block chain intelligent contract
CN113657886B (en) Payment system, method, server device, medium and device
US20150052049A1 (en) Silent sms triggering for mobile billing at a billing server
KR102242782B1 (en) Method and device for sharing local information
CN110738477A (en) reconciliation method, device, computer equipment and storage medium
CN108694574B (en) Resource transfer channel processing method, device and equipment
US20200372511A1 (en) Information Reminding Method and Apparatus, and Electronic Device
CN111861437A (en) Payment processing method and device
CN114169885A (en) Digital currency payment method, device, terminal and computer readable storage medium
CN112184240A (en) Refund request processing method and device
TWI782266B (en) Method, device, storage medium and terminal device for inputting payment amount by scanning code
CN110033362B (en) Money drawing method, device and equipment
NL2025254B1 (en) Method, apparatus, storage medium and terminal device for inputting payment amount with code scanning
CN111210345B (en) Signature method and device based on block chain network transaction and terminal equipment
CN114282998A (en) Foreign currency account balance processing method and device
CN110148044B (en) Method and device for setting buffering threshold for accounting
CN113313492A (en) Electronic certificate generation method and related device
CN111784512A (en) Bank-enterprise reconciliation flow processing method and device and electronic equipment
CN111476562A (en) Virtual resource transfer method, device, electronic equipment and storage medium
US20150006373A1 (en) Phone-on-file opt-in at a merchant server
US11748721B1 (en) Procuring and presenting deposit transaction details
JP2020106963A (en) Information processing method, information processing apparatus, and program
CN113496402A (en) Method and device for inputting code scanning payment amount, storage medium and terminal equipment
OA19720A (en) Network usage product provisioning via a mobile wallet platform
CN113919829A (en) Account transaction request processing method, device and system and electronic equipment