CN111951076B - Order payment method and device, storage medium and electronic equipment - Google Patents

Order payment method and device, storage medium and electronic equipment

Info

Publication number
CN111951076B
CN111951076B CN202010811854.3A CN202010811854A CN111951076B CN 111951076 B CN111951076 B CN 111951076B CN 202010811854 A CN202010811854 A CN 202010811854A CN 111951076 B CN111951076 B CN 111951076B
Authority
CN
China
Prior art keywords
channel
user
payment
order
target order
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
CN202010811854.3A
Other languages
Chinese (zh)
Other versions
CN111951076A (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.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology Co Ltd
Filing date
Publication date
Application filed by China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202010811854.3A priority Critical patent/CN111951076B/en
Publication of CN111951076A publication Critical patent/CN111951076A/en
Application granted granted Critical
Publication of CN111951076B publication Critical patent/CN111951076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides an order payment method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: when a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request, wherein the target order is a pre-generated unpaid order, the reservation channel of the target order is different from the user operation channel, if the user operation channel has cross-channel operation authority, changing configuration information of the reservation channel according to each channel identifier contained in the payment operation request, acquiring the target order through the reservation channel of the changed configuration information according to order information contained in the payment operation request, generating payment prompt information, and sending the payment prompt information to the user, and executing ticket issuing operation after the user successfully pays the target order, so that cross-channel order payment is realized.

Description

Order payment method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of internet applications, and in particular, to a method and apparatus for order payment, a storage medium, and an electronic device.
Background
With the rapid development of interconnection technology, various electronic commerce platforms are more and more, namely, the channels for selling commodities are more and more.
In the prior art, when a user purchases a commodity in a commodity sales channel, the situation that the commodity is not paid successfully after the commodity is placed can occur, and then when another commodity sales channel browses the commodity, the user realizes that the unpaid order exists, and under the situation, the user can only return to the placed channel to continue paying the order, so that the user experience is affected.
Therefore, how to provide a technical solution capable of realizing cross-channel order payment is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to solve the technical problem of providing an order payment method and device, a storage medium and electronic equipment so as to realize cross-channel order payment.
In order to achieve the above object, the present application provides the following technical solutions:
the first aspect of the application discloses an order payment method, which comprises the following steps:
When a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel;
judging whether the user operation channel has cross-channel operation authority;
if the user operation channel has cross-channel operation authority, changing configuration information of the reservation channel according to each channel identifier contained in the payment operation request;
acquiring the target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment information to be sent to the user;
And after the user successfully pays the target order, executing a ticket issuing operation.
The second aspect of the present application discloses an order payment device, comprising:
A determining unit, configured to determine, when a payment operation request of a user for a target order is received, a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel;
the judging unit is used for judging whether the user operation channel has cross-channel operation authority;
A changing unit, configured to change configuration information of the reservation channel according to each channel identifier included in the payment operation request if the user operation channel has cross-channel operation authority;
The first acquisition unit is used for acquiring the target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment prompt information and sending the payment prompt information to the user;
And the first execution unit is used for executing ticket issuing operation after the user successfully pays the target order.
A third aspect of the present application discloses a storage medium, where the storage medium includes stored instructions, where the instructions, when executed, control a device in which the storage medium is located to perform the order payment method described above.
A fourth aspect of the application discloses an electronic device comprising a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the order payment method described above.
Compared with the prior art, the application has the following advantages:
The application provides an order payment method and device, a storage medium and electronic equipment, wherein the method comprises the following steps: when a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request, wherein the target order is a pre-generated unpaid order, the reservation channel of the target order is different from the user operation channel, if the user operation channel has cross-channel operation authority, changing configuration information of the reservation channel according to each channel identifier contained in the payment operation request, acquiring the target order through the reservation channel of the changed configuration information according to order information contained in the payment operation request, generating payment prompt information, and sending the payment prompt information to the user, and executing ticket issuing operation after the user successfully pays the target order, so that cross-channel order payment is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for order payment according to the present application;
FIG. 2 is a flow chart of another method of order payment method according to the present application;
FIG. 3 is a flow chart of another method of order payment method according to the present application;
FIG. 4 is a flow chart of another method of order payment method according to the present application;
FIG. 5 is a flow chart of another method of order payment method according to the present application;
FIG. 6 is a schematic diagram of an order payment device according to the present application;
Fig. 7 is a schematic structural diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used for distinguishing between different devices, modules, or units and not for limiting the order or interdependence of the functions performed by these devices, modules, or units.
It should be noted that references to "one" or "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be interpreted as "one or more" unless the context clearly indicates otherwise.
The embodiment of the application provides an order payment method, an execution subject of which can be a server running on a computer, and a flow chart of the order payment method is shown in fig. 1, and specifically comprises the following steps:
S101, when a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request.
When a user browses commodities in a user operation channel, if it is monitored that a target order exists in the user, namely, a pre-generated unpaid order exists, prompt information is sent to the user through the user operation channel to prompt the user that the unpaid order exists currently. It should be noted that the reservation channel of the target order and the user operation channel are different.
Optionally, the generating process of the target order specifically includes:
Responding to the air ticket booking request of the user, and determining a booking channel corresponding to the air ticket booking request;
Searching office and customer codes corresponding to a first channel identifier and a second channel identifier contained in an air ticket booking request in a preset rule table;
acquiring freight rate information corresponding to both the office and the client code;
and generating a target order according to the acquired freight rate information.
In the method provided by the embodiment of the application, a plurality of rule tables are preset, and the preset rule tables store a plurality of first channel identifiers, a plurality of second channel identifiers, a plurality of office and a plurality of client codes; the first channel identifier and the second channel identifier have a corresponding relationship with the office and the client code, that is, the office corresponding to both the first channel identifier and the second channel identifier can be found through the first channel identifier and the second channel identifier. And stores price information corresponding to office and customer codes in advance.
In the method provided by the embodiment of the application, the generation process of the target order comprises the following steps: determining a booking channel corresponding to a commodity booking request of a user, optionally, acquiring a preset rule table according to a first channel identifier and a second channel identifier contained in the commodity booking request, searching for an office and a client code corresponding to the first channel identifier and the second channel identifier in the rule table, and if the corresponding office and client code are found, generating a target order according to the acquired price information and the acquired price information according to price information corresponding to the office and client code. The first channel identifier is used for representing the category of the channel, and can be represented by a channel, and the second channel identifier is used for representing a specific channel in a certain category of channels, and can be represented by a channel requetorID.
It should be noted that, not all the first channel identifier and the second channel identifier have the corresponding office and the corresponding customer code, only the first channel identifier and the second channel identifier with the corresponding relationship set in the rule table in advance can be obtained, and the office and the corresponding customer code corresponding to the first channel identifier and the second channel identifier are used for referring to the corresponding relationship among the first channel identifier, the second channel identifier, the office and the customer code.
Based on the prompt information, the user sends a payment operation request to carry out payment operation on a target order, wherein the target order is an unpaid order which is generated in advance in a reservation channel. Optionally, the presentation form of the prompt information includes, but is not limited to, presentation through a prompt box. The user sending the payment request may be sending a button indicating "yes" in the prompt box, for example, prompting the user through the prompt box that there is an unpaid target order, asking the user whether to continue to pay for the target order, and the user may send the payment request through a button indicating "yes" in the prompt box.
When a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request, namely a channel of the user for sending the payment operation request, through each channel identifier contained in the payment operation request.
S102, judging whether the user operation channel has cross-channel operation authority.
Judging whether the authority of the user operation channel has cross-channel operation authority, specifically, judging whether the user operation channel has cross-channel operation authority based on an access control list corresponding to a reservation channel of a target order and a login mode of the user in the user operation channel, wherein a plurality of identification information is stored in the access control list, and each identification information is a channel identification. If it is determined that the user operation channel has cross-channel operation authority, step S103 is executed, and if it is determined that the user operation channel does not have cross-channel operation authority, the process is directly ended.
Optionally, if the user operation channel is judged not to have cross-channel operation authority, generating prompt information of payment failure, and sending the prompt information of payment failure to the user.
S103, changing configuration information of the reservation channel according to each channel identifier contained in the payment operation request.
If the user operation channel has cross-channel operation authority, changing configuration information of the reservation channel according to each channel identifier contained in the payment operation request, namely, modifying the configuration information of the reservation channel according to each channel identifier contained in the payment operation request, so that the user operation channel can pay for a target order of the reservation channel.
Referring to fig. 2, in the method provided by the embodiment of the present application, a process of changing configuration information of a subscription channel according to each channel identifier included in a payment operation request specifically includes:
S201, acquiring configuration information of a reservation channel, and determining each key field contained in the configuration information.
Configuration information of the reservation channel is obtained, cross-channel operation on orders of the reservation channel can be achieved by modifying the configuration information, and after the configuration information of the reservation channel is obtained, each key field contained in the configuration information is determined.
S202, analyzing each channel identifier contained in the payment operation request, and extracting channel identifiers corresponding to each key field from each channel identifier contained in the payment operation request.
Each channel identifier included in the payment operation request is parsed, and a channel identifier corresponding to each key field is extracted from each channel identifier included in the payment operation request, for example, a channel identifier requetorID corresponding to the key field Code is extracted, and a channel identifier THRD _part_ SHOPID corresponding to the key field CodeContext is extracted.
S203, writing channel identifiers corresponding to the key fields into positions corresponding to the key fields.
And writing channel identifiers corresponding to each key field into positions corresponding to each key field, so that the configuration of the reservation channels is changed. For example, extracting the channel identifier requetorID corresponding to the key field Code, and extracting the channel identifier THRD _part_ SHOPID corresponding to the key field CodeContext, writing the extracted channel identifier requetorID into the location corresponding to the Code, and writing the extracted channel identifier THRD _part_ SHOPID into the location corresponding to CodeContext.
S104, acquiring a target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment information to be sent to the user.
According to order information contained in the payment operation request, a target order acquisition request is sent to a reservation channel of the changed configuration information, when feedback information corresponding to the target order acquisition request is fed back by the reservation channel of the changed configuration information is received, a target order contained in the feedback information is acquired, payment information of the target order is generated, and the payment information is sent to the user through a user operation channel.
S105, after the user successfully pays the target order, a ticket issuing operation is executed.
The user pays the target order through the user operation channel, and after the user successfully pays the target order, the ticket issuing operation is executed.
According to the order payment method provided by the embodiment of the application, when a payment operation request of a user for a target order is received, a user operation channel corresponding to the payment operation request is determined, wherein the target order is a pre-generated unpaid order, the reservation channel of the target order is different from the user operation channel, if the user operation channel has cross-channel operation authority, configuration information of the reservation channel is changed according to each channel identifier contained in the payment operation request, the target order is acquired through the reservation channel of the changed configuration information according to the order information contained in the payment operation request, payment prompt information is generated and sent to the user, and after the user successfully pays the target order, ticket issuing operation is executed. By applying the order payment method provided by the embodiment of the application, a user can pay orders reserved but not paid in the reservation channel through the user operation channel, so that cross-channel order payment is realized.
The above-mentioned embodiment of the present application, in which step S101 disclosed in fig. 1 relates to determining a user operation channel corresponding to a payment operation request, is shown in fig. 3, and specifically includes the following steps:
S301, obtaining each channel identifier contained in the payment operation request.
The payment operation request comprises a plurality of channel identifiers, and each channel identifier contained in the payment operation request is obtained.
S302, determining a first channel identifier, a second channel identifier and a plurality of third channel identifiers from the channel identifiers.
Determining a first channel identifier, a second channel identifier and a plurality of third channel identifiers from the plurality of channel identifiers, wherein the first channel identifier is identification information corresponding to a field channel, the second channel identifier is identification information corresponding to a field requetorID, for example, if the identification information corresponding to the field channel is IBE and the identification information corresponding to the requester id is H5, the first channel identifier is IBE, the second channel identifier is H5, and the other channel identifiers except the first channel identifier and the second channel identifier are used as the third channel identifiers from the plurality of channel identifiers contained in the payment operation request.
S303, judging whether each third channel identifier meets the corresponding check rule.
In the method provided by the embodiment of the application, the respective corresponding check rule of each third channel identifier is preconfigured, and based on the preconfigured check rules, whether each third channel identifier meets the check rule corresponding to the third channel identifier is judged, for example, the third channel identifier A, B, C and D exist, the check rule corresponding to the A is preconfigured as a, the check rule of the B is B, the check rule of the C is C, and the check rule of the D is D, and whether the A meets the check rule a, the B meets the check rule B, the C meets the check rule C, and the D meets the check rule D is needed.
If it is determined that each third channel identifier meets the corresponding check rule, step S304 is executed, and if any third channel identifier does not meet the corresponding check rule, an error is returned and ended.
S304, determining the channel category to which the first channel identifier belongs.
Determining a channel category to which the first channel identification belongs, that is, determining an interface to which the first channel identification belongs, wherein the interface includes, but is not limited to, OTA and TRIBE.
S305, determining identification information matched with the second channel identification from the identification information corresponding to the channel category.
And determining the identification information matched with the second channel identification based on each piece of preset identification information corresponding to the channel category, and searching the identification information matched with the second channel identification by respectively matching the second channel identification with each piece of identification information corresponding to the channel category. For example, the channel category to which the determined second channel identifier belongs is OTA, the identifier information corresponding to the OTA may include identifier information a corresponding to the channel being a call center and identifier information b corresponding to the channel being a certain APP, and the second channel identifier is respectively matched with the identifier information a and the identifier information b, so as to find the identifier information matched with the second channel identifier.
In the method provided by the embodiment of the application, if the channel category to which the first channel identifier belongs is a first category, optionally, the first category may be TRIBE interfaces, and the identification information matched with the second channel identifier is determined from the identification information corresponding to the channel category, which specifically includes:
Acquiring an IP address corresponding to the payment operation request;
searching address information matched with the IP address in a preset configuration list corresponding to the channel category;
And determining the identification information corresponding to the searched address information in the configuration list as the identification information matched with the second channel identification.
In the method provided by the embodiment of the application, a configuration list is preset, a plurality of IP addresses and a plurality of identification information are stored in the preset configuration list, wherein the corresponding relationship between the IP addresses and the identification information can be one-to-one relationship and/or one-to-one relationship, that is, the condition that one IP address corresponds to one identification information is possible, the condition that a plurality of IP addresses correspond to the same identification information is also possible, or both the conditions are possible, and it is required to be stated that in any case, only the IP address exists in the configuration list through one IP address, the unique identification information corresponding to the IP address can be found.
If the channel category to which the first channel identifier belongs is the first category, searching address information matched with the IP address in a preset configuration list corresponding to the channel category through the IP address corresponding to the payment operation request, wherein the identification information corresponding to the address information is identification information matched with the second channel identifier.
If the channel category to which the first channel identifier belongs is not the first category, the second channel identifier is directly matched with each piece of identifier information corresponding to the channel category, so that the identifier information matched with the second channel identifier in each piece of identifier information corresponding to the channel category is searched.
S306, determining the channel corresponding to the identification information matched with the second channel identification as the user operation channel corresponding to the payment operation request.
If the channel corresponding to the identification information matched with the second channel identification is found, determining the channel corresponding to the identification information matched with the second channel identification as the user operation channel corresponding to the payment operation request. For example, if the identification information a and the second channel identification are matched, the user operation channel corresponding to the paid operation request is a call center.
In the order payment method provided by the embodiment of the application, the identification information of the day matched with the second channel identification is determined from the identification information corresponding to the channel category by determining the channel category to which the first channel identification belongs, so that the user operation channel corresponding to the payment operation request is determined.
The above-mentioned embodiment of the present application, in step S102 disclosed in fig. 1, relates to determining a user operation channel corresponding to a payment operation request, and the flowchart is shown in fig. 4, and specifically includes the following steps:
S401, acquiring an access control list corresponding to a reservation channel of a target order.
The method comprises the steps of obtaining an access control list corresponding to a reservation channel of a preset target order, wherein the access control list comprises a plurality of pieces of access identification information, each piece of access identification information comprises first access identification information and second access identification information, and a channel corresponding to each piece of access identification information has authority to access the reservation channel.
S402, judging whether access identification information matched with a user operation channel exists in all access identification information contained in the access control list.
And matching each piece of access identification information contained in the access control list with a channel identification corresponding to the user operation channel, namely matching each piece of access identification information contained in the access control list with each channel identification contained in the payment operation request, and optionally matching each piece of access identification information contained in the access control list with a first channel identification and a second channel identification contained in the payment operation request. Wherein, for each piece of access identification information, the first access identification information is matched with the first channel identification, the second access identification information is matched with the second channel identification, if the first access identification information is matched with the first channel identification and the second access identification information is matched with the second channel identification, it is indicated that the access identification information matched with the user operation channel exists in the access identification information contained in the access control list, and step S403 is executed, if the first access identification information is not matched with the first channel identification or the second access identification information is matched with the second channel identification, it is indicated that the access identification information matched with the user operation channel does not exist in the access identification information contained in the access control list, and step S404 is executed.
S403, judging whether the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel.
If the access identification information contained in the access control list has the access identification information matched with the user operation channel, further judging whether the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel, if the login mode of the user in the user operation channel is required to be identical to the login mode corresponding to the reservation channel in the login rule corresponding to the reservation channel, namely, the login mode of the user in the user operation channel is required to be member login, then judging that the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel, and if the login mode of the user in the login rule corresponding to the reservation channel is not specified, namely, the user can be member login or visitor login, namely, if the login mode of the user in the login rule corresponding to the reservation channel is not specified, then judging that the login mode of the user in the user operation channel is not specified in any way.
If it is determined that the login mode of the user in the user operation channel satisfies the login rule corresponding to the reservation channel, step S405 is executed, and if it is determined that the login mode of the user in the user operation channel does not satisfy the login rule corresponding to the reservation channel, step S404 is executed.
S404, judging that the user operation channel does not have cross-channel operation authority.
If the access identification information matched with the user operation channel does not exist in the access identification information contained in the access control list, or the access identification information matched with the user operation channel exists in the access identification information contained in the access control list, but the login mode of the user in the user operation channel does not meet the login rule corresponding to the reservation channel, judging that the user operation channel does not have cross-channel operation authority.
S405, judging that the user operation channel has cross-channel operation authority.
If the access identification information matched with the user operation channel exists in the access identification information contained in the access control list, and the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel, the cross-channel operation authority is judged to be provided for the user operation channel.
According to the order payment method provided by the embodiment of the application, whether the user operation channel has cross-channel operation authority is determined by judging whether the access identification information matched with the user operation channel exists in the access identification information contained in the access control list and judging whether the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel.
After the ticket issuing operation is performed in step S105 disclosed in fig. 1 in the above embodiment of the present application, the flowchart may further include the following steps as shown in fig. 5:
S501, responding to a return operation instruction of a user on the paid target order, and determining a return operation channel corresponding to the return operation instruction.
Determining a refund operation channel corresponding to the refund operation instruction in response to a refund operation instruction of a target order by a user, wherein the refund operation instruction comprises a refund operation instruction and a refund operation instruction, it is required to specify that the refund operation channel of the refund operation instruction and the reservation channel of the target order can be different channels, the process of determining the refund operation channel corresponding to the refund operation instruction is similar to the implementation process of each step disclosed in fig. 3 of the embodiment of the application, that is, the refund operation instruction comprises a first channel identifier, a second channel identifier and a plurality of third channel identifiers, after each third channel identifier meets a verification rule corresponding to each third channel identifier, the channel category to which the first channel identifier belongs is determined, each piece of identification information corresponding to the channel category is matched with each piece of identification information corresponding to find out the piece of identification information matched with the second channel identifier, and the channel corresponding to each piece of identification information matched with the second channel identifier is determined as the refund operation corresponding to the refund operation instruction.
S502, judging whether the channel returning operation channel has cross-channel operation authority.
Optionally, the execution process of step S502 is similar to the implementation process of each step disclosed in fig. 4 in the above embodiment of the present application, that is, based on the access control list corresponding to the reservation channel of the target order and the login mode of the user in the change-back operation channel, the specific process includes: obtaining an access control list corresponding to a reservation channel of a target order, if access identification information matched with a refund operation channel exists in all access identification information contained in the access control list, judging that the refund operation channel has cross-channel operation authority when a login mode of a user in the refund operation channel meets a login rule corresponding to the reservation channel, and if all access identification information contained in the access control list does not have access identification information matched with the refund operation channel or all access identification information contained in the access control list has access identification information matched with the refund operation channel, wherein the login mode of the user in the refund operation channel does not meet the login rule corresponding to the reservation channel, judging that the refund operation channel does not have cross-channel operation authority.
If it is determined that the change-back operation channel has cross-channel operation authority, step S503 is executed, and if it is determined that the change-back operation channel does not have cross-channel operation authority, the process is directly ended.
S503, executing the operation corresponding to the instruction of the return operation.
And if the returning operation channel is judged to have cross-channel operation authority, executing an operation corresponding to the returning operation instruction, wherein if the returning operation instruction is a ticket returning operation instruction, executing ticket returning operation on the paid target order, and if the returning operation instruction is a signature changing operation instruction, executing signature changing operation on the paid target order. When the change operation is performed on the paid target order, the price of the target commodity is acquired, and the target commodity is the commodity that the user wants to change. For example, the user firstly purchases the commodity A and then changes the commodity A into the commodity B, the commodity B is regarded as the target commodity, and the process of acquiring the price of the target commodity specifically comprises the following steps: and searching the office and the customer codes corresponding to the first channel identifier and the second channel identifier contained in the change-back operation instruction in the rule table, and acquiring price information corresponding to the office and the customer codes based on the office and the customer codes.
It should be noted that the commodity mentioned by the method provided by the embodiment of the application may be an air ticket.
According to the order payment method provided by the embodiment of the application, if the returning operation channel corresponding to the returning and changing instruction has cross-channel operation authority, the cross-channel returning and changing commodity can be realized, namely the cross-channel returning and changing ticket can be realized.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Corresponding to the method shown in fig. 1, the embodiment of the present application further provides an order payment device, which is used for implementing the method shown in fig. 1, and the schematic structural diagram of the order payment device is shown in fig. 6, and specifically includes:
a determining unit 601, configured to determine, when a payment operation request of a user for a target order is received, a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel;
A judging unit 602, configured to judge whether the user operation channel has cross-channel operation rights;
A changing unit 603, configured to change the configuration information of the subscription channel according to each channel identifier included in the payment operation request if the user operation channel has cross-channel operation rights;
A first obtaining unit 604, configured to obtain, according to order information included in the payment operation request, the target order through a subscription channel with changed configuration information, and generate payment prompt information to send the payment prompt information to the user;
The first execution unit 605 is configured to execute a ticket issuing operation after the user successfully pays the target order.
According to the order payment device provided by the embodiment of the application, when a payment operation request of a user for a target order is received, a user operation channel corresponding to the payment operation request is determined, wherein the target order is a pre-generated unpaid order, the reservation channel of the target order is different from the user operation channel, if the user operation channel has cross-channel operation authority, configuration information of the reservation channel is changed according to each channel identifier contained in the payment operation request, the target order is acquired through the reservation channel of the changed configuration information according to the order information contained in the payment operation request, payment prompt information is generated and sent to the user, and ticket issuing operation is executed after the user successfully pays the target order. By applying the order payment method provided by the embodiment of the application, a user can pay orders reserved but not paid in the reservation channel through the user operation channel, so that cross-channel order payment is realized.
In one embodiment of the present application, based on the foregoing scheme, the determining unit 601 is configured to:
The acquisition subunit is used for acquiring each channel identifier contained in the payment operation request;
A first determining subunit, configured to determine a first channel identifier, a second channel identifier, and a plurality of third channel identifiers from each of the channel identifiers;
The judging subunit is used for judging whether each third channel identifier meets the corresponding check rule;
A second determining subunit, configured to determine, if each third channel identifier meets a verification rule corresponding to the third channel identifier, a channel category to which the first channel identifier belongs;
A third determining subunit, configured to determine, from each piece of identification information corresponding to the channel category, identification information that matches the second channel identifier;
And the fourth determining subunit is used for determining the channel corresponding to the identification information matched with the second channel identification as the user operation channel corresponding to the payment operation request.
In one embodiment of the present application, based on the foregoing solution, if the channel category to which the first channel identifier belongs is a first category, the third determining subunit executes determining, from the respective identifier information corresponding to the channel category, identifier information that matches the second channel identifier, for:
Acquiring an IP address corresponding to the payment operation request;
searching address information matched with the IP address in a preset configuration list corresponding to the channel category;
and determining the identification information corresponding to the searched address information in the configuration list as the identification information matched with the second channel identification.
In one embodiment of the present application, based on the foregoing scheme, the determining unit 602 performs determining whether the user operation channel has cross-channel operation rights, for:
acquiring an access control list corresponding to a reservation channel of the target order; the access control list comprises a plurality of pieces of access identification information;
Judging whether access identification information matched with the user operation channel exists in all access identification information contained in the access control list;
if yes, judging whether the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel;
if yes, judging that the user operation channel has cross-channel operation authority.
In one embodiment of the present application, based on the foregoing scheme, it may be further configured to:
The first response unit is used for responding to the commodity booking request of the user and determining a booking channel corresponding to the commodity booking request;
the searching unit is used for searching office and customer codes corresponding to the first channel identifier and the second channel identifier contained in the commodity booking request in a preset rule table;
The second acquisition unit is used for acquiring price information corresponding to both the office and the client code;
and the generating unit is used for generating a target order according to the acquired price information.
In one embodiment of the present application, based on the foregoing scheme, it may be further configured to:
The second response unit is used for responding to the return operation instruction of the user on the paid target order and determining a return operation channel corresponding to the return operation instruction; the returning operation instruction comprises a returning operation instruction or a signing operation instruction;
and the second execution unit is used for executing the operation corresponding to the change-back operation instruction if the change-back operation channel has cross-channel operation authority.
In one embodiment of the present application, based on the foregoing scheme, the changing unit 603 performs a change on the configuration information of the subscription channel according to each channel identifier included in the payment operation request, for:
Acquiring configuration information of the reservation channel and determining each key field contained in the configuration information;
analyzing each channel identifier contained in the payment operation request, and extracting channel identifiers corresponding to each key field from each channel identifier contained in the payment operation request;
and writing the channel identifier corresponding to each key field into the position corresponding to each key field.
The embodiment of the application also provides a storage medium, which comprises stored instructions, wherein the equipment where the storage medium is located is controlled to execute the order payment method when the instructions run.
The embodiment of the present application further provides an electronic device, whose structural schematic diagram is shown in fig. 7, specifically including a memory 701, and one or more instructions 702, where the one or more instructions 702 are stored in the memory 701, and configured to be executed by the one or more processors 703, where the one or more instructions 702 perform the following operations:
When a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel;
judging whether the user operation channel has cross-channel operation authority;
if the user operation channel has cross-channel operation authority, changing configuration information of the reservation channel according to each channel identifier contained in the payment operation request;
acquiring the target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment information to be sent to the user;
And after the user successfully pays the target order, executing a ticket issuing operation.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The above description is only illustrative of the presently disclosed preferred embodiments and of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be made by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as the above-described features, are mutually replaced with the technical features having similar functions disclosed in the disclosure (but not limited to the disclosure).
In the detailed description, the application will be repeated with all matters protected by the claims in the form of the following description:
In accordance with one or more embodiments of the present disclosure, FIG. 1 provides an order payment method comprising: when a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel; judging whether the user operation channel has cross-channel operation authority; if the user operation channel has cross-channel operation authority, changing configuration information of the reservation channel according to each channel identifier contained in the payment operation request; acquiring the target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment information to be sent to the user; and after the user successfully pays the target order, executing a ticket issuing operation.
Responding to a commodity booking request of a user, determining a booking channel corresponding to the commodity booking request, and searching for an office and a client code corresponding to a first channel identifier and a second channel identifier contained in the commodity booking request in a preset rule table; acquiring price information corresponding to both the office and the client code; and generating a target order according to the acquired price information.
In accordance with one or more embodiments of the present disclosure, FIG. 2 provides another order payment method, comprising: acquiring configuration information of the reservation channel and determining each key field contained in the configuration information; analyzing each channel identifier contained in the payment operation request, and extracting channel identifiers corresponding to each key field from each channel identifier contained in the payment operation request; and writing the channel identifier corresponding to each key field into the position corresponding to each key field.
FIG. 3 provides another order payment method, according to one or more embodiments of the present disclosure, comprising: acquiring each channel identifier contained in the payment operation request; determining a first channel identifier, a second channel identifier and a plurality of third channel identifiers from the channel identifiers; judging whether each third channel identifier meets a corresponding check rule or not; if each third channel identifier meets the corresponding check rule, determining the channel category to which the first channel identifier belongs; determining identification information matched with the second channel identification from the identification information corresponding to the channel category; and determining a channel corresponding to the identification information matched with the second channel identification as a user operation channel corresponding to the payment operation request.
Acquiring an IP address corresponding to the payment operation request; searching address information matched with the IP address in a preset configuration list corresponding to the channel category; and determining the identification information corresponding to the searched address information in the configuration list as the identification information matched with the second channel identification.
FIG. 4 provides another order payment method, according to one or more embodiments of the present disclosure, comprising: acquiring an access control list corresponding to a reservation channel of the target order; the access control list comprises a plurality of pieces of access identification information; judging whether access identification information matched with the user operation channel exists in all access identification information contained in the access control list; if yes, judging whether the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel; if yes, judging that the user operation channel has cross-channel operation authority.
FIG. 5 provides another order payment method, according to one or more embodiments of the present disclosure, comprising: responding to a return-to-change operation instruction of the user on the paid target order, and determining a return-to-change operation channel corresponding to the return-to-change operation instruction; the returning operation instruction comprises a returning operation instruction or a signing operation instruction; and if the channel returning operation channel has cross-channel operation authority, executing the operation corresponding to the channel returning operation instruction.
In accordance with one or more embodiments of the present disclosure, FIG. 6 provides an order payment device, comprising: a determining unit, configured to determine, when a payment operation request of a user for a target order is received, a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel; the judging unit is used for judging whether the user operation channel has cross-channel operation authority; a changing unit, configured to change configuration information of the reservation channel according to each channel identifier included in the payment operation request if the user operation channel has cross-channel operation authority; the first acquisition unit is used for acquiring the target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment prompt information and sending the payment prompt information to the user; and the first execution unit is used for executing ticket issuing operation after the user successfully pays the target order.

Claims (8)

1. A method of order payment, comprising:
When a payment operation request of a user for a target order is received, determining a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel;
acquiring an access control list corresponding to a reservation channel of the target order; the access control list comprises a plurality of pieces of access identification information;
Judging whether access identification information matched with the user operation channel exists in all access identification information contained in the access control list;
if yes, judging whether the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel;
if yes, judging that the user operation channel has cross-channel operation authority;
If the user operation channel has cross-channel operation authority, acquiring configuration information of the reservation channel, and determining each key field contained in the configuration information;
analyzing each channel identifier contained in the payment operation request, and extracting channel identifiers corresponding to each key field from each channel identifier contained in the payment operation request;
Writing channel identifiers corresponding to the key fields into positions corresponding to the key fields;
acquiring the target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment information to be sent to the user;
And after the user successfully pays the target order, executing a ticket issuing operation.
2. The method of claim 1, wherein the determining a user operation channel corresponding to the payment operation request comprises:
acquiring each channel identifier contained in the payment operation request;
determining a first channel identifier, a second channel identifier and a plurality of third channel identifiers from the channel identifiers;
judging whether each third channel identifier meets a corresponding check rule or not;
If each third channel identifier meets the corresponding check rule, determining the channel category to which the first channel identifier belongs;
determining identification information matched with the second channel identification from the identification information corresponding to the channel category;
and determining a channel corresponding to the identification information matched with the second channel identification as a user operation channel corresponding to the payment operation request.
3. The method according to claim 2, wherein if the channel category to which the first channel identifier belongs is a first category, determining, from the respective identifier information corresponding to the channel category, identifier information matching the second channel identifier includes:
Acquiring an IP address corresponding to the payment operation request;
searching address information matched with the IP address in a preset configuration list corresponding to the channel category;
and determining the identification information corresponding to the searched address information in the configuration list as the identification information matched with the second channel identification.
4. A method according to claim 3, wherein the generation of the target order comprises:
responding to a commodity booking request of a user, and determining a booking channel corresponding to the commodity booking request;
Searching office and customer codes corresponding to a first channel identifier and a second channel identifier contained in the commodity booking request in a preset rule table;
acquiring price information corresponding to both the office and the client code;
and generating a target order according to the acquired price information.
5. The method of claim 1, wherein after performing the ticketing operation, further comprising:
responding to a return-to-change operation instruction of the user on the paid target order, and determining a return-to-change operation channel corresponding to the return-to-change operation instruction; the returning operation instruction comprises a returning operation instruction or a signing operation instruction;
and if the channel returning operation channel has cross-channel operation authority, executing the operation corresponding to the channel returning operation instruction.
6. An order payment device, comprising:
A determining unit, configured to determine, when a payment operation request of a user for a target order is received, a user operation channel corresponding to the payment operation request; the target order is a pre-generated unpaid order, and the reservation channel of the target order is different from the user operation channel;
the judging unit is used for judging whether the user operation channel has cross-channel operation authority;
A changing unit, configured to change configuration information of the reservation channel according to each channel identifier included in the payment operation request if the user operation channel has cross-channel operation authority;
The first acquisition unit is used for acquiring the target order through a reservation channel of the changed configuration information according to the order information contained in the payment operation request, and generating payment prompt information and sending the payment prompt information to the user;
the first execution unit is used for executing ticket issuing operation after the user successfully pays the target order;
The judging unit is used for executing judgment whether the user operation channel has cross-channel operation permission or not and is used for:
Acquiring an access control list corresponding to a reservation channel of the target order; the access control list comprises a plurality of pieces of access identification information; judging whether access identification information matched with the user operation channel exists in all access identification information contained in the access control list; if yes, judging whether the login mode of the user in the user operation channel meets the login rule corresponding to the reservation channel; if yes, judging that the user operation channel has cross-channel operation authority;
The changing unit executes changing of the configuration information of the reservation channel according to each channel identifier contained in the payment operation request, and is used for:
Acquiring configuration information of the reservation channel and determining each key field contained in the configuration information; analyzing each channel identifier contained in the payment operation request, and extracting channel identifiers corresponding to each key field from each channel identifier contained in the payment operation request; and writing the channel identifier corresponding to each key field into the position corresponding to each key field.
7. A storage medium comprising stored instructions, wherein the instructions, when executed, control a device in which the storage medium is located to perform an order payment method as claimed in any one of claims 1 to 5.
8. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the order payment method of any of claims 1-5.
CN202010811854.3A 2020-08-13 Order payment method and device, storage medium and electronic equipment Active CN111951076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010811854.3A CN111951076B (en) 2020-08-13 Order payment method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010811854.3A CN111951076B (en) 2020-08-13 Order payment method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111951076A CN111951076A (en) 2020-11-17
CN111951076B true CN111951076B (en) 2024-07-09

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220819A (en) * 2017-05-05 2017-09-29 中国联合网络通信集团有限公司 Polymerization method of payment and platform based on two-way authentication
CN107767226A (en) * 2017-10-30 2018-03-06 江西博瑞彤芸科技有限公司 A kind of generation method of pay invoice

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220819A (en) * 2017-05-05 2017-09-29 中国联合网络通信集团有限公司 Polymerization method of payment and platform based on two-way authentication
CN107767226A (en) * 2017-10-30 2018-03-06 江西博瑞彤芸科技有限公司 A kind of generation method of pay invoice

Similar Documents

Publication Publication Date Title
CN110599276B (en) Bill reimbursement method, device and equipment and computer storage medium
KR102244568B1 (en) Method, device and system for managing logistics through forecast of demand and supply
CN110443695A (en) Data processing method and its device, electronic equipment and medium
CN109508805B (en) Method and system for providing flight change information, storage medium and electronic equipment
CN107392801A (en) The method and its device, storage medium, electronic equipment of order are upset in control
CN111324786A (en) Method and device for processing consultation problem information
CN104376452A (en) System and method for managing payment success rate on basis of international card payment channel
CN110941488A (en) Task processing method, device, equipment and storage medium
CN112381453A (en) Information processing method, information processing apparatus, electronic device, and medium
CN111831682A (en) Method, device, equipment and computer readable medium for processing accumulation fund service
CN111367531A (en) Code processing method and device
CN113362114B (en) Resource verification method
CN111709769B (en) Data processing method and device
CN111951076B (en) Order payment method and device, storage medium and electronic equipment
CN113535101B (en) Print file generation method and device, storage medium and electronic equipment
US20190311335A1 (en) Systems and methods for in-application content management
CN109902698A (en) Information generating method and device
CN112529647B (en) Block chain-based commodity transaction method, device and computer equipment
CN111506784B (en) Asset creditor matching method, device, computer equipment and storage medium
CN107609871B (en) Payment track reproduction method, device, system, electronic equipment and storage medium
CN111951076A (en) Order payment method and device, storage medium and electronic equipment
KR101586478B1 (en) Method and system for providing accurate information associated with transaction in search environment
CN113763069A (en) Method, device and equipment for generating article information display page and storage medium
KR20170024175A (en) Method of service providing realtime mobie coupon
JP6730170B2 (en) Management device, method and program

Legal Events

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