CN112801641B - Payment gateway purchase limiting control method and device, equipment and medium thereof - Google Patents

Payment gateway purchase limiting control method and device, equipment and medium thereof Download PDF

Info

Publication number
CN112801641B
CN112801641B CN202110160904.0A CN202110160904A CN112801641B CN 112801641 B CN112801641 B CN 112801641B CN 202110160904 A CN202110160904 A CN 202110160904A CN 112801641 B CN112801641 B CN 112801641B
Authority
CN
China
Prior art keywords
configuration information
order
purchase
instruction
limiting configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110160904.0A
Other languages
Chinese (zh)
Other versions
CN112801641A (en
Inventor
陈伟武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Juhui Information Technology Co ltd
Original Assignee
Guangzhou Juhui Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Juhui Information Technology Co ltd filed Critical Guangzhou Juhui Information Technology Co ltd
Priority to CN202110160904.0A priority Critical patent/CN112801641B/en
Publication of CN112801641A publication Critical patent/CN112801641A/en
Application granted granted Critical
Publication of CN112801641B publication Critical patent/CN112801641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/387Payment using discounts or coupons
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a payment gateway purchase limiting control method, a device, equipment and a medium thereof, wherein the method comprises the following steps: receiving an order placing instruction of a consumer in an online store, and obtaining order information; acquiring a plurality of purchase limiting configuration information of the same equity object of an online store, wherein the purchase limiting configuration information comprises matching conditions and the allocable total amount of equity objects; performing chain check on the plurality of limited purchase configuration information according to responsibility ordering: when the order information meets the matching condition of the ordered prior limited purchase configuration information and the distributable total quantity of the limited purchase configuration information is larger than the quantity of the used rights and interests of the corresponding cache, checking the latter limited purchase configuration information, and the like until all the limited purchase configuration information is checked, returning a true value, otherwise returning a false value and terminating the check; and executing a corresponding payment flow in response to the returned true or false value, and correspondingly adapting the transaction amount of the order placing instruction to the applicable or inapplicable equity object. The rights issuing system constructed by the application has high robustness.

Description

Payment gateway purchase limiting control method and device, equipment and medium thereof
Technical Field
The application relates to the technical field of Internet, in particular to a payment gateway purchase limit control method, and further relates to corresponding devices, equipment and nonvolatile storage media of the method.
Background
In the field of Internet e-commerce, an e-commerce platform and an online store under the e-commerce platform are provided with corresponding equity issuing services, and an equity issuing service system is provided to maintain the relationship between the e-commerce platform and the online store and a user, so that corresponding consumption equity is issued to the user, the enthusiasm of the user for online shopping in an application program of the e-commerce platform is improved, the liveness of the user in the e-commerce platform and the online store under the e-commerce platform is promoted, the viscosity of the user pair is improved, and therefore GMV conversion is brought.
Accordingly, the number of the consumption rights issued by the e-commerce platform is generally set to be corresponding, and the limited number of rights issuing activities can sometimes cause hunger marketing, so that the effect of improving the activity of stores and the sales of the promoted commodities is achieved.
When the consumption rights and interests set by the electronic commerce platform are limited and issued in the system at present, and when the user uses the system holes to consume for multiple times, huge economic losses of the electronic commerce platform and online stores are caused, so that the number of the online stores of the electronic commerce platform is reduced, and the operation of the electronic commerce platform is not facilitated.
Aiming at the security problem of limiting the rights issuing quantity on the e-commerce platform, the method is a problem to be solved in the field.
Disclosure of Invention
The primary purpose of the application is to provide a payment gateway purchase limit control method, a corresponding device, equipment and a nonvolatile storage medium thereof.
In order to achieve the purpose of the application, the following technical scheme is adopted:
the application provides a payment gateway purchase limit control method which is suitable for one of the purposes of the application, and comprises the following steps:
receiving an order placing instruction triggered by a consumer in an online store, and acquiring order information of an order placing commodity according to the order placing instruction;
acquiring a plurality of purchase limiting configuration information of the online store about the configuration of the same equity object, wherein the purchase limiting configuration information comprises a matching condition and the allocable total amount of the equity object under the matching condition;
performing chain check on the plurality of purchase-limited configuration information according to preset responsibility orders: when the order information meets the matching condition in the ordered prior purchase limiting configuration information and the corresponding distributable total amount of the purchase limiting configuration information is larger than the corresponding cached used rights and interests, sequentially executing the verification of the next purchase limiting configuration information, and the like until all the purchase limiting configuration information is executed and checked, returning a true value, otherwise returning a false value and terminating the verification;
and responding to the returned true value or false value to execute the payment flow corresponding to the order-placing instruction, and correspondingly enabling the transaction amount corresponding to the order-placing instruction to be applicable or inapplicable to the rights object.
In a further embodiment, in the step of executing the payment procedure corresponding to the order placing instruction in response to the returned true value or false value, and correspondingly making the transaction amount corresponding to the order placing instruction applicable or inapplicable to the equity object, when applicable, the number of used equity in the cache corresponding to each purchase limit configuration information is accumulated by one unit.
In a further embodiment, the matching condition of each purchase limit configuration information is selected from the following options: whether the payment channel contained in the order information of the order placing instruction is a specific channel, whether the consumption user contains an identifier which is drained through a third party interface, and whether the consumption user is a new user within a preset number of days.
In a further embodiment, the order information carries a payment channel specified by a consumer, the online store identifier and an activity identifier code, one of the purchase limiting configuration information is configured to use the payment channel for checking whether a payment channel adopted by the order placing instruction is a specific channel, and one of the purchase limiting configuration information is configured to use the online store identifier and the activity identifier code for checking whether the order placing instruction is matched with the online store identifier and the activity identifier code.
In a further embodiment, the step of executing the payment procedure corresponding to the order instruction in response to the returned true value or false value, and correspondingly adapting or disabling the transaction amount corresponding to the order instruction to the benefit object includes:
invoking a preset interface to acquire balance data in a personal account of a consumer user to which the order instruction belongs;
judging whether the balance data meets the transaction amount or not, if not, exiting, and if yes, executing the subsequent steps;
and when the balance data meets the transaction amount, deducting the balance data in the personal account of the user according to the transaction amount.
In a further embodiment, in the step of executing the payment procedure corresponding to the order placing instruction in response to the returned true value or false value, and correspondingly making the transaction amount corresponding to the order placing instruction applicable or inapplicable to the benefit object, when the transaction amount corresponding to the order placing instruction is applicable to the benefit object, a transaction completion notification is constructed and sent to the communication interface reserved by the user to which the order placing instruction belongs.
In a further embodiment, in the step of executing the payment procedure corresponding to the order placing instruction in response to the returned true value or false value, and correspondingly making the transaction amount corresponding to the order placing instruction applicable or inapplicable to the equity object, when the transaction amount is applicable to the equity object, exclusive access is performed to the cache corresponding to each purchase limiting configuration information, and the accumulating operation of the used equity amount in the cache is performed.
A payment gateway purchase limiting control apparatus according to the present application includes:
the instruction receiving unit is used for receiving an order placing instruction triggered by a consumer user in an online store and acquiring order information of the ordered commodity according to the order placing instruction;
the information acquisition unit is used for acquiring a plurality of purchase limiting configuration information configured by the online store about the same equity object, wherein the purchase limiting configuration information comprises a matching condition and the allocable total amount of the equity object under the matching condition;
an information verification unit for performing chain verification on the plurality of purchase-limited configuration information according to a preset responsibility order: when the order information meets the matching condition in the ordered prior purchase limiting configuration information and the corresponding distributable total amount of the purchase limiting configuration information is larger than the corresponding cached used rights and interests, sequentially executing the verification of the next purchase limiting configuration information, and the like until all the purchase limiting configuration information is executed and checked, returning a true value, otherwise returning a false value and terminating the verification;
and the flow execution unit is used for responding to the returned true value or false value to execute the payment flow corresponding to the order-placing instruction, and correspondingly enabling the transaction amount corresponding to the order-placing instruction to be applicable or inapplicable to the rights object.
In a preferred embodiment, the flow execution unit includes:
the data acquisition module is used for calling a preset interface and acquiring balance data in a personal account of a consumer to which the order instruction belongs;
the amount judging module is used for judging whether the balance data meets the transaction amount or not, if not, exiting, and if yes, executing the subsequent steps;
and the amount deduction module is used for deducting the balance data in the personal account of the user according to the transaction amount when the balance data meets the transaction amount.
An electronic device adapted to the object of the application comprises a central processor and a memory, said central processor being adapted to invoke the steps of running a computer program stored in said memory for executing said payment gateway purchase limit control method.
The application provides a non-volatile storage medium adapted to the purpose of the application, which stores a computer program implemented according to the payment gateway purchase limit control method, and the computer program executes the steps included in the corresponding method when being called and run by a computer.
Compared with the prior art, the application has the following advantages:
the application realizes the controllable security issuing of the rights and interests objects by constructing a chain type checking mechanism for the server. The server receives an order placing instruction sent by a consumer user, obtains order information of ordered commodities of a corresponding online store from the order placing instruction, obtains a plurality of purchase limiting configuration information of corresponding equity objects in the online store according to the order information, performs chained verification on the purchase limiting configuration information according to responsibility ordering, preferentially judges whether the order information meets the matching condition of the purchase limiting configuration information according to the purchase limiting configuration information at the forefront of ordering, judges whether the total distributable quantity of the purchase limiting configuration information is larger than the corresponding cached used equity quantity at the same time, when the judgment is met, performs verification of subsequent purchase limiting configuration information in ordering until all purchase limiting configuration information in ordering is verified, returns a true value, returns the false value and exits the verification if the order information does not meet any judgment, and after chained verification is completed, the server executes a corresponding transaction flow for the consumer user according to the returned value.
Through the logic, the server uniformly and sequentially judges whether the consumption user meets corresponding purchase limiting configuration information in a payment link, judges whether the consumption user meets corresponding matching conditions for obtaining corresponding rights and interests for consumption for a plurality of times, limits the quantity of rights and interests objects to be issued through the design of a cache, prevents the issued rights and interests objects from exceeding the preset limit issuing quantity, constructs a rights and interests quantity issuing limiting system with high robustness, prevents the user from obtaining rights and interests for a plurality of times by utilizing holes, causes economic losses of an electronic commerce platform and an online store, and is beneficial to the operation of electronic commerce of the electronic commerce platform and the online store.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a typical network deployment architecture according to an embodiment of the present application;
FIG. 2 is a flow chart of an exemplary embodiment of a payment gateway purchase limit control method of the present application;
FIG. 3 is a flowchart illustrating steps performed in step S14 of FIG. 2;
FIG. 4 is a functional block diagram of an exemplary embodiment of a payment gateway purchase limiting control apparatus of the present application;
fig. 5 is a basic structural block diagram of a computer device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As used herein, "client," "terminal device," and "terminal device" are understood by those skilled in the art to include both devices that include only wireless signal receivers without transmitting capabilities and devices that include receiving and transmitting hardware capable of two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device such as a personal computer, tablet, or the like, having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; a PCS (Personal Communications Service, personal communication system) that may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant ) that can include a radio frequency receiver, pager, internet/intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System ) receiver; a conventional laptop and/or palmtop computer or other appliance that has and/or includes a radio frequency receiver. As used herein, "client," "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or adapted and/or configured to operate locally and/or in a distributed fashion, at any other location(s) on earth and/or in space. As used herein, a "client," "terminal device," or "terminal device" may also be a communication terminal, an internet terminal, or a music/video playing terminal, for example, a PDA, a MID (Mobile Internet Device ), and/or a mobile phone with music/video playing function, or may also be a device such as a smart tv, a set top box, or the like.
The application refers to hardware such as a server, a client, a service node, etc., which essentially is an electronic device with personal computer and other functions, and is a hardware device with a central processing unit (including an arithmetic unit and a controller), a memory, an input device, an output device, etc., which are necessary components revealed by Feng Reyi man principle, etc., wherein a computer program is stored in the memory, and the central processing unit calls the program stored in the memory to run, executes instructions in the program, and interacts with the input and output devices, thereby completing specific functions.
It should be noted that the concept of the present application, called "server", is equally applicable to the case of server clusters. The servers should be logically partitioned, physically separate from each other but interface-callable, or integrated into a physical computer or group of computers, according to network deployment principles understood by those skilled in the art. Those skilled in the art will appreciate this variation and should not be construed as limiting the implementation of the network deployment approach of the present application.
Referring to fig. 1, the hardware base required for implementing the related technical solution of the present application may be deployed according to the architecture shown in the figure. The server 80 of the present application is deployed at the cloud as a service server, and may be responsible for further connecting to related data servers and other servers providing related support, so as to form a logically related service cluster, to provide services for related terminal devices, such as a smart phone 81 and a personal computer 82 shown in the figure, or a third party server (not shown). The smart phone and the personal computer can access the internet through a well-known network access mode, and establish a data communication link with the cloud server 80 so as to run a terminal application program related to the service provided by the server.
For the server, the application program is usually constructed as a service process, and a corresponding program interface is opened for remote call of the application program running on various terminal devices.
The application program referred to by the present application is generally meant to be an application program running on an electronic device such as a server or a terminal device, where the application program implements the related technical solution of the present application in a programmed manner, and the program code of the application program may be stored in a computer-readable nonvolatile storage medium in the form of computer executable instructions, and is called by a central processing unit to run in a memory, and the related device of the present application is constructed by the running of the application program on a computer.
Those skilled in the art will appreciate that: although the various methods of the present application are described based on the same concepts so as to be common to each other, the methods may be performed independently of each other unless specifically indicated otherwise. Similarly, for the various embodiments disclosed herein, all concepts described herein are presented based on the same general inventive concept, and thus, concepts described herein with respect to the same general inventive concept, and concepts that are merely convenient and appropriately modified, although different, should be interpreted as equivalents.
In an exemplary embodiment of the payment gateway purchase limit control method of the present application, it is implemented as a computer program running on a server, opening a program interface for external invocation, which may be invoked by an application program of the server or the terminal device. Referring to fig. 2, in the exemplary embodiment, the method specifically includes the following steps:
step S11, receiving an order placing instruction triggered by a consumer user in an online store, and acquiring order information of the ordered commodity according to the order placing instruction:
the server receives the order placing instruction triggered by the consumption user in the online store, and obtains order information of the ordered commodity corresponding to the consumption user from the order placing instruction.
The consumer user triggers an order placing event in the corresponding online store, generates the order placing instruction and sends the order placing instruction to the server, so that the server executes corresponding order placing operation for the consumer user according to the order placing execution.
The order information comprises a payment channel designated by a consumer, a user type of the consumer, a platform identifier to which the consumer belongs, an online store identifier of an online store consumed by the consumer, an activity identifier of a corresponding equity activity, and a transaction amount consumed by the consumer in the online store, so that a server matches the online store consumed by the consumer according to the activity identifier, determines a equity object of the online store according to the activity identifier, acquires a plurality of purchase limiting configuration information corresponding to the equity object, and judges the payment channel, the user type and the platform identifier in sequence according to each purchase limiting configuration information to determine whether the order information meets the issuing of the equity object, and if so, judges whether the order information is applicable to the equity object according to the transaction amount.
Step S12, a plurality of purchase limiting configuration information of the online store about the configuration of the same equity object is obtained, wherein the purchase limiting configuration information comprises a matching condition and the allocable total amount of the equity object under the matching condition:
the server determines an online store pointed by the order information according to the online store identification code contained in the order information, determines a benefit object pointed by the order information from a plurality of benefit objects of the online store according to the activity identification code contained in the order information, and further acquires a plurality of purchase limiting configuration information configured by the benefit object.
The purchase limiting configuration information comprises the corresponding matching condition and the distributable total amount of the associated equity object, so that the server judges whether the distributable total amount of the current equity object can meet equity objects required by the order information according to the distributable total amount, and judges the payment channel or user type or the platform identification in the order information according to the matching condition.
The online store contains a plurality of the equity objects, and the equity objects can be classified into types: the equity objects giving preferential price, equity objects giving points, equity objects giving gifts and the like are arranged in the online stores respectively, so that consumers are attracted to consume in the online stores.
Each rights object may accept constraints of a plurality of the purchase limiting configuration information, and each purchase limiting configuration information may be classified into: limiting purchases of a particular payment channel usage rights object, limiting purchases of a particular third party platform usage rights object, limiting purchases of a user type, and the like. The issuing of rights objects can be controlled through the purchase limiting configuration information, and economic losses of an electronic commerce platform and an online store caused by issuing too many rights objects are prevented.
Correspondingly, the matching conditions contained in the limited purchase configuration information correspond to the types of the matching conditions, and the types of the matching conditions can be divided into: judging whether a payment channel contained in the order information meets a preset specific channel, judging the user type of a user to which the order information belongs, judging a third party platform to which the order information belongs, and the like, so that a server judges the purchase limit matching information met by the order information according to the matching condition to limit issuing of rights and interests objects.
Step S13, performing chain check on the plurality of limited purchase configuration information according to preset responsibility ordering: when the order information meets the matching condition in the ordered prior purchase limiting configuration information and the corresponding distributable total amount of the purchase limiting configuration information is larger than the corresponding cached used rights and interests, sequentially executing the verification of the next purchase limiting configuration information, and the like until all the purchase limiting configuration information is executed and then returning a true value, otherwise returning a false value and terminating the verification:
and the server performs responsibility ordering on the plurality of purchase limiting configuration information corresponding to the equity object according to responsibility ordering information carried by the equity object so as to call each purchase limiting configuration information in sequence to execute the chain check on the payment channel, the platform identifier and the user information contained in the order information.
After the server performs the responsibility ordering on each of the limited purchase configuration information according to the responsibility ordering information, the chain check is performed on the information in the order information according to the order of each of the limited purchase configuration information in the responsibility ordering.
Specifically, the execution mode of the chain check is as follows: when the order information meets the matching condition contained in the first purchase limiting configuration information in the responsibility ordering and the current allocable total quantity is larger than the quantity of the used rights objects in the corresponding caches, checking the last purchase limiting configuration information after the purchase limiting configuration information is executed until the order information meets all the purchase limiting configuration information in the responsibility ordering, returning a true value, and if the order information does not meet the purchase limiting configuration information in any one of the responsibility ordering, returning a false value and exiting to perform the chain check for the order information. For example, if the first purchase limiting configuration information in the responsibility ordering limits the purchase limiting type of the usage rights object of the specific payment channel, judging whether the payment channel in the order information accords with the specific channel according to the specific channel specified by the matching condition in the configuration information, if yes, judging whether the distributable total amount contained in the purchase limiting configuration information is larger than the number of the used rights object in the corresponding cache, if yes, executing the verification of the purchase limiting configuration information next to the purchase limiting configuration information for the order information until all the purchase limiting configuration information in the responsibility ordering is verified, if not, returning a true value, and exiting the chained verification.
The responsibility ordering can be implemented by a weight ordering relation, namely, different weights are given to the purchase limiting configuration information, and then the weight ordering is used for ordering the purchase limiting configuration information to form a sequential link in chain type verification, so that the order verification according to the purchase limiting configuration information can be realized in a chain type verification mode.
The purchase limiting configuration information is provided with a corresponding buffer memory, and the buffer memory stores the number of used rights and interests representing rights and interests objects issued by the purchase limiting configuration information, namely the number of rights and interests objects which can be issued by each purchase limiting configuration information is preset, namely the distributable total amount. Each purchase limiting configuration information has the distributable total amount of the corresponding rights object, and when the difference value between the distributable total amount of the rights object corresponding to the purchase limiting configuration information and the used rights amount is zero, the purchase limiting configuration information can not continue to issue the rights object.
In one embodiment, the server monitors the total amount of the distributable items included in the purchase limiting configuration information of all the rights objects, and determines whether each total amount of the distributable items is equal to the corresponding number of the used rights according to the number of the used rights corresponding to each purchase limiting configuration information, and if the total amount of the distributable items of all the purchase limiting configuration information is equal to the corresponding number of the used rights, the rights objects are stopped from being issued.
Step S14, executing the payment process corresponding to the order instruction in response to the returned true value or false value, and correspondingly making the transaction amount corresponding to the order instruction applicable or inapplicable to the equity object:
and responding to the returned true value or false value by the chained verification, executing the payment flow appointed by the corresponding equity object for the order placing instruction by the server when the returned value is the true value, and executing the payment flow appointed by the corresponding equity object for the order placing instruction by the server when the returned value is the false value.
When the return is true, the server executes the payment process specified by the corresponding equity object for the order-placing instruction, and determines whether the transaction amount contained in the order information corresponding to the order-placing instruction is suitable for the equity object, referring to fig. 3, and the specific implementation steps are as follows:
step S141, calling a preset interface to acquire balance data in a personal account of a consumer to which the order instruction belongs:
and the server calls the preset interface of the service server which establishes a data communication link with the server to acquire the balance data in the personal account of the consumer to which the order instruction belongs.
The preset interface is provided by a service server to which a platform for establishing a data communication link by the server belongs, so that the server can acquire the balance data in the personal account of the consumption user to which the relative instruction belongs by calling the preset interface, thereby ensuring the data security of the personal account of the consumption user.
The consumption user is provided with the personal account, the personal account stores balance data of the consumption user, the personal account is generally deployed in a service server which belongs to a corresponding platform, and the server can acquire the balance data of the personal account which corresponds to the consumption user by calling the preset interface.
Step S142, judging whether the balance data meets the transaction amount, if not, exiting, if yes, executing the following steps:
and the server judges whether the balance data is larger than or equal to the transaction amount according to the transaction amount contained in the order information, if so, the server executes the subsequent steps for the order instruction, and if not, the server exits the judgment and sends a notification message for representing transaction failure to the consumer.
Step S143, when the balance data satisfies the transaction amount, deducting the balance data in the personal account of the user according to the transaction amount:
when the balance data is greater than or equal to the transaction amount, the server sends the transaction amount to the service server through the preset interface, so that the service server deducts the balance data in the personal account of the consumption user according to the transaction amount.
In one embodiment, when the transaction amount corresponding to the order instruction is applicable to the rights object, the server constructs a notification message for representing that the transaction is completed, and invokes a communication interface reserved by a consuming user to which the order instruction belongs, so as to send the notification message method to the consuming user through the communication interface.
In one embodiment, when the server determines that the transaction amount contained in the order information is applicable to the equity object, the server accumulates the number of used equity in the buffer memory corresponding to each purchase limit configuration information corresponding to the equity object by one unit.
In still another embodiment, when the server performs accumulation of the number of used rights and interests, exclusive access is performed to the caches corresponding to the purchase-limited configuration information, after the accumulation of the used data corresponding to the order instruction is completed, each cache is released, so that when the server issues rights and interests objects for executing orders other than the order instruction, corresponding exclusive access is performed to the caches, and by executing the exclusive access to the caches, confusion of data in the caches is prevented when the accumulation of the number of used rights and interests is performed to the caches at the same time.
Further, by performing the functionalization of each step in the method disclosed in the foregoing embodiments, a payment gateway purchase limit control apparatus of the present application may be constructed, and in this way, referring to fig. 4, in one exemplary embodiment, the apparatus includes: instruction receiving unit 11, information acquiring unit 12, information checking unit 13, and flow executing unit 14. The instruction receiving unit 11 is configured to receive an order placing instruction triggered by a consumer in an online store, and obtain order information of an order placing commodity according to the order placing instruction; an information obtaining unit 12, configured to obtain a plurality of purchase limiting configuration information about the same rights object configuration of the online store, where the purchase limiting configuration information includes a matching condition and an assignable total amount of the rights object under the matching condition; an information verification unit 13 for performing chain verification on the plurality of purchase-limited configuration information in accordance with a preset responsibility order: when the order information meets the matching condition in the ordered prior purchase limiting configuration information and the corresponding distributable total amount of the purchase limiting configuration information is larger than the corresponding cached used rights and interests, sequentially executing the verification of the next purchase limiting configuration information, and the like until all the purchase limiting configuration information is executed and checked, returning a true value, otherwise returning a false value and terminating the verification; the flow execution unit 14 is configured to execute the payment flow corresponding to the order instruction in response to the returned true value or false value, and accordingly make the transaction amount corresponding to the order instruction applicable or inapplicable to the benefit object.
In one embodiment, the flow execution unit includes: the data acquisition module is used for calling a preset interface and acquiring balance data in a personal account of a consumer to which the order instruction belongs; the amount judging module is used for judging whether the balance data meets the transaction amount or not, if not, exiting, and if yes, executing the subsequent steps; and the amount deduction module is used for deducting the balance data in the personal account of the user according to the transaction amount when the balance data meets the transaction amount.
In order to solve the technical problem, the embodiment of the application also provides a computer device for running a computer program realized according to the payment gateway purchase limit control method. Referring specifically to fig. 5, fig. 5 is a basic structural block diagram of a computer device according to the present embodiment.
As shown in fig. 5, the internal structure of the computer device is schematically shown. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The nonvolatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store a control information sequence, and the computer readable instructions can enable the processor to realize a payment gateway purchase limit control method when being executed by the processor. The processor of the computer device is used to provide computing and control capabilities, supporting the operation of the entire computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a payment gateway purchase limit control method. The network interface of the computer device is for communicating with a terminal connection. It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of each module/sub-module in the payment gateway purchase limit control apparatus of the present application, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission between the user terminal or the server. The memory in this embodiment stores program codes and data required for executing all modules/sub-modules in the payment gateway purchase limiting control apparatus, and the server can call the program codes and data of the server to execute the functions of all sub-modules.
The present application also provides a non-volatile storage medium, wherein the payment gateway purchase limit control method is written as a computer program, and the computer program is stored in the storage medium in the form of computer readable instructions, and when the computer readable instructions are executed by one or more processors, the program means that the program runs in a computer, thereby causing the one or more processors to execute the steps of the payment gateway purchase limit control method in any one of the embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
In summary, the application constructs a high-robustness rights and interests quantity method limiting system, and judges whether the consuming user has rights and interests in the payment link for multiple times by constructing the chain checking capability for the server, and limits the quantity distribution of each rights and interests object by the buffer design, thereby preventing the user from obtaining rights and interests for multiple times by utilizing the loopholes, causing economic losses of the e-commerce platform and the online store, and facilitating the operation of the e-commerce platform and the e-commerce of the online store.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
Those of skill in the art will appreciate that the various operations, methods, steps in the flow, acts, schemes, and alternatives discussed in the present application may be alternated, altered, combined, or eliminated. Further, other steps, means, or steps in a process having various operations, methods, or procedures discussed herein may be alternated, altered, rearranged, disassembled, combined, or eliminated. Further, steps, measures, schemes in the prior art with various operations, methods, flows disclosed in the present application may also be alternated, altered, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.

Claims (10)

1. The payment gateway purchase limiting control method is characterized by comprising the following steps of:
receiving an order placing instruction triggered by a consumer in an online store, and acquiring order information of an order placing commodity according to the order placing instruction;
acquiring a plurality of purchase limiting configuration information of the online store about the configuration of the same equity object, wherein the purchase limiting configuration information comprises a matching condition and the allocable total amount of the equity object under the matching condition;
performing chain check on the plurality of purchase-limited configuration information according to preset responsibility orders: when the order information meets the matching condition in the ordered prior purchase limiting configuration information and the corresponding distributable total amount of the purchase limiting configuration information is larger than the corresponding cached used rights and interests, sequentially executing the verification of the next purchase limiting configuration information, and the like until all the purchase limiting configuration information is executed and checked, returning a true value, otherwise returning a false value and terminating the verification;
and responding to the returned true value or false value to execute the payment flow corresponding to the order-placing instruction, and correspondingly enabling the transaction amount corresponding to the order-placing instruction to be applicable or inapplicable to the rights object.
2. The method of claim 1, wherein the payment process corresponding to the order instruction is executed in response to a returned true or false value, and wherein the step of adapting or disabling the transaction amount corresponding to the order instruction is performed by accumulating the number of used rights in the cache corresponding to each purchase-limited configuration information by one unit when applicable.
3. The method of claim 1, wherein the matching condition of each of the purchase-limited configuration information is selected from the following options: whether the payment channel contained in the order information of the order placing instruction is a specific channel, whether the consumption user contains an identifier which is drained through a third party interface, and whether the consumption user is a new user within a preset number of days.
4. The method of claim 1, wherein the order information carries a payment channel specified by a consuming user, the online store identification, and an activity identification code, wherein one of the purchase limiting configuration information is configured to use the payment channel for checking whether a payment channel employed by the order placement instruction is a specific channel, and wherein one of the purchase limiting configuration information is configured to use the online store identification and the activity code identification for checking whether the order placement instruction matches the online store identification and the activity code identification.
5. The method of claim 1, wherein executing the payment process corresponding to the order instruction in response to the returned true or false value, respectively, causes the transaction amount corresponding to the order instruction to be applicable or inapplicable to the equity object, comprises:
invoking a preset interface to acquire balance data in a personal account of a consumer user to which the order instruction belongs;
judging whether the balance data meets the transaction amount or not, if not, exiting, and if yes, executing the subsequent steps;
and when the balance data meets the transaction amount, deducting the balance data in the personal account of the user according to the transaction amount.
6. The method according to any one of claims 1 to 4, wherein in the step of executing the payment procedure corresponding to the order instruction in response to the returned true or false value, and correspondingly adapting or disabling the transaction amount corresponding to the order instruction to the equity object, when the transaction amount corresponding to the order instruction is adapted to the equity object, a transaction completion notification is constructed and sent to the communication interface reserved by the user to which the order instruction belongs.
7. The method according to claim 1, wherein in the step of executing the payment procedure corresponding to the order instruction in response to the returned true value or false value, and correspondingly making the transaction amount corresponding to the order instruction applicable or inapplicable to the equity object, when the transaction amount is applicable to the equity object, exclusive access is performed to the cache corresponding to each purchase-limited configuration information, and the accumulation operation of the used equity amount in the cache is performed.
8. A payment gateway purchase limiting control device, characterized in that it comprises:
the instruction receiving unit is used for receiving an order placing instruction triggered by a consumer user in an online store and acquiring order information of the ordered commodity according to the order placing instruction;
the information acquisition unit is used for acquiring a plurality of purchase limiting configuration information configured by the online store about the same equity object, wherein the purchase limiting configuration information comprises a matching condition and the allocable total amount of the equity object under the matching condition;
an information verification unit for performing chain verification on the plurality of purchase-limited configuration information according to a preset responsibility order: when the order information meets the matching condition in the ordered prior purchase limiting configuration information and the corresponding distributable total amount of the purchase limiting configuration information is larger than the corresponding cached used rights and interests, sequentially executing the verification of the next purchase limiting configuration information, and the like until all the purchase limiting configuration information is executed and checked, returning a true value, otherwise returning a false value and terminating the verification;
and the flow execution unit is used for responding to the returned true value or false value to execute the payment flow corresponding to the order-placing instruction, and correspondingly enabling the transaction amount corresponding to the order-placing instruction to be applicable or inapplicable to the rights object.
9. An electronic device comprising a central processor and a memory, characterized in that the central processor is adapted to invoke a computer program stored in the memory for performing the steps of the method according to any of claims 1 to 7.
10. A non-volatile storage medium, characterized in that it stores in the form of computer readable instructions a computer program implemented according to the method of any one of claims 1 to 7, which when invoked by a computer, performs the steps comprised by the method.
CN202110160904.0A 2021-02-05 2021-02-05 Payment gateway purchase limiting control method and device, equipment and medium thereof Active CN112801641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110160904.0A CN112801641B (en) 2021-02-05 2021-02-05 Payment gateway purchase limiting control method and device, equipment and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110160904.0A CN112801641B (en) 2021-02-05 2021-02-05 Payment gateway purchase limiting control method and device, equipment and medium thereof

Publications (2)

Publication Number Publication Date
CN112801641A CN112801641A (en) 2021-05-14
CN112801641B true CN112801641B (en) 2023-09-19

Family

ID=75814358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110160904.0A Active CN112801641B (en) 2021-02-05 2021-02-05 Payment gateway purchase limiting control method and device, equipment and medium thereof

Country Status (1)

Country Link
CN (1) CN112801641B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104011754A (en) * 2011-10-04 2014-08-27 奥利弗·C·梅赫勒 Method For Handling Electronic Vouchers
CN104077694A (en) * 2013-03-27 2014-10-01 阿里巴巴集团控股有限公司 User right and interest information processing method and system
CN106599169A (en) * 2016-12-09 2017-04-26 北京奇虎科技有限公司 Processing method and processing device of purchase request in network transaction
CN106779632A (en) * 2016-12-21 2017-05-31 世纪禾光科技发展(北京)有限公司 According to the method and apparatus that control category information selects payment gateway
CN109064255A (en) * 2018-07-05 2018-12-21 厦门微芽互娱科技有限公司 Product is prescribed a time limit method of commerce, medium, terminal device and system
WO2019051866A1 (en) * 2017-09-15 2019-03-21 平安科技(深圳)有限公司 Right and interest information management method, device, and apparatus, and computer-readable storage medium
CN110163586A (en) * 2019-04-03 2019-08-23 阿里巴巴集团控股有限公司 The method, device and equipment of transaction payment and reimbursement processing
CN110288342A (en) * 2019-06-21 2019-09-27 口碑(上海)信息技术有限公司 A kind of electronic ticket checks and writes off method and device
CN110544094A (en) * 2019-08-29 2019-12-06 河南迅购邦电子商务有限公司 Using method for controlling red envelope based on number of purchased commodities
CN111279663A (en) * 2017-11-01 2020-06-12 国际商业机器公司 Postponing entropy depletion in a key management system having a hardware security module
CN111695900A (en) * 2020-06-12 2020-09-22 腾讯科技(深圳)有限公司 Bill data verification method and device, storage medium and electronic device
CN112132650A (en) * 2020-09-02 2020-12-25 绿瘦健康产业集团有限公司 Online shopping verification method, device, medium and terminal equipment
CN112184363A (en) * 2020-09-07 2021-01-05 珠海格力电器股份有限公司 Shopping information processing method, device, equipment and medium
CN112200595A (en) * 2019-07-08 2021-01-08 顺丰科技有限公司 Coupon checking method, payment method, device, equipment and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120303438A1 (en) * 2011-05-23 2012-11-29 Microsoft Corporation Post paid coupons
US20160335641A1 (en) * 2015-05-13 2016-11-17 Mastercard International Incorporated Enhanced payment card platform

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104011754A (en) * 2011-10-04 2014-08-27 奥利弗·C·梅赫勒 Method For Handling Electronic Vouchers
CN104077694A (en) * 2013-03-27 2014-10-01 阿里巴巴集团控股有限公司 User right and interest information processing method and system
CN106599169A (en) * 2016-12-09 2017-04-26 北京奇虎科技有限公司 Processing method and processing device of purchase request in network transaction
CN106779632A (en) * 2016-12-21 2017-05-31 世纪禾光科技发展(北京)有限公司 According to the method and apparatus that control category information selects payment gateway
WO2019051866A1 (en) * 2017-09-15 2019-03-21 平安科技(深圳)有限公司 Right and interest information management method, device, and apparatus, and computer-readable storage medium
CN111279663A (en) * 2017-11-01 2020-06-12 国际商业机器公司 Postponing entropy depletion in a key management system having a hardware security module
CN109064255A (en) * 2018-07-05 2018-12-21 厦门微芽互娱科技有限公司 Product is prescribed a time limit method of commerce, medium, terminal device and system
CN110163586A (en) * 2019-04-03 2019-08-23 阿里巴巴集团控股有限公司 The method, device and equipment of transaction payment and reimbursement processing
CN110288342A (en) * 2019-06-21 2019-09-27 口碑(上海)信息技术有限公司 A kind of electronic ticket checks and writes off method and device
CN112200595A (en) * 2019-07-08 2021-01-08 顺丰科技有限公司 Coupon checking method, payment method, device, equipment and medium
CN110544094A (en) * 2019-08-29 2019-12-06 河南迅购邦电子商务有限公司 Using method for controlling red envelope based on number of purchased commodities
CN111695900A (en) * 2020-06-12 2020-09-22 腾讯科技(深圳)有限公司 Bill data verification method and device, storage medium and electronic device
CN112132650A (en) * 2020-09-02 2020-12-25 绿瘦健康产业集团有限公司 Online shopping verification method, device, medium and terminal equipment
CN112184363A (en) * 2020-09-07 2021-01-05 珠海格力电器股份有限公司 Shopping information processing method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
微信***还款开征手续费 第三方支付"薅羊毛"时代一去不返;郑巍;;计算机与网络(第17期);第16-18页 *
电商不同类型促销对购买行为的长期影响――以亚马逊电子书为例;郭国庆;雷羽尚;杨海龙;;经济管理(第04期);第108-125页 *

Also Published As

Publication number Publication date
CN112801641A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
US20190295036A1 (en) Method and apparatus for planning route
CN102760259A (en) Online payment method and device
CN105931036A (en) Payment method and device
CN106548261A (en) A kind of Business Process Control method, device and electronic equipment
CN111247550A (en) Computerized transaction management module for blockchain networks
CN112433863A (en) Micro-service calling method and device, terminal equipment and storage medium
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN113691511B (en) Service request processing method and device, equipment and medium thereof
CN101673217A (en) Method for realizing remote program call and system thereof
CN110223179A (en) The data processing method of fund, device, system, medium
CN112488770A (en) Transaction pricing control method and device, equipment and medium thereof
CN109345249A (en) A kind of payment fail processing method and device
CN112801641B (en) Payment gateway purchase limiting control method and device, equipment and medium thereof
JP2023521215A (en) Method, device and system for outbound control
CN106875231A (en) A kind of reward voucher application method and device
CN112862500A (en) Dynamic assembling method for user interest processor, device, equipment and medium thereof
CN112966188B (en) Method, device, equipment and medium for updating state of collection commodity
CN114064311A (en) Message agent transmission control method and device, equipment, medium and product thereof
CN114004701A (en) Method and device for generating transaction result, electronic equipment and storage medium
CN114155091A (en) Financing method, device and system based on block chain
CN112883300B (en) Function label customizing method and device, equipment and medium thereof
CN113780650A (en) Transport capacity locking method, device, equipment and storage medium
CN112907278B (en) Rights object distribution control method and device, equipment and medium thereof
CN111881148A (en) Object combination attribute determination method and device and electronic equipment
CN112860742B (en) Centralized rule engine service calling and controlling method and device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant