WO2019137357A1 - Payment code acquisition and payment request response method, apparatus and device - Google Patents

Payment code acquisition and payment request response method, apparatus and device Download PDF

Info

Publication number
WO2019137357A1
WO2019137357A1 PCT/CN2019/070795 CN2019070795W WO2019137357A1 WO 2019137357 A1 WO2019137357 A1 WO 2019137357A1 CN 2019070795 W CN2019070795 W CN 2019070795W WO 2019137357 A1 WO2019137357 A1 WO 2019137357A1
Authority
WO
WIPO (PCT)
Prior art keywords
payment
amount
user
authorization
payment code
Prior art date
Application number
PCT/CN2019/070795
Other languages
French (fr)
Chinese (zh)
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 阿里巴巴集团控股有限公司
Publication of WO2019137357A1 publication Critical patent/WO2019137357A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4012Verifying personal identification numbers [PIN]

Abstract

Provided are a payment code acquisition and payment request response method, apparatus and device. By means of the method, apparatus and device, a user can customize a payment limit for a payment code; the payment limit can be used accumulatively multiple times, and can also be limited to a single use; and if the payment limit is exceeded, payment can be caused to fail, and a user can be guided to re-appoint or reset the payment limit.

Description

付款码获取、支付请求响应方法、装置以及设备Payment code acquisition, payment request response method, device and device 技术领域Technical field
本说明书涉及计算机软件技术领域,尤其涉及付款码获取、支付请求响应方法、装置以及设备。The present specification relates to the field of computer software technologies, and in particular, to a payment code acquisition method, a payment request response method, a device, and a device.
背景技术Background technique
智能手机的使用普及给人们的生活带来了便利。通过使用智能手机上的各种应用,能够相应地进行各种业务,很多业务都涉及到支付。The popularity of smartphones has brought convenience to people's lives. By using various applications on the smartphone, various services can be performed correspondingly, and many businesses involve payment.
在现有技术中,当用户在商户处消费后,可以向商户展示付款码,通过商户扫描付款码,支付服务端进行相应处理后,完成支付,若付款码泄露,则其关联的支付账户内的全部资金存在被利用该付款码盗用的风险。In the prior art, after the user consumes at the merchant, the payment code can be displayed to the merchant, and the payment code is scanned by the merchant, and the payment server performs corresponding processing to complete the payment. If the payment code is leaked, the associated payment account is The entire funds are at risk of being stolen by the payment code.
基于现有技术,需要更为安全的付款方案。Based on the prior art, a more secure payment scheme is needed.
发明内容Summary of the invention
本说明书实施例提供付款码获取、支付请求响应方法、装置以及设备,用以解决如下技术问题:需要更为安全的付款方案。The embodiment of the present specification provides a payment code acquisition, a payment request response method, a device, and a device, to solve the following technical problem: a more secure payment scheme is needed.
为解决上述技术问题,本说明书实施例是这样实现的:In order to solve the above technical problem, the embodiment of the present specification is implemented as follows:
本说明书实施例提供的一种付款码获取方法,包括:A method for obtaining a payment code provided by an embodiment of the present disclosure includes:
第一客户端接收付款码开启指令;The first client receives the payment code opening instruction;
确定用户指定的授权额度;Determine the authorization amount specified by the user;
根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。Obtaining a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
本说明书实施例提供的一种支付请求响应方法,包括:A payment request response method provided by an embodiment of the present disclosure includes:
服务端接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;The server receives the payment request sent by the second client by scanning the payment code, where the payment amount of the payment code does not exceed the authorization amount specified by the user of the first client;
校验所述支付请求对应的消费金额是否将导致所述付款额度用超;Verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
根据校验结果响应所述支付请求。Responding to the payment request based on the verification result.
本说明书实施例提供的一种付款码获取装置,第一客户端位于所述装置,所述装置包括:The payment code obtaining device provided by the embodiment of the present specification, the first client is located in the device, and the device includes:
接收模块,接收付款码开启指令;Receiving module, receiving a payment code opening instruction;
确定模块,确定用户指定的授权额度;Determining a module to determine a user-specified authorization amount;
获取模块,根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。The obtaining module obtains a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
本说明书实施例提供的一种支付请求响应装置,服务端位于所述装置,所述装置包括:A payment request response device is provided in the embodiment of the present specification, where the server is located in the device, and the device includes:
接收模块,接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;The receiving module receives a payment request sent by the second client by scanning the payment code, where the payment amount of the payment code does not exceed the authorization amount specified by the user of the first client;
校验模块,校验所述支付请求对应的消费金额是否将导致所述付款额度用超;a verification module, verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
响应模块,根据校验结果响应所述支付请求。The response module responds to the payment request according to the verification result.
本说明书实施例提供的一种付款码获取设备,第一客户端位于所述设备,所述设备包括:A payment code acquiring device is provided in the embodiment of the present specification, where the first client is located in the device, and the device includes:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
接收付款码开启指令;Receiving a payment code opening instruction;
确定用户指定的授权额度;Determine the authorization amount specified by the user;
根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。Obtaining a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
本说明书实施例提供的一种支付请求响应设备,服务端位于所述设备,所述设备包括:A payment request response device is provided in the embodiment of the present disclosure, where the server is located in the device, and the device includes:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;Receiving, by the second client, a payment request sent by scanning a payment code, where the payment amount of the payment code does not exceed a user-specified authorization amount of the first client;
校验所述支付请求对应的消费金额是否将导致所述付款额度用超;Verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
根据校验结果响应所述支付请求。Responding to the payment request based on the verification result.
本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果:使用户能够根据自己的使用场景自定义付款码的付款额度,如此能够防范付款码泄露后付款额度之外的资金被盗用的风险,有助于提高利用付款码付款的安全性。The at least one technical solution adopted by the embodiment of the present specification can achieve the following beneficial effects: enabling the user to customize the payment amount of the payment code according to the usage scenario, so as to prevent the risk of misappropriation of funds other than the payment amount after the payment code is leaked. To help improve the security of payment by payment code.
附图说明DRAWINGS
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a few embodiments described in the present specification, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本说明书的方案在一种实际应用场景下涉及的一种整体架构示意图;FIG. 1 is a schematic diagram of an overall architecture involved in an implementation scenario of the present specification;
图2为本说明书实施例提供的一种付款码获取方法的流程示意图;2 is a schematic flowchart of a method for acquiring a payment code according to an embodiment of the present disclosure;
图3为本说明书实施例提供的一种支付请求响应方法的流程示意图;FIG. 3 is a schematic flowchart of a method for responding to a payment request according to an embodiment of the present disclosure;
图4为本说明书实施例提供的一种实际应用场景下,基于用户自定义付款额度的付款码的支付流程示意图;4 is a schematic diagram of a payment process of a payment code based on a user-defined payment amount in an actual application scenario according to an embodiment of the present disclosure;
图5为本说明书实施例提供的对应于图2的一种付款码获取装置的结构示意图;FIG. 5 is a schematic structural diagram of a payment code acquiring apparatus corresponding to FIG. 2 according to an embodiment of the present disclosure;
图6为本说明书实施例提供的对应于图3的一种支付请求响应装置的结构示意图。FIG. 6 is a schematic structural diagram of a payment request response apparatus corresponding to FIG. 3 according to an embodiment of the present disclosure.
具体实施方式Detailed ways
本说明书实施例提供付款码获取、支付请求响应方法、装置以及设备。Embodiments of the present specification provide a payment code acquisition, a payment request response method, apparatus, and device.
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书 实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本说明书实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the specification. The embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present specification without departing from the inventive scope shall fall within the scope of the application.
图1为本说明书的方案在一种实际应用场景下涉及的一种整体架构示意图。该整体架构中,主要涉及三方:作为付款者的用户方(用户及其使用的第一客户端)、作为收款者的商户方(商户及其使用的第二客户端)和支付服务方(服务端)。当然,除了商户方以外,其他用户方也可以作为收款者。FIG. 1 is a schematic diagram of an overall architecture involved in an implementation scenario of the present specification. In the overall architecture, there are mainly three parties: the user side as the payer (the user and the first client used by the user), the merchant party as the payee (the merchant and the second client used by the merchant), and the payment service party ( Server). Of course, in addition to the merchant side, other users can also act as payees.
用户方预先自定义付款码的付款额度,然后利用付款码在商户方消费;商户方通过扫描付款码请求支付服务方进行支付处理;支付服务方对付款码进行校验,若将超出付款额度,则可以使支付不成功。The user side pre-customizes the payment amount of the payment code, and then uses the payment code to consume on the merchant side; the merchant side requests the payment service party to perform payment processing by scanning the payment code; the payment service party checks the payment code, and if the payment amount is exceeded, Then the payment can be made unsuccessful.
在本说明书实施例中,付款码主要指用于付款的二维码,当然,付款码也可以采用二维码以外的其他数字对象唯一标识符(Digital Object Identifier,DOI)形式,比如,条形码、字符码等。In the embodiment of the present specification, the payment code mainly refers to a two-dimensional code for payment. Of course, the payment code may also be in the form of a Digital Object Identifier (DOI) other than the two-dimensional code, for example, a barcode, Character code, etc.
下面主要基于图1中的架构,对说明书的方案详细说明。The following is a detailed description of the scheme of the specification based on the architecture in FIG.
图2为本说明书实施例提供的一种付款码获取方法的流程示意图,执行主体为上述的第一客户端,比如,用户的手机上的支付应用客户端。图2中的流程可以包括以下步骤:FIG. 2 is a schematic flowchart of a method for obtaining a payment code according to an embodiment of the present disclosure. The execution entity is the first client, for example, a payment application client on a user's mobile phone. The process in Figure 2 can include the following steps:
S202:第一客户端接收付款码开启指令。S202: The first client receives the payment code opening instruction.
在本说明书实施例中,付款码开启指令可以用于请求开启付款码功能。付款码功能开启后,可以多次获取付款码(不同次获取的付款码可能相同,也可能不相同),为了提高安全性,每次获取的付款码可以具有时效性,比如,1分钟内有效等,付款码时效性过期后,需要重新获取付款码。另外,每次开启付款码功能后,付款码功能本身也可以具有时效性,比如,一周内有效等,付款码功能时效性过期后需要重新开启付款码功能。将本段的场景称为第一场景。In the embodiment of the present specification, the payment code opening instruction may be used to request to open the payment code function. After the payment code function is enabled, the payment code can be obtained multiple times (the payment codes obtained in different times may be the same or different). In order to improve security, the payment code obtained each time can be time-sensitive, for example, valid within 1 minute. After the time limit of the payment code expires, you need to re-acquire the payment code. In addition, each time the payment code function is turned on, the payment code function itself can also be time-sensitive. For example, it is valid within one week, and the payment code function needs to be re-opened after the time limit of the payment code function expires. The scene in this paragraph is called the first scene.
在本说明书实施例中,付款码开启指令也可以用于单次地请求获取付款码。在这种情况下,每次获取付款码均需要下达一次付款码开启指令。将本段的场景称为第二场景。In the embodiment of the present specification, the payment code opening instruction may also be used to request the payment code in a single request. In this case, each time you get a payment code, you need to issue a payment code open command. The scene in this paragraph is called the second scene.
为了便于描述,以下各实施例主要基于第一场景。For ease of description, the following embodiments are mainly based on the first scenario.
S204:确定用户指定的授权额度。S204: Determine a user-specified authorization amount.
在本说明书实施例中,授权额度可以是用户预先指定的,也可以是每次开启付款码功能时用户实时指定的。In the embodiment of the present specification, the authorization amount may be pre-specified by the user, or may be specified by the user in real time each time the payment code function is turned on.
S206:根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。S206: Obtain a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
在本说明书实施例中,授权额度用于限制付款码的付款额度,若付款码的已付金额将超过付款额度,则可以使支付不成功。In the embodiment of the present specification, the authorization amount is used to limit the payment amount of the payment code, and if the payment amount of the payment code will exceed the payment amount, the payment may be unsuccessful.
一般地,付款码的付款额度等于授权额度。当然,也可以将授权额度视为用户的心理上限,若支付服务方的安全策略有需要,可以低于授权额度来设定付款码的付款额度。In general, the payment amount of the payment code is equal to the authorization amount. Of course, the authorization amount can also be regarded as the psychological upper limit of the user. If the payment security policy of the service party is required, the payment amount of the payment code can be set below the authorization amount.
这里所述的“付款码的付款额度”可以指在每次开启付款码功能后,能够多次获取的付款码的总的付款额度(该多次获取的付款码累计的已付金额不能超过该总的付款额度);或者,也可以指单次获取的付款码的付款额度(该单次获取的付款码的已付金额不能超过该付款额度)。可以根据实际应用场景,确定“付款码的付款额度”的含义。为了便于描述,以下各实施例主要基于本段中的第一种含义。The "payment amount of the payment code" described herein may refer to the total payment amount of the payment code that can be acquired multiple times after the payment code function is turned on (the accumulated payment amount of the multiple acquired payment code cannot exceed the amount) The total payment amount); or, may also refer to the payment amount of the payment code obtained in a single time (the paid amount of the single-acquisition payment code cannot exceed the payment amount). The meaning of the "payment amount of the payment code" can be determined according to the actual application scenario. For ease of description, the following embodiments are primarily based on the first meaning in this paragraph.
目前,用户无法自定义付款额度,若付款码泄露,则其关联的支付账户内的全部资金存在被利用该付款码盗用的风险。而通过图2的方法,使用户能够根据自己的使用场景自定义付款码的付款额度,如此能够防范付款码泄露后付款额度之外的资金被盗用的风险,有助于提高利用付款码付款的安全性。At present, the user cannot customize the payment amount. If the payment code is leaked, all the funds in the associated payment account are at risk of being stolen by the payment code. Through the method of FIG. 2, the user can customize the payment amount of the payment code according to the usage scenario, so that the risk of the funds other than the payment amount after the payment code is leaked can be prevented, and the payment by the payment code can be improved. safety.
在本说明书实施例中,付款码可以基于第一客户端与服务端之间的交互,由服务端或者第一客户端生成;付款码也可以由第一客户端不依赖于服务端而在本地直接生成。In the embodiment of the present specification, the payment code may be generated by the server or the first client based on the interaction between the first client and the server; the payment code may also be localized by the first client without depending on the server. Generated directly.
基于图2的方法,本说明书实施例还提供了该方法的一些具体实施方案,以及扩展方案,下面进行说明。Based on the method of FIG. 2, the embodiments of the present specification further provide some specific implementations of the method, and an extended solution, which will be described below.
在本说明书实施例中,假定用户尚未指定授权额度,则对于步骤S204,所述确定用户指定的授权额度,具体可以包括:展示用户输入界面;获取用户通过所述用户输入界面输入的身份认证信息和作为所述授权额度的金额;对所述身份认证信息和所述金额验证通过,对金额的验证比如包括验证字段格式和取值范围是否正确等。身份认证信息、作为授权额度的金额可以在同一个界面输入,也可以在不同界面输入,输入先后顺序本申请不做限定。In the embodiment of the present specification, it is assumed that the user has not specified the authorization quota, and the determining the authorization quota specified by the user may specifically include: displaying a user input interface; and acquiring identity authentication information input by the user through the user input interface. And as the amount of the authorization amount; verifying the identity authentication information and the amount, and verifying the amount includes, for example, whether the verification field format and the value range are correct. The identity authentication information and the amount of the authorization amount can be input in the same interface, or can be input in different interfaces. The input sequence is not limited in this application.
上一段中的具体实施方式并非唯一。比如,身份认证也可以预先进行,而未必要在指定授权额度时进行;再比如,未必以金额作为授权额度,也可以以可付款笔数作为授权额度,每笔的金额限额可以由服务端或者用户预先设定,若可付款笔数较少,比如为1笔,则也可以不对每笔的金额进行限制,因为一般会被用户即时用掉,被盗用的风险较小。The specific implementation in the previous paragraph is not unique. For example, the identity authentication can also be carried out in advance, and it is not necessary to specify the authorization amount; for example, the amount may not be used as the authorization amount, or the number of payment can be used as the authorization amount, and the amount of each amount may be determined by the server or The user pre-sets, if the number of payables is small, for example, one pen, it is also possible not to limit the amount of each pen, because it is generally used by the user immediately, and the risk of being stolen is small.
在本说明书实施例中,对于步骤S206,所述根据所述授权额度获取付款码,具体可以包括:接收服务端根据所述授权额度生成并返回的付款码,或者,根据所述授权额度在本地生成所述付款码。In the embodiment of the present specification, for the step S206, the obtaining the payment code according to the authorization amount may include: receiving a payment code generated and returned by the server according to the authorization quota, or locally according to the authorization quota. Generate the payment code.
对于上一段中的第一种方式,比如,第一客户端可以将授权额度发送给服务端,以请求获取付款码,服务端根据诸如授权额度、用户的账户标识、当前时间等参数生成付款码,并返回给第一客户端;另外,服务端也可以只是生成并返回付款码应包含的信息,由第一客户端将该信息转换得到付款码。对于上一段中的第二种方式,比如,第一客户端可以在本地根据诸如授权额度、用户的账户标识、当前时间等参数生成付款码,当然,第一客户端在生成付款码后,可以将一些必要信息(比如,付款码本身或者其标识信息等)发送给服务端,以便于服务端后续针对付款码进行支付处理。For the first mode in the previous paragraph, for example, the first client may send the authorization quota to the server to request the payment code, and the server generates the payment code according to parameters such as the authorization quota, the user's account identifier, and the current time. And returning to the first client; in addition, the server may only generate and return the information that the payment code should contain, and the first client converts the information to obtain the payment code. For the second mode in the previous paragraph, for example, the first client may locally generate a payment code according to parameters such as an authorization amount, a user's account identifier, and a current time. Of course, the first client may generate a payment code. Send some necessary information (for example, the payment code itself or its identification information, etc.) to the server, so that the server can subsequently perform payment processing for the payment code.
另外,前面已经提到,付款码可以具有时效性。第一客户端可以将前次获取的付款码保存在本地,下一次获取时若尚未超出付款码时限,则直接获取本地保存的付款码即可,而无需重新生成,也可以不与服务端进行相应的交互,从而可以节省系统资源。In addition, as already mentioned, the payment code can be time-sensitive. The first client can save the previously obtained payment code locally, and if the payment code time limit has not been exceeded in the next acquisition, the locally saved payment code can be directly obtained without re-generation or not with the server. Corresponding interactions can save system resources.
在本说明书实施例中,当用户需要向商户付款时,可以将第一客户端获取的付款码向商户展示,商户扫描付款码,通过第二客户端向服务端发送相应的支付请求(请求从用户方扣款并付给商户方),服务端校验对应的消费金额是否将导致付款额度用超,若是,则当前无法支付成功,服务端可以向第一客户端发送指令,以便于引导用户重新指定或者重置付款额度。比如,在第一场景下,具体可以由服务端或者第一客户端引导用户重新开启付款码,以实现授权额度的重新指定或者重置。In the embodiment of the present specification, when the user needs to pay the merchant, the payment code obtained by the first client may be displayed to the merchant, the merchant scans the payment code, and sends a corresponding payment request to the server through the second client (request from The user side deducts the payment and pays the merchant party. The server verifies that the corresponding consumption amount will cause the payment amount to be super. If yes, the current payment cannot be successful, and the server can send an instruction to the first client to guide the user. Reassign or reset the payment amount. For example, in the first scenario, the server or the first client may be used to guide the user to re-open the payment code to implement re-assignment or resetting of the authorization amount.
上面从第一客户端的角度进行了说明,下面再从服务端的角度进行说明。本说明书实施例还提供了一种支付请求响应方法的流程示意图,如图3所示,执行主体为上述的服务端,比如,上述支付应用客户端对应的支付应用服务端。图3中的流程可以包括以下步骤:The above is explained from the perspective of the first client, and the following is explained from the perspective of the server. The embodiment of the present specification further provides a schematic diagram of a payment request response method. As shown in FIG. 3, the execution entity is the above-mentioned server, for example, the payment application server corresponding to the payment application client. The process in Figure 3 can include the following steps:
S302:服务端接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码 的付款额度不超过第一客户端的用户指定的授权额度。S302: The server receives the payment request sent by the second client by scanning the payment code, where the payment amount of the payment code does not exceed the authorization amount specified by the user of the first client.
S304:校验所述支付请求对应的消费金额是否将导致所述付款额度用超。S304: Check whether the consumption amount corresponding to the payment request will cause the payment amount to be exceeded.
S306:根据校验结果响应所述支付请求。S306: Respond to the payment request according to the verification result.
在本说明书实施例中,对于步骤S306,所述根据校验结果响应所述支付请求,具体可以包括:若校验结果为否,则根据所述支付请求,通过所述用户的账户对所述消费金额进行支付,并向所述第二客户端返回支付结果(当然,还可以向第一客户端也返回支付结果);若校验结果为是,则向所述第二客户端返回相应的提示信息,提示信息比如提示商户支付失败、当前扫描的付款码的付款额度不足等。In the embodiment of the present disclosure, the step of responding to the payment request according to the verification result may include: if the verification result is no, according to the payment request, the account is Paying the amount of payment, and returning the payment result to the second client (of course, the payment result may also be returned to the first client); if the verification result is yes, returning the corresponding to the second client The prompt information, such as prompting the merchant to pay the payment, the payment amount of the currently scanned payment code is insufficient.
在本说明书实施例中,若校验结果为是,还可以提醒用户进行相应操作,消除导致当前支付失败的因素,以便于重新尝试支付。比如,可以向第一客户端发送指令,以便于引导用户重新指定或者重置付款额度等。In the embodiment of the present specification, if the verification result is yes, the user may be reminded to perform corresponding operations, and the factors causing the current payment failure are eliminated, so as to retry the payment. For example, an instruction can be sent to the first client to guide the user to re-specify or reset the payment amount and the like.
根据上面的说明,本说明书实施例还提供了一种实际应用场景下,基于用户指定付款额度的付款码的支付流程示意图,如图4所示。该支付流程也是示例性的,上述方法并不限于这一种具体实施流程。According to the above description, the embodiment of the present specification further provides a payment flow diagram of a payment code based on a user-specified payment amount in an actual application scenario, as shown in FIG. 4 . The payment process is also exemplary, and the above method is not limited to this specific implementation flow.
图4中的流程主要包括以下步骤:The flow in Figure 4 mainly includes the following steps:
用户在第一客户端点击相应的控件,以开启付款码功能;The user clicks the corresponding control on the first client to open the payment code function;
第一客户端展示用户输入界面,以便于用户输入作为身份认证信息的支付密码和本次作为授权额度的金额;The first client displays a user input interface, so that the user inputs the payment password as the identity authentication information and the amount of the authorization amount as the authorization amount;
第一客户端向服务端请求获取付款额度不超过授权额度的付款码;The first client requests the server to obtain a payment code whose payment amount does not exceed the authorized amount;
服务端生成付款码并返回给第一客户端;The server generates a payment code and returns it to the first client;
当用户在商户处消费,可以向商户展示付款码,以为消费进行付款;When the user consumes at the merchant, the payment code can be displayed to the merchant to pay for the purchase;
商户扫描付款码,并通过第二客户端指定消费金额,以及向服务端发起支付请求;The merchant scans the payment code, specifies the consumption amount through the second client, and initiates a payment request to the server;
服务端校验本次消费是否将导致付款码的付款额度用超;The server verifies whether this consumption will result in the payment amount of the payment code exceeding;
若付款额度不将用超,则可以执行支付流程,进而向第一客户端和第二客户端返回支付结果;If the payment amount is not to be used, the payment process may be executed to return the payment result to the first client and the second client;
若付款额度将用超,则可以向第二客户端返回支付失败,以及引导用户重新开启付款码功能,以实现付款额度的重新指定或者重置。If the payment amount will be used excessively, the payment failure may be returned to the second client, and the user may be redirected to re-designate the payment code to re-designate or reset the payment amount.
需要说明的是,在图4的例子中,付款额度是付款码功能开启后的有效期内各付款码的累计额度。比如,假定某次开启付款码功能时,指定的付款额度为1000元,之后,第一次用付款码支付了500元,第二次用付款码支付了400元,则此时付款额度已经用掉了900元(这两次使用的付款码可以相同,也可以不同),若第三次想用付款码再支付200元,则付款额度将会用超(1100元),因此,第三次支付会失败。It should be noted that, in the example of FIG. 4, the payment amount is the cumulative amount of each payment code within the validity period after the payment code function is turned on. For example, suppose that when the payment code function is enabled for a certain time, the specified payment amount is 1000 yuan. After that, the first payment is 500 yuan, and the second payment is 400 yuan. Then the payment amount has been used. Lost 900 yuan (the two payment codes can be the same or different). If you want to use the payment code to pay 200 yuan for the third time, the payment amount will be over (1100 yuan), so the third time Payment will fail.
基于同样的思路,本说明书实施例还提供了上述各方法对应的装置,如图5、图6所示。Based on the same idea, the embodiment of the present specification further provides a device corresponding to each method, as shown in FIG. 5 and FIG. 6.
图5为本说明书实施例提供的对应于图2的一种付款码获取装置的结构示意图,虚线方框表示可选的模块,第一客户端位于所述装置,所述装置包括:FIG. 5 is a schematic structural diagram of a payment code acquiring apparatus corresponding to FIG. 2 according to an embodiment of the present disclosure, where a dotted box indicates an optional module, and the first client is located in the apparatus, and the apparatus includes:
接收模块501,接收付款码开启指令;The receiving module 501 receives a payment code opening instruction;
确定模块502,确定用户指定的授权额度;Determining module 502, determining a user-specified authorization amount;
获取模块503,根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。The obtaining module 503 is configured to obtain a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
可选地,若所述用户尚未指定所述授权额度,所述确定模块502确定用户指定的授权额度,具体包括:Optionally, if the user has not specified the authorization quota, the determining module 502 determines the authorization quota specified by the user, and specifically includes:
所述确定模块502展示用户输入界面;The determining module 502 displays a user input interface;
获取用户通过所述用户输入界面输入的身份认证信息和作为所述授权额度的金额;Obtaining identity authentication information input by the user through the user input interface and an amount of the authorization amount;
对所述身份认证信息和所述金额验证通过。The identity authentication information and the amount verification are passed.
可选地,所述获取模块503根据所述授权额度获取付款码,具体包括:Optionally, the obtaining module 503 is configured to obtain a payment code according to the authorization quota, and specifically includes:
所述获取模块503接收服务端根据所述授权额度生成并返回的付款码,或者,根据所述授权额度在本地生成所述付款码。The obtaining module 503 receives a payment code generated and returned by the server according to the authorization quota, or generates the payment code locally according to the authorization quota.
可选地,所述装置还包括:Optionally, the device further includes:
引导模块504,在所述获取模块503根据所述授权额度获取付款码后,若确定针对所述付款码的支付请求对应的消费金额将导致所述付款额度用超,则引导所述用户重新指定或者重置付款额度。The guiding module 504, after the obtaining module 503 obtains the payment code according to the authorization amount, if the payment amount corresponding to the payment request for the payment code is determined to cause the payment amount to be super, the user is redirected. Or reset the payment amount.
图6为本说明书实施例提供的对应于图3的一种支付请求响应装置的结构示意图,服务端位于所述装置,所述装置包括:FIG. 6 is a schematic structural diagram of a payment request response apparatus corresponding to FIG. 3 according to an embodiment of the present disclosure, where a server is located in the apparatus, and the apparatus includes:
接收模块601,接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;The receiving module 601 is configured to receive a payment request sent by the second client by scanning the payment code, where the payment amount of the payment code does not exceed the authorization amount specified by the user of the first client;
校验模块602,校验所述支付请求对应的消费金额是否将导致所述付款额度用超;The verification module 602, verifying whether the consumption amount corresponding to the payment request will cause the payment amount to be excessive;
响应模块603,根据校验结果响应所述支付请求。The response module 603 responds to the payment request according to the verification result.
可选地,所述响应模块603根据校验结果响应所述支付请求,具体包括:Optionally, the response module 603 responds to the payment request according to the verification result, and specifically includes:
所述响应模块603若校验结果为否,则根据所述支付请求,通过所述用户的账户对所述消费金额进行支付,并向所述第二客户端返回支付结果;If the verification result is no, the response module 603, according to the payment request, pays the consumption amount through the account of the user, and returns a payment result to the second client;
若校验结果为是,则向所述第二客户端返回相应的提示信息。If the verification result is yes, the corresponding prompt information is returned to the second client.
可选地,若校验结果为是,所述响应模块603还执行:Optionally, if the verification result is yes, the response module 603 further performs:
向所述第一客户端发送指令,以便于引导所述用户重新指定或者重置付款额度。An instruction is sent to the first client to facilitate directing the user to reassign or reset the payment amount.
基于同样的思路,本说明书实施例还提供了对应于图2的一种付款码获取设备,第一客户端位于所述设备,所述设备包括:Based on the same idea, the embodiment of the present specification further provides a payment code acquiring device corresponding to FIG. 2, where the first client is located in the device, and the device includes:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
接收付款码开启指令;Receiving a payment code opening instruction;
确定用户指定的授权额度;Determine the authorization amount specified by the user;
根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。Obtaining a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
基于同样的思路,本说明书实施例还提供了对应于图3的一种支付请求响应设备,服务端位于所述设备,所述设备包括:Based on the same idea, the embodiment of the present specification further provides a payment request response device corresponding to FIG. 3, where the server is located in the device, and the device includes:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少 一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;Receiving, by the second client, a payment request sent by scanning a payment code, where the payment amount of the payment code does not exceed a user-specified authorization amount of the first client;
校验所述支付请求对应的消费金额是否将导致所述付款额度用超;Verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
根据校验结果响应所述支付请求。Responding to the payment request based on the verification result.
基于同样的思路,本说明书实施例还提供了对应于图2的一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:Based on the same idea, the embodiment of the present specification further provides a non-volatile computer storage medium corresponding to FIG. 2, which stores computer executable instructions, and the computer executable instructions are set as:
接收付款码开启指令;Receiving a payment code opening instruction;
确定用户指定的授权额度;Determine the authorization amount specified by the user;
根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。Obtaining a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
基于同样的思路,本说明书实施例还提供了对应于图3的一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:Based on the same idea, the embodiment of the present specification further provides a non-volatile computer storage medium corresponding to FIG. 3, which stores computer executable instructions, and the computer executable instructions are set as:
接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;Receiving, by the second client, a payment request sent by scanning a payment code, where the payment amount of the payment code does not exceed a user-specified authorization amount of the first client;
校验所述支付请求对应的消费金额是否将导致所述付款额度用超;Verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
根据校验结果响应所述支付请求。Responding to the payment request based on the verification result.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing description of the specific embodiments of the specification has been described. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than the embodiments and still achieve the desired results. In addition, the processes depicted in the figures are not necessarily in a particular order or in a sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备、非易失性计算机存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for a device, device, non-volatile computer storage medium embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本说明书实施例提供的装置、设备、非易失性计算机存储介质与方法是对应的, 因此,装置、设备、非易失性计算机存储介质也具有与对应方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述对应装置、设备、非易失性计算机存储介质的有益技术效果。The device, the device, the non-volatile computer storage medium and the method provided by the embodiments of the present specification are corresponding. Therefore, the device, the device, and the non-volatile computer storage medium also have similar beneficial technical effects as the corresponding method, since The beneficial technical effects of the method are described in detail, and therefore, the beneficial technical effects of the corresponding device, device, and non-volatile computer storage medium are not described herein.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, improvements to a technology could clearly distinguish between hardware improvements (eg, improvements to circuit structures such as diodes, transistors, switches, etc.) or software improvements (for process flow improvements). However, as technology advances, many of today's method flow improvements can be seen as direct improvements in hardware circuit architecture. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented by hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is an integrated circuit whose logic function is determined by the user programming the device. Designers program themselves to "integrate" a digital system on a single PLD without having to ask the chip manufacturer to design and fabricate a dedicated integrated circuit chip. Moreover, today, instead of manually making integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in programming development, but before compiling The original code has to be written in a specific programming language. This is called the Hardware Description Language (HDL). HDL is not the only one, but there are many kinds, such as ABEL (Advanced Boolean Expression Language). AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., are currently the most commonly used VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be apparent to those skilled in the art that the hardware flow for implementing the logic method flow can be easily obtained by simply programming the method flow into the integrated circuit with a few hardware description languages.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步 骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner, for example, the controller can take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. In the form of logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, The Microchip PIC18F26K20 and the Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art will also appreciate that in addition to implementing the controller in purely computer readable program code, the controller can be logically programmed by means of logic gates, switches, ASICs, programmable logic controllers, and embedding. The form of a microcontroller or the like to achieve the same function. Such a controller can therefore be considered a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component. Or even a device for implementing various functions can be considered as a software module that can be both a method of implementation and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The system, device, module or unit illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described separately by function into various units. Of course, the functions of the various units may be implemented in one or more software and/or hardware in the implementation of the present specification.
本领域内的技术人员应明白,本说明书实施例可提供为方法、系统、或计算机程序产品。因此,本说明书实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the specification can be provided as a method, system, or computer program product. Thus, embodiments of the present specification can take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, embodiments of the present specification can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present specification. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在 计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本说明书实施例可提供为方法、系统或计算机程序产品。因此,本说明书可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present description can be provided as a method, system, or computer program product. Accordingly, the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、 对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This description can be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
以上所述仅为本说明书实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above description is only for the embodiments of the present specification, and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (16)

  1. 一种付款码获取方法,包括:A payment code acquisition method includes:
    第一客户端接收付款码开启指令;The first client receives the payment code opening instruction;
    确定用户指定的授权额度;Determine the authorization amount specified by the user;
    根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。Obtaining a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
  2. 如权利要求1所述的方法,若所述用户尚未指定所述授权额度,所述确定用户指定的授权额度,具体包括:The method of claim 1, wherein if the user has not specified the authorization amount, the determining the authorization amount specified by the user includes:
    展示用户输入界面;Display user input interface;
    获取用户通过所述用户输入界面输入的身份认证信息和作为所述授权额度的金额;Obtaining identity authentication information input by the user through the user input interface and an amount of the authorization amount;
    对所述身份认证信息和所述金额验证通过。The identity authentication information and the amount verification are passed.
  3. 如权利要求1所述的方法,所述根据所述授权额度获取付款码,具体包括:The method of claim 1, wherein the obtaining the payment code according to the authorization amount comprises:
    接收服务端根据所述授权额度生成并返回的付款码,或者,根据所述授权额度在本地生成所述付款码。Receiving, by the server, a payment code generated and returned according to the authorization quota, or generating the payment code locally according to the authorization quota.
  4. 如权利要求1所述的方法,所述根据所述授权额度获取付款码后,所述方法还包括:The method of claim 1, after the obtaining the payment code according to the authorization amount, the method further comprises:
    若确定针对所述付款码的支付请求对应的消费金额将导致所述付款额度用超,则引导所述用户重新指定或者重置付款额度。If it is determined that the amount of consumption corresponding to the payment request for the payment code will cause the payment amount to be exceeded, the user is directed to re-designate or reset the payment amount.
  5. 一种支付请求响应方法,包括:A payment request response method includes:
    服务端接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;The server receives the payment request sent by the second client by scanning the payment code, where the payment amount of the payment code does not exceed the authorization amount specified by the user of the first client;
    校验所述支付请求对应的消费金额是否将导致所述付款额度用超;Verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
    根据校验结果响应所述支付请求。Responding to the payment request based on the verification result.
  6. 如权利要求5所述的方法,所述根据校验结果响应所述支付请求,具体包括:The method of claim 5, wherein the responding to the payment request according to the verification result comprises:
    若校验结果为否,则根据所述支付请求,通过所述用户的账户对所述消费金额进行支付,并向所述第二客户端返回支付结果;If the verification result is no, the payment amount is paid by the user's account according to the payment request, and the payment result is returned to the second client;
    若校验结果为是,则向所述第二客户端返回相应的提示信息。If the verification result is yes, the corresponding prompt information is returned to the second client.
  7. 如权利要求6所述的方法,若校验结果为是,所述方法还包括:The method of claim 6, if the verification result is yes, the method further comprises:
    向所述第一客户端发送指令,以便于引导所述用户重新指定或者重置付款额度。An instruction is sent to the first client to facilitate directing the user to reassign or reset the payment amount.
  8. 一种付款码获取装置,第一客户端位于所述装置,所述装置包括:A payment code acquisition device, the first client is located in the device, and the device includes:
    接收模块,接收付款码开启指令;Receiving module, receiving a payment code opening instruction;
    确定模块,确定用户指定的授权额度;Determining a module to determine a user-specified authorization amount;
    获取模块,根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。The obtaining module obtains a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
  9. 如权利要求8所述的装置,若所述用户尚未指定所述授权额度,所述确定模块确定用户指定的授权额度,具体包括:The apparatus according to claim 8, wherein the determining module determines the authorization amount specified by the user, if the user has not specified the authorization quota, and specifically includes:
    所述确定模块展示用户输入界面;The determining module displays a user input interface;
    获取用户通过所述用户输入界面输入的身份认证信息和作为所述授权额度的金额;Obtaining identity authentication information input by the user through the user input interface and an amount of the authorization amount;
    对所述身份认证信息和所述金额验证通过。The identity authentication information and the amount verification are passed.
  10. 如权利要求8所述的装置,所述获取模块根据所述授权额度获取付款码,具体包括:The device of claim 8, wherein the obtaining module obtains the payment code according to the authorization amount, which specifically includes:
    所述获取模块接收服务端根据所述授权额度生成并返回的付款码,或者,根据所述授权额度在本地生成所述付款码。The obtaining module receives a payment code generated and returned by the server according to the authorization quota, or generates the payment code locally according to the authorization quota.
  11. 如权利要求8所述的装置,所述装置还包括:The device of claim 8 further comprising:
    引导模块,在所述获取模块根据所述授权额度获取付款码后,若确定针对所述付款码的支付请求对应的消费金额将导致所述付款额度用超,则引导所述用户重新指定或者重置付款额度。The guiding module, after the obtaining module obtains the payment code according to the authorization quota, if it is determined that the consumption amount corresponding to the payment request for the payment code will cause the payment amount to be excessive, the user is redirected or re-directed Set the payment amount.
  12. 一种支付请求响应装置,服务端位于所述装置,所述装置包括:A payment request response device, the server is located in the device, and the device includes:
    接收模块,接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;The receiving module receives a payment request sent by the second client by scanning the payment code, where the payment amount of the payment code does not exceed the authorization amount specified by the user of the first client;
    校验模块,校验所述支付请求对应的消费金额是否将导致所述付款额度用超;a verification module, verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
    响应模块,根据校验结果响应所述支付请求。The response module responds to the payment request according to the verification result.
  13. 如权利要求12所述的装置,所述响应模块根据校验结果响应所述支付请求,具体包括:The apparatus according to claim 12, wherein the response module responds to the payment request according to the verification result, and specifically includes:
    所述响应模块若校验结果为否,则根据所述支付请求,通过所述用户的账户对所述消费金额进行支付,并向所述第二客户端返回支付结果;If the verification result is no, the response module performs payment on the consumption amount through the account of the user according to the payment request, and returns a payment result to the second client;
    若校验结果为是,则向所述第二客户端返回相应的提示信息。If the verification result is yes, the corresponding prompt information is returned to the second client.
  14. 如权利要求13所述的装置,若校验结果为是,所述响应模块还执行:The apparatus according to claim 13, wherein if the verification result is yes, the response module further performs:
    向所述第一客户端发送指令,以便于引导所述用户重新指定或者重置付款额度。An instruction is sent to the first client to facilitate directing the user to reassign or reset the payment amount.
  15. 一种付款码获取设备,第一客户端位于所述设备,所述设备包括:A payment code acquisition device, where the first client is located, the device includes:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
    接收付款码开启指令;Receiving a payment code opening instruction;
    确定用户指定的授权额度;Determine the authorization amount specified by the user;
    根据所述授权额度获取付款码,以用于付款,其中,所述付款码的付款额度不超过所述授权额度。Obtaining a payment code according to the authorization amount for payment, wherein the payment amount of the payment code does not exceed the authorization amount.
  16. 一种支付请求响应设备,服务端位于所述设备,所述设备包括:A payment request response device, where the server is located, the device includes:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
    接收第二客户端通过扫描付款码发送的支付请求,其中,所述付款码的付款额度不超过第一客户端的用户指定的授权额度;Receiving, by the second client, a payment request sent by scanning a payment code, where the payment amount of the payment code does not exceed a user-specified authorization amount of the first client;
    校验所述支付请求对应的消费金额是否将导致所述付款额度用超;Verifying whether the amount of consumption corresponding to the payment request will cause the payment amount to be exceeded;
    根据校验结果响应所述支付请求。Responding to the payment request based on the verification result.
PCT/CN2019/070795 2018-01-12 2019-01-08 Payment code acquisition and payment request response method, apparatus and device WO2019137357A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810028999.9 2018-01-12
CN201810028999.9A CN108280645A (en) 2018-01-12 2018-01-12 The acquisition of payment code, payment request response method, device and equipment

Publications (1)

Publication Number Publication Date
WO2019137357A1 true WO2019137357A1 (en) 2019-07-18

Family

ID=62803519

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070795 WO2019137357A1 (en) 2018-01-12 2019-01-08 Payment code acquisition and payment request response method, apparatus and device

Country Status (3)

Country Link
CN (1) CN108280645A (en)
TW (1) TW201931244A (en)
WO (1) WO2019137357A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108280645A (en) * 2018-01-12 2018-07-13 阿里巴巴集团控股有限公司 The acquisition of payment code, payment request response method, device and equipment
CN111461696A (en) * 2020-03-31 2020-07-28 支付宝实验室(新加坡)有限公司 Payment code display method, payment equipment and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184603A (en) * 2009-12-23 2011-09-14 耐点科技有限公司 Processing method for electronic expense certification
CN105046496A (en) * 2015-08-27 2015-11-11 宇龙计算机通信科技(深圳)有限公司 Information processing method, apparatus and terminal
CN105989491A (en) * 2015-02-17 2016-10-05 孙宏铭 Dynamic authorization code generation method, device, payment transaction method and system
CN106940849A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 Data interactive method and device, offline credit payment method and device
CN108280645A (en) * 2018-01-12 2018-07-13 阿里巴巴集团控股有限公司 The acquisition of payment code, payment request response method, device and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101165716A (en) * 2006-10-16 2008-04-23 祁勇 Electronic payment procedure based on transaction code
US9785943B2 (en) * 2010-03-25 2017-10-10 Mastercard International Incorporated Methods for risk management in payment device system
CN106600284B (en) * 2016-12-22 2020-09-04 Tcl科技集团股份有限公司 Credit line authorization method and device
CN106960341A (en) * 2017-03-23 2017-07-18 珠海市魅族科技有限公司 One kind pays sharing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184603A (en) * 2009-12-23 2011-09-14 耐点科技有限公司 Processing method for electronic expense certification
CN105989491A (en) * 2015-02-17 2016-10-05 孙宏铭 Dynamic authorization code generation method, device, payment transaction method and system
CN105046496A (en) * 2015-08-27 2015-11-11 宇龙计算机通信科技(深圳)有限公司 Information processing method, apparatus and terminal
CN106940849A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 Data interactive method and device, offline credit payment method and device
CN108280645A (en) * 2018-01-12 2018-07-13 阿里巴巴集团控股有限公司 The acquisition of payment code, payment request response method, device and equipment

Also Published As

Publication number Publication date
TW201931244A (en) 2019-08-01
CN108280645A (en) 2018-07-13

Similar Documents

Publication Publication Date Title
US11316702B2 (en) Verification-based service authorization
TWI676107B (en) Information interaction method and device
WO2019029455A1 (en) Payment method and apparatus and device thereof
WO2019196543A1 (en) Barcode image acquiring method, device, and equipment
WO2018103561A1 (en) Service processing method and device
TWI727212B (en) NFC portable device writing, payment method, device and equipment
WO2019134551A1 (en) Payment method, apparatus and device
WO2019165871A1 (en) Method and apparatus for displaying digital object identifier
WO2019137353A1 (en) Payment method, apparatus and device
US20200287891A1 (en) Electronic certificate transmission method, apparatus and device
WO2018188621A1 (en) Resource transmission method and apparatus
WO2019029456A1 (en) Information display method and apparatus
TW201935373A (en) Tax refund method, apparatus and device
CN109003071B (en) Payment method, device and equipment
WO2019137357A1 (en) Payment code acquisition and payment request response method, apparatus and device
TWI786252B (en) Payment method, device and equipment
WO2019214305A1 (en) Doi-based payment method, apparatus and device
WO2019109665A1 (en) Resource transfer verification method and apparatus, and electronic payment verification method and apparatus
WO2019154168A1 (en) Method and device for displaying identification code of application
US11080683B2 (en) DOI display and transaction information verification
WO2021184880A1 (en) Payment method and apparatus, and electronic device
WO2017167052A1 (en) Method and device for concealing user information contained in application
WO2019095855A1 (en) Method and apparatus for generating pay order information, and device
WO2017124935A1 (en) Affair processing method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19738928

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19738928

Country of ref document: EP

Kind code of ref document: A1