CN110928785A - Preferential payment testing method and device - Google Patents

Preferential payment testing method and device Download PDF

Info

Publication number
CN110928785A
CN110928785A CN201911148478.8A CN201911148478A CN110928785A CN 110928785 A CN110928785 A CN 110928785A CN 201911148478 A CN201911148478 A CN 201911148478A CN 110928785 A CN110928785 A CN 110928785A
Authority
CN
China
Prior art keywords
payment
discount
information
message
discount information
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.)
Granted
Application number
CN201911148478.8A
Other languages
Chinese (zh)
Other versions
CN110928785B (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201911148478.8A priority Critical patent/CN110928785B/en
Publication of CN110928785A publication Critical patent/CN110928785A/en
Application granted granted Critical
Publication of CN110928785B publication Critical patent/CN110928785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a test method and a device for preferential payment, wherein the method comprises the following steps: when a payment test instruction is received, acquiring each piece of payment discount information corresponding to the payment test instruction in a preset payment discount system; according to a preset payment message assembly rule, forming a preferential payment message by using each payment preferential message information; sending the preferential payment message to a preset account deduction system, and triggering the account deduction system to carry out account deduction according to the preferential payment message; and analyzing the account deduction message fed back by the account deduction system, judging the effective state of each payment discount message according to each account deduction discount message in the account deduction message, obtaining the judgment result of each payment discount message, and finishing the discount payment test corresponding to the payment test instruction. By using the preset payment discount information in the payment discount system, a discount payment test link is shortened, a more convenient test environment is provided, and the test cost input is reduced.

Description

Preferential payment testing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for testing preferential payment.
Background
The online shopping becomes a common shopping and consumption mode of people, and a plurality of merchants or payment platforms provide a plurality of interest offering activities for consumers in order to expand the market. In order to open the consumption market, various big banks put forward a plurality of payment preferential activities, such as full reduction, random reduction, discount or incentive money and red envelope, etc. payment preferential activities; thereby attracting consumers and expanding the use groups.
When each large bank releases payment offer activities to consumer groups, the payment offers need to be tested to ensure that the payment offers can be used in practice. When the test of the payment preference is carried out, the payment preference test system needs to be connected to an external system of a bank system and carries out the test according to data in the external system; the testing mode needs cross-system external connection, so that a tested link is lengthened, the testing inconvenience is increased, and the input time and labor cost are high.
Disclosure of Invention
In view of this, the present invention provides a method for testing preferential payment, which can shorten a test link for performing preferential payment and reduce test time for performing preferential payment, thereby reducing input cost during testing. The invention also provides a test device for preferential payment, which is used for supporting the application of the method in practice.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for testing preferential payment includes:
when a payment test instruction for performing a discount payment test is received, acquiring each piece of payment discount information corresponding to the payment test instruction in a preset payment discount system;
according to a preset payment message assembly rule, assembling each payment discount information into a discount payment message corresponding to the payment test instruction;
sending the preferential payment message to a preset account deduction system, triggering the account deduction system to carry out account deduction according to the preferential payment message, and generating a corresponding account deduction message;
acquiring the account deduction message fed back by the account deduction system, analyzing the account deduction message, and determining each account deduction preferential information in the account deduction message;
determining the corresponding account deduction discount information of each payment discount information in the account deduction message;
and judging the effective state of each payment discount information according to the account deduction discount information corresponding to each payment discount information to obtain the judgment result of each payment discount information so as to finish the discount payment test corresponding to the payment test instruction.
Optionally, the method includes, in the setting process of the payment offer information:
determining each preferential type information and each preferential limitation information set according to a preset preferential rule;
and associating and combining each piece of the offer type information and each piece of the offer restriction information according to a preset offer association rule to obtain each piece of combined offer combination information, and generating payment offer information corresponding to each piece of the offer combination information.
Optionally, the obtaining of each payment offer information corresponding to the payment test instruction in the preset payment offer system includes:
analyzing the payment test instruction to obtain each preferential identification in the payment test instruction;
determining each piece of payment discount information in a preset payment discount system;
and traversing each discount identifier through each payment discount information in sequence to determine the payment discount information corresponding to each discount identifier.
Optionally, the determining, according to the discount offer information corresponding to each payment offer information, an effective state of each payment offer information includes:
comparing each payment discount information with the corresponding account deduction discount information, and judging whether the payment discount information is consistent with the corresponding account deduction discount information;
when the payment discount information is compared with the discount information, determining that the effective state of the payment discount information is successful;
and when the comparison of the payment discount information and the account deduction discount information is inconsistent, determining that the effective state of the payment discount information is failure.
The above method, optionally, further includes:
assembling the judgment results of the payment discount information into a feedback message, and sending the feedback message to a preset display device;
and triggering the display equipment to display the judgment result of each payment discount information in the feedback message.
A test device for preferential payment, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a payment processing unit, wherein the first acquisition unit is used for acquiring payment discount information corresponding to a payment test instruction in a preset payment discount system when the payment test instruction for performing a discount payment test is received;
the assembling unit is used for assembling each payment discount information into a discount payment message corresponding to the payment test instruction according to a preset payment message assembling rule;
the triggering unit is used for sending the preferential payment message to a preset account deduction system, triggering the account deduction system to carry out account deduction according to the preferential payment message and generating a corresponding account deduction message;
a second obtaining unit, configured to obtain the account deduction message fed back by the account deduction system, analyze the account deduction message, and determine each account deduction discount information in the account deduction message;
a first determining unit, configured to determine the account deduction discount information corresponding to each piece of payment discount information in the account deduction message;
and the judging unit is used for judging the effective state of each payment discount information according to the discount information corresponding to each payment discount information to obtain the judgment result of each payment discount information so as to finish the discount payment test corresponding to the payment test instruction.
The above apparatus, optionally, further comprises:
the second determining unit is used for determining each piece of discount type information and each piece of discount limit information which are set according to a preset discount rule;
and the generating unit is used for associating and combining each piece of the offer type information and each piece of the offer restriction information according to a preset offer association rule to obtain each piece of combined offer combination information and generate payment offer information corresponding to each piece of the offer combination information.
The above apparatus, optionally, the first obtaining unit includes:
the analysis subunit is used for analyzing the payment test instruction to obtain each discount identifier in the payment test instruction;
the first determining subunit is used for determining each piece of payment discount information in a preset payment discount system;
and the traversal subunit is used for sequentially traversing each piece of payment discount information by each discount identifier so as to determine the payment discount information corresponding to each discount identifier.
The above apparatus, optionally, the determining unit includes:
the comparison subunit is used for comparing each piece of payment discount information with the corresponding account deduction discount information and judging whether the payment discount information is consistent with the corresponding account deduction discount information;
the second determining subunit is used for determining that the effective state of the payment discount information is successful when the payment discount information is compared with the discount information;
and the third determining subunit is configured to determine that the valid state of the payment discount information is a failure when the comparison between the payment discount information and the discount information is inconsistent.
The above apparatus, optionally, further comprises:
the sending unit is used for assembling the judgment result of each payment discount information into a feedback message and sending the feedback message to a preset display device;
and the display unit is used for triggering the display equipment to display the judgment result of each payment discount information in the feedback message.
Compared with the prior art, the invention has the following advantages:
the invention provides a test method of preferential payment, which comprises the following steps: when a payment test instruction for performing a discount payment test is received, acquiring each payment discount information corresponding to the payment test instruction in a preset payment discount system, and assembling each payment discount information into a discount payment message corresponding to the payment test instruction according to a preset payment message assembly rule; sending the preferential payment message to a preset account deduction system, and triggering the account deduction system to carry out account deduction according to the preferential payment message; analyzing the account deduction message fed back by the account deduction system to obtain each account deduction discount information in the account deduction message, judging the effective state of each payment discount information according to each account deduction discount information, and obtaining the judgment result of each payment discount information to finish the discount payment test corresponding to the payment test instruction. By applying the method provided by the invention, the preset payment discount system is applied, the link of the discount payment test is shortened, the time period for testing is shortened, a more convenient testing environment is provided for developers, and the input cost during testing is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing a coupon payment according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for testing a coupon payment according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for testing a coupon payment according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a test apparatus for preferential payment according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The present invention is applicable in a wide variety of general purpose or courageous computing device environments or configurations. For example: personal computers, server computers, multiprocessor devices, distributed computing environments that include any of the above devices or apparatus, and the like.
The embodiment of the invention provides a test method of preferential payment, which can be used for testing various preferential strategies formulated by banks, an execution subject can be a server of a computer terminal or a processor of various mobile devices, the flow of the method is shown in figure 1, and the following specific description is provided:
s101, when a payment test instruction for performing a discount payment test is received, obtaining payment discount information corresponding to the payment test instruction in a preset payment discount system.
In the method provided by the embodiment of the invention, when a payment test instruction for performing a preferential payment test sent by a developer is received, each piece of payment preferential information corresponding to the payment test instruction is acquired in a preset payment preferential system, a plurality of pieces of payment preferential information are preset in the payment preferential system, and the payment preferential information comprises information such as the amount of money saved during payment. It should be noted that the payment privilege system is an internal system constructed by developers, and is only applied to the test of privilege payment.
And S102, assembling each payment discount information into a discount payment message corresponding to the payment test instruction according to a preset payment message assembling rule.
In the method provided by the embodiment of the present invention, a preset payment message assembly rule is determined, it should be noted that the payment message assembly rules of different merchants and different application software may be different, for example, when the pushed-out preferential activity is applied to a mobile phone bank, the applied payment message assembly rule is a payment message assembly rule corresponding to the mobile phone bank; and when the pushed-out preferential activity is applied to the webpage, the applied payment message assembly rule is the payment message assembly rule corresponding to the webpage. And assembling the acquired payment preferential information into a preferential payment message according to a preset payment message assembling rule, wherein the preferential payment message corresponds to the payment testing instruction.
S103, sending the preferential payment message to a preset account deduction system, triggering the account deduction system to deduct accounts according to the preferential payment message, and generating a corresponding account deduction message.
In the method provided by the embodiment of the invention, the generated preferential payment message is sent to a preset account deduction system, the account deduction system is triggered to carry out account deduction according to the preferential payment message, and a corresponding account deduction message is generated. It should be noted that the deduction system may be a payment platform provided by a bank, such as a mobile banking; and the account deducting system deducts the fee in the corresponding account according to the received preferential payment message and generates a corresponding account deducting message.
S104, obtaining the account deduction message fed back by the account deduction system, analyzing the account deduction message, and determining each account deduction preferential information in the account deduction message.
In the method provided by the embodiment of the invention, the account deduction message fed back by the account deduction system after deduction according to the preferential payment message is received, the account deduction message is analyzed, and each account deduction preferential information in the account deduction message is obtained, wherein the account deduction preferential information is specific information when the account deduction system deducts accounts.
S105, determining the corresponding account deduction discount information of each payment discount information in the account deduction message.
In the method provided by the embodiment of the invention, each preferential payment information in the preferential payment message is determined, and the corresponding account deduction preferential information of each preferential payment information in the account deduction message is determined; it should be noted that, each of the preferential payment information has corresponding discount offer information.
S106, according to the discount information corresponding to each payment discount information, judging the effective state of each payment discount information, and obtaining the judgment result of each payment discount information so as to finish the discount payment test corresponding to the payment test instruction.
In the method provided by the embodiment of the invention, the effective state of each payment discount information is judged according to the discount information corresponding to each payment discount information, the effective result of each payment discount information is determined according to the judgment result of each payment discount information, and the discount payment test corresponding to the payment test instruction is completed.
In the method provided by the embodiment of the invention, when a payment test instruction for performing a discount payment test is received, each piece of payment discount information corresponding to the payment test instruction in a preset payment discount system is obtained; generating a preferential payment message corresponding to the payment test instruction according to a preset payment message assembly rule; sending the preferential payment message to a preset account deduction system, triggering the account deduction system to carry out account deduction according to the preferential payment message, and generating a corresponding account deduction message; and analyzing the account deduction message fed back by the account deduction system to obtain account deduction preferential information in the account deduction message, determining the account deduction preferential information corresponding to each payment preferential information, and judging the generation state of each payment preferential information according to the account deduction preferential information to finish the preferential payment test corresponding to the payment test instruction. In the method provided by the invention, the corresponding preferential payment message is generated by applying the preset payment preferential information in the payment preferential system, and then the effective state of each preferential payment message in the preferential payment message is judged according to the account deduction message generated by carrying out account deduction by the account deduction system according to the preferential payment message, so that the preferential payment test corresponding to the payment test instruction is completed, and therefore, test data of other systems are not required to be obtained, the test of the preferential payment by developers is more convenient and fast, the test link is shortened, and the test investment time and the labor cost are reduced.
In the method provided by the embodiment of the present invention, the payment offer information in the payment offer test system is preset, and the setting process of the payment offer information is as shown in fig. 2, which is specifically described as follows:
s201, determining each preferential type information and each preferential limitation information set according to a preset preferential rule.
In the method provided by the embodiment of the invention, a preset discount rule is determined, and each discount type information and each discount limit information are set according to the discount rule; it should be noted that the offer rules correspond to different offer rules at different merchants; for example, when the method is applied to a discount payment test of the Unionpay, corresponding discount types and discount limit information are generated according to discount rules provided by the Unionpay; it should be noted that the offer type information includes, but is not limited to, information such as full reduction, random reduction, discount, incentive bonus packet, etc., and the offer restriction information includes, but is not limited to, information such as card type, maximum number of offers, maximum amount of offers, and customer rating.
S202, according to a preset discount association rule, associating and combining each piece of discount type information and each piece of discount limit information to obtain each piece of combined discount combination information, and generating payment discount information corresponding to each piece of discount combination information.
In the method provided by the embodiment of the invention, a preset discount association rule is determined, each discount type information and each discount limit information are associated and combined according to the discount association rule to obtain each discount combination information, and payment discount information corresponding to each discount combination information is generated.
In the method provided by the embodiment of the present invention, to specifically describe a specific process of generating the payment offer information, a specific example is used here to describe:
determining a discount rule provided by the Unionpay, wherein the discount type information in the discount rule comprises: full subtraction and random subtraction; the preferential restriction information in the preferential rule comprises a card type and a maximum preferential amount; determining a preset discount association rule, and combining each piece of the discount type information with each piece of the discount limit information according to the preset discount association rule to obtain discount combination information, for example: preferential combination information 1: fully subtracting + card type + maximum preferential amount; preferential combination information 2: randomly subtracting the maximum preferential amount; generating payment discount information 1 and payment discount information 2 according to the discount combination information, wherein the specific content of the payment discount information 1 can be that the maximum discount quota for carrying out full reduction is 100 yuan when the card type is a gold card; the specific content of the payment preference information 2 may be 8 yuan when the maximum amount is randomly decreased.
In the method used by the embodiment of the invention, the payment discount information is set in the payment discount system in advance, so that data support is provided for the developer to carry out the payment discount test.
In the method provided by the embodiment of the present invention, when a payment test instruction is received, each piece of payment offer information corresponding to the payment test instruction in a preset payment offer system is obtained, and a specific obtaining process may refer to fig. 3, which specifically describes the following:
s301, analyzing the payment test instruction, and acquiring each preference mark in the payment test instruction.
In the method provided by the embodiment of the invention, the received payment test instruction is analyzed to obtain each preferential mark in the payment test instruction; the offer identifier is used for determining corresponding payment offer information in a payment offer system.
S302, determining each piece of payment discount information in a preset payment discount system.
In the method provided by the embodiment of the invention, each piece of payment discount information in a preset payment discount system is determined, each piece of payment discount information is stored with a preset identification, and the preset identification is the only identification of the payment discount information.
S303, traversing each piece of payment discount information of each discount identifier in sequence to determine the payment discount information corresponding to each discount identifier.
In the method provided by the embodiment of the invention, each discount identifier sequentially traverses the preset identifier of each payment discount information, and when the payment discount information corresponding to the preset identifier which is consistent with the discount identifier is determined as the payment discount information corresponding to the discount identifier.
In the method provided by the embodiment of the present invention, after obtaining each payment discount information corresponding to the payment test instruction, each payment discount information is combined into a payment discount message, and the payment discount message is sent to a preset withholding system, the withholding system and the payment discount message are triggered to carry out withholding, an withholding message fed back by the withholding system is received, and the effective state of each payment discount information in the payment discount message is determined according to each withholding discount information in the withholding message, and the specific determination process is as follows:
comparing each payment discount information with the corresponding account deduction discount information, and judging whether the payment discount information is consistent with the corresponding account deduction discount information;
when the payment discount information is compared with the discount information, determining that the effective state of the payment discount information is successful; for example, the payment coupon information contained in the payment coupon message sent to the deduction system is 200 yuan minus 20 yuan, and the amount of the deduction fee is 210 yuan; and when the account deducting system deducts the account according to the payment discount message, the generated account deducting message contains the account deducting discount information which is 200 yuan minus 20 yuan, and the actual deduction amount is 190 yuan, the payment discount information is judged to be successful in effect.
When the comparison of the payment discount information and the account deduction discount information is inconsistent, determining that the effective state of the payment discount information is failure; for example, the payment discount information contained in the payment discount message sent to the deduction system is randomly reduced by 0.5%, the random reduction time is at most reduced by 8 yuan, the total 150 yuan is reduced by 9 yuan, the incentive money packet is reduced by 5 yuan, and the amount of the fee to be deducted is 200 yuan; and the deduction system deducts accounts according to the payment discount message, the generated deduction discount information in the deduction message is respectively 10 yuan minus randomly, 0 yuan minus fully 150 yuan, 5 yuan minus incentive gold red packet and 185 yuan actual deduction, wherein the 10 yuan minus randomly is inconsistent with the 8 yuan minus maximally when the deduction is random, the effective state of the payment discount information is failure, the 0 yuan minus fully 150 yuan is inconsistent with the 9 yuan minus fully 150 yuan, the effective state of the payment discount information is failure, the 5 yuan minus the incentive gold red packet of the deduction information is consistent with the incentive gold red packet of the payment discount information minus 5 yuan, and the effective state of the payment discount information is success.
In the method provided by the embodiment of the invention, after the judgment result of each payment discount information in the payment discount message is obtained, the judgment result of each payment discount information is assembled into a feedback message, and the feedback message is sent to a preset display device; triggering the display equipment to display the judgment result of each payment discount information in the feedback message; and the developer analyzes the test condition of the preferential payment according to each judgment result in the feedback message and adjusts corresponding data according to the test condition.
In the method provided by the embodiment of the invention, when a payment test instruction for performing a preferential payment test is received, a preset payment preferential system and each payment preferential information corresponding to the payment test instruction are obtained, each payment preferential information is assembled into a preferential payment message corresponding to the payment test instruction, the preferential payment message is sent to a preset account deduction system, the account deduction system is triggered to carry out account deduction according to the preferential payment message, and an account deduction message is generated; analyzing the account deduction message fed back by the account deduction system to obtain each account deduction preferential information in the account deduction message, judging the effective state of each payment preferential information according to each account deduction preferential information, and obtaining the judgment result of each payment preferential information so as to finish the preferential payment test corresponding to the payment test instruction. The method provided by the invention can be used without being connected with an external system, thereby shortening the test link of preferential payment, reducing the labor cost input during testing and reducing the time spent on testing.
Corresponding to fig. 1, an embodiment of the present invention further provides a test apparatus for preferential payment, where the apparatus may be disposed in a server or a process of a personal computer or an intelligent device; the test device of the preferential payment is used for supporting the application and the realization of the test method of the preferential payment in practice; the structure schematic diagram of the device is shown in fig. 4, and the specific description is as follows:
a first obtaining unit 401, configured to obtain, when a payment test instruction for performing a benefit payment test is received, each piece of payment benefit information corresponding to the payment test instruction in a preset payment benefit system;
an assembling unit 402, configured to assemble, according to a preset payment message assembling rule, each payment discount information into a discount payment message corresponding to the payment test instruction;
the triggering unit 403 is configured to send the preferential payment message to a preset account deduction system, trigger the account deduction system to deduct an account according to the preferential payment message, and generate a corresponding account deduction message;
a second obtaining unit 404, configured to obtain the account deduction message fed back by the account deduction system, analyze the account deduction message, and determine each account deduction discount information in the account deduction message;
a first determining unit 405, configured to determine the account-deducting discount information corresponding to each piece of payment discount information in the account-deducting message;
the determining unit 406 is configured to determine, according to the discount offer information corresponding to each payment offer information, an effective state of each payment offer information, and obtain a determination result of each payment offer information, so as to complete a benefit payment test corresponding to the payment test instruction.
In the device provided by the embodiment of the invention, when a payment test instruction for performing a preferential payment test is received, a preset payment preferential system and each payment preferential information corresponding to the payment test instruction are obtained, each payment preferential information is assembled into a preferential payment message corresponding to the payment test instruction, the preferential payment message is sent to a preset account deduction system, the account deduction system is triggered to carry out account deduction according to the preferential payment message, and an account deduction message is generated; analyzing the account deduction message fed back by the account deduction system to obtain each account deduction preferential information in the account deduction message, judging the effective state of each payment preferential information according to each account deduction preferential information, and obtaining the judgment result of each payment preferential information so as to finish the preferential payment test corresponding to the payment test instruction. The device provided by the invention can be used without being connected with an external system, thereby shortening the test link of preferential payment, reducing the labor cost input during testing and reducing the time spent on testing.
The test device for preferential payment provided by the embodiment of the invention can also be set as follows:
the second determining unit is used for determining each piece of discount type information and each piece of discount limit information which are set according to a preset discount rule;
and the generating unit is used for associating and combining each piece of the offer type information and each piece of the offer restriction information according to a preset offer association rule to obtain each piece of combined offer combination information and generate payment offer information corresponding to each piece of the offer combination information.
In the test apparatus for preferential payment provided in the embodiment of the present invention, the first obtaining unit 401 may be configured to:
the analysis subunit is used for analyzing the payment test instruction to obtain each discount identifier in the payment test instruction;
the first determining subunit is used for determining each piece of payment discount information in a preset payment discount system;
and the traversal subunit is used for sequentially traversing each piece of payment discount information by each discount identifier so as to determine the payment discount information corresponding to each discount identifier.
In the test apparatus for preferential payment provided in the embodiment of the present invention, the determining unit 406 may be configured to:
the comparison subunit is used for comparing each piece of payment discount information with the corresponding account deduction discount information and judging whether the payment discount information is consistent with the corresponding account deduction discount information;
the second determining subunit is used for determining that the effective state of the payment discount information is successful when the payment discount information is compared with the discount information;
and the third determining subunit is configured to determine that the valid state of the payment discount information is a failure when the comparison between the payment discount information and the discount information is inconsistent.
The test device for preferential payment provided by the embodiment of the invention can be further configured as follows:
the sending unit is used for assembling the judgment result of each payment discount information into a feedback message and sending the feedback message to a preset display device;
and the display unit is used for triggering the display equipment to display the judgment result of each payment discount information in the feedback message.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for testing preferential payment, comprising:
when a payment test instruction for performing a discount payment test is received, acquiring each piece of payment discount information corresponding to the payment test instruction in a preset payment discount system;
according to a preset payment message assembly rule, assembling each payment discount information into a discount payment message corresponding to the payment test instruction;
sending the preferential payment message to a preset account deduction system, triggering the account deduction system to carry out account deduction according to the preferential payment message, and generating a corresponding account deduction message;
acquiring the account deduction message fed back by the account deduction system, analyzing the account deduction message, and determining each account deduction preferential information in the account deduction message;
determining the corresponding account deduction discount information of each payment discount information in the account deduction message;
and judging the effective state of each payment discount information according to the account deduction discount information corresponding to each payment discount information to obtain the judgment result of each payment discount information so as to finish the discount payment test corresponding to the payment test instruction.
2. The method of claim 1, wherein the setting process of the payment offer information comprises:
determining each preferential type information and each preferential limitation information set according to a preset preferential rule;
and associating and combining each piece of the offer type information and each piece of the offer restriction information according to a preset offer association rule to obtain each piece of combined offer combination information, and generating payment offer information corresponding to each piece of the offer combination information.
3. The method according to claim 1, wherein the obtaining of each payment offer information corresponding to the payment test instruction in a preset payment offer system comprises:
analyzing the payment test instruction to obtain each preferential identification in the payment test instruction;
determining each piece of payment discount information in a preset payment discount system;
and traversing each discount identifier through each payment discount information in sequence to determine the payment discount information corresponding to each discount identifier.
4. The method of claim 1, wherein the determining the effective status of each payment offer according to the discount offer information corresponding to each payment offer information comprises:
comparing each payment discount information with the corresponding account deduction discount information, and judging whether the payment discount information is consistent with the corresponding account deduction discount information;
when the payment discount information is compared with the discount information, determining that the effective state of the payment discount information is successful;
and when the comparison of the payment discount information and the account deduction discount information is inconsistent, determining that the effective state of the payment discount information is failure.
5. The method of claim 1, further comprising:
assembling the judgment results of the payment discount information into a feedback message, and sending the feedback message to a preset display device;
and triggering the display equipment to display the judgment result of each payment discount information in the feedback message.
6. A test device for preferential payment, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a payment processing unit, wherein the first acquisition unit is used for acquiring payment discount information corresponding to a payment test instruction in a preset payment discount system when the payment test instruction for performing a discount payment test is received;
the assembling unit is used for assembling each payment discount information into a discount payment message corresponding to the payment test instruction according to a preset payment message assembling rule;
the triggering unit is used for sending the preferential payment message to a preset account deduction system, triggering the account deduction system to carry out account deduction according to the preferential payment message and generating a corresponding account deduction message;
a second obtaining unit, configured to obtain the account deduction message fed back by the account deduction system, analyze the account deduction message, and determine each account deduction discount information in the account deduction message;
a first determining unit, configured to determine the account deduction discount information corresponding to each piece of payment discount information in the account deduction message;
and the judging unit is used for judging the effective state of each payment discount information according to the discount information corresponding to each payment discount information to obtain the judgment result of each payment discount information so as to finish the discount payment test corresponding to the payment test instruction.
7. The apparatus of claim 6, further comprising:
the second determining unit is used for determining each piece of discount type information and each piece of discount limit information which are set according to a preset discount rule;
and the generating unit is used for associating and combining each piece of the offer type information and each piece of the offer restriction information according to a preset offer association rule to obtain each piece of combined offer combination information and generate payment offer information corresponding to each piece of the offer combination information.
8. The apparatus of claim 6, wherein the first obtaining unit comprises:
the analysis subunit is used for analyzing the payment test instruction to obtain each discount identifier in the payment test instruction;
the first determining subunit is used for determining each piece of payment discount information in a preset payment discount system;
and the traversal subunit is used for sequentially traversing each piece of payment discount information by each discount identifier so as to determine the payment discount information corresponding to each discount identifier.
9. The apparatus according to claim 6, wherein the determining unit comprises:
the comparison subunit is used for comparing each piece of payment discount information with the corresponding account deduction discount information and judging whether the payment discount information is consistent with the corresponding account deduction discount information;
the second determining subunit is used for determining that the effective state of the payment discount information is successful when the payment discount information is compared with the discount information;
and the third determining subunit is configured to determine that the valid state of the payment discount information is a failure when the comparison between the payment discount information and the discount information is inconsistent.
10. The apparatus of claim 6, further comprising:
the sending unit is used for assembling the judgment result of each payment discount information into a feedback message and sending the feedback message to a preset display device;
and the display unit is used for triggering the display equipment to display the judgment result of each payment discount information in the feedback message.
CN201911148478.8A 2019-11-21 2019-11-21 Method and device for testing preferential payment Active CN110928785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911148478.8A CN110928785B (en) 2019-11-21 2019-11-21 Method and device for testing preferential payment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911148478.8A CN110928785B (en) 2019-11-21 2019-11-21 Method and device for testing preferential payment

Publications (2)

Publication Number Publication Date
CN110928785A true CN110928785A (en) 2020-03-27
CN110928785B CN110928785B (en) 2023-11-21

Family

ID=69850558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911148478.8A Active CN110928785B (en) 2019-11-21 2019-11-21 Method and device for testing preferential payment

Country Status (1)

Country Link
CN (1) CN110928785B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308556A (en) * 2007-05-15 2008-11-19 阿里巴巴集团控股有限公司 System and method for online charging test
CN101996451A (en) * 2009-08-14 2011-03-30 中国工商银行股份有限公司 Test method of bank self-service device system and server
US20140200980A1 (en) * 2011-08-30 2014-07-17 Jae Kyoung Bang System and method for mediating transactions among a plurality of social commerce businesses
WO2015008084A1 (en) * 2013-07-19 2015-01-22 Barclays Bank Plc Discount offer system
CN105099833A (en) * 2015-09-14 2015-11-25 北京华青融天技术有限责任公司 Business test method , device and system
CN107357735A (en) * 2017-07-20 2017-11-17 万帮充电设备有限公司 Discount method of testing and device
CN108427638A (en) * 2018-01-19 2018-08-21 口碑(上海)信息技术有限公司 Region network of relation marketing activity test method and device
CN109461083A (en) * 2018-11-19 2019-03-12 中国银行股份有限公司 A kind of determination method and device of preferential rate

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308556A (en) * 2007-05-15 2008-11-19 阿里巴巴集团控股有限公司 System and method for online charging test
CN101996451A (en) * 2009-08-14 2011-03-30 中国工商银行股份有限公司 Test method of bank self-service device system and server
US20140200980A1 (en) * 2011-08-30 2014-07-17 Jae Kyoung Bang System and method for mediating transactions among a plurality of social commerce businesses
WO2015008084A1 (en) * 2013-07-19 2015-01-22 Barclays Bank Plc Discount offer system
CN105099833A (en) * 2015-09-14 2015-11-25 北京华青融天技术有限责任公司 Business test method , device and system
CN107357735A (en) * 2017-07-20 2017-11-17 万帮充电设备有限公司 Discount method of testing and device
CN108427638A (en) * 2018-01-19 2018-08-21 口碑(上海)信息技术有限公司 Region network of relation marketing activity test method and device
CN109461083A (en) * 2018-11-19 2019-03-12 中国银行股份有限公司 A kind of determination method and device of preferential rate

Also Published As

Publication number Publication date
CN110928785B (en) 2023-11-21

Similar Documents

Publication Publication Date Title
Kauffman et al. Technology investment decision-making under uncertainty
CN107748985B (en) Network-based payment method and network payment server
US10922671B2 (en) Systems, devices, and methods for managing a payment transaction
US20130132175A1 (en) Mobile device rebate system
CN107862613A (en) Premium paying method, premium pay equipment and readable storage medium storing program for executing
CN107833037A (en) A kind of method that business by stages is realized based on credit
US20160328701A1 (en) Mobile point of sale system for reverse settlement, and method thereof
CN109087188A (en) Settlement method, device and the computer readable storage medium of commission
CN109493028A (en) A kind of method of payment and device
CN109559215A (en) Business datum accounting method, device, equipment and computer readable storage medium
CN109299946A (en) A kind for the treatment of method and apparatus of payment flow
CN107220169A (en) A kind of emulating server returns to the method and apparatus for customizing data
CN107646122A (en) The system and method for generation donations of being merchandised from payment account
CN110928785B (en) Method and device for testing preferential payment
US20150170193A1 (en) System and method for distributing and processing coupons
US9477957B2 (en) Systems and methods for transferring value to payment accounts
JP6196410B1 (en) System, method and program for managing user credit information
US7784683B1 (en) Systems and methods for automated benefit verification and application
CN110992166B (en) Method and device for testing online loan application
US8931694B1 (en) Systems and methods for automated benefit verification and application
CN113095814A (en) Multi-channel combined payment method and device
CN110084370A (en) A kind of user behavior analysis method and its server
CN107977893A (en) Method of commerce, transaction system and storage medium
CN111047341A (en) Information processing method and device, server and terminal equipment
CN112036873B (en) Cross-line payment mode determining method and device

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