Value-added product charging generation method and device, electronic equipment and storage medium
By generating billing data, the problem of different licensees setting different discount prices for the same product is solved, flexible price management and efficiency improvement are achieved, and frequent modifications of product attributes by the business platform are avoided.
Patent Information
- Application Number
- CN202311578675.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-23
- Publication Date
- 2024-10-18
AI Technical Summary
Existing technology cannot enable different licensees to set different flexible discount prices for the same product, and requires the business platform to modify product attributes.
By obtaining the product billing request from the licensee, billing data is generated based on product identification, quantity, price discount attributes and preset prices, without the need for the business platform to modify product attributes, allowing different licensees to set different discount prices for the same product at different stages. .
It improves the efficiency of the billing process, allows licensees to dynamically configure products and discount rates, reduces the need for manual configuration of the business platform, and achieves flexible price management.
Smart Images

Figure CN118799002A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of home business technology, and in particular to a method, device, electronic device and storage medium for generating billing for value-added products. Background Art
[0002] In a broad sense, OTT (Over-The-Top) business refers to Internet companies using smart TVs as terminals to provide users with video, game, shopping and other services. In a narrow sense, OTT refers to Internet companies using Internet TV or "TV + box" as platforms to provide users with video, game, shopping and other services on the public Internet. Its important carrier is OTT large-screen TV (also known as OTT large screen or Internet TV). Smart large-screen TVs have transformed from a single traditional TV program carrier to a multi-functional service tool that integrates fitness, games, education, etc. The application of comprehensive videos, short videos, education, games, fitness, music, e-commerce, advertising and other scenarios has enriched users' living room life, and has gradually transformed from a single film and television service carrier to a diversified service tool.
[0003] To this end, it is necessary to charge value-added products based on different OTT business scenarios. Existing value-added products all establish product information based on business scenarios and generate initial services using flexible billing templates. Existing technologies constrain flexible billing templates from product dimension constraints, quantity dimension constraints, and time dimension constraints, and cannot achieve different flexible discount prices for the same product by different licensees. If the licensee needs to change the product's price, discount rate and other attributes, it needs to notify the business platform to modify the product's attributes before it can take effect. Summary of the invention
[0004] The present application provides a method, device, electronic device and storage medium for generating billing for a value-added product, which are used to solve the defect in the prior art that different licensees cannot provide different flexible discount prices for the same product, and the business platform needs to modify the attributes of the product.
[0005] In a first aspect, the present application provides a method for generating billing for a value-added product, applicable to a business platform, comprising:
[0006] Obtain a product billing request from at least one licensee, and obtain the licensee ID, product ID, and product quantity;
[0007] If the business platform has a product price discount attribute corresponding to the licensee identifier and the product identifier, billing data is generated according to the product identifier, the product quantity, the product price discount attribute and the preset product price.
[0008] In one embodiment, generating the billing data according to the product identifier, the product quantity, the product price discount attribute and the preset product price includes:
[0009] Determining a payment amount based on the product quantity, the product price discount attribute, and the product price;
[0010] The product identifier, the product quantity, the product price and the payment amount are used as input parameters of the payment system interface;
[0011] After obtaining the payment link address information responded by the payment system, a pre-order is generated according to the licensee ID, the product ID, the product quantity, the product price, the payment amount, the product effective time, the product expiration time and the user ID;
[0012] The billing data includes the payment link address information and the pre-order form, and the product effective time, the product expiration time and the user identifier are determined based on the product billing request.
[0013] In one embodiment, after generating the reservation order, the method further includes:
[0014] Transmitting the payment link address information to the license holder;
[0015] Filtering a target pre-order from all the pre-orders according to the payment callback order number sent by the payment system, and generating a formal order according to the target pre-order;
[0016] The formal order, the user ID, the product ID, the product effective time and the product expiration time are synchronized to the license holder.
[0017] In one embodiment, before obtaining the product billing request of at least one licensee and obtaining the licensee identifier, product identifier and product quantity, the method further includes:
[0018] Acquire a product attribute setting request from at least one of the license holders based on the product price setting interface, and determine the license holder identifier, product identifier, and product price discount attributes;
[0019] Determine whether there is product price discount information corresponding to the licensee based on the licensee ID and the product ID. If not, save the information in the database based on the licensee ID, the product ID and the product price discount attribute. If so, update the product price discount information based on the licensee ID, the product ID and the product price discount attribute.
[0020] In a second aspect, the present application provides a method for generating billing for value-added products, applicable to a licensee, including:
[0021] In response to a product ordering request initiated by a user, a product billing request is initiated to a service platform, so that the service platform generates billing data according to the licensee identifier, product identifier, product quantity and preset product price;
[0022] The product billing request includes the licensee identifier, the product identifier and the product quantity.
[0023] In one embodiment, it further includes:
[0024] Before responding to the product ordering request initiated by the user or after receiving the product price discount attribute setting prompt sent by the business platform, the licensee identifier, the product identifier and the product price discount attributes are sent to the business platform based on the product price setting interface to implement the product price discount attribute configuration.
[0025] In one embodiment, it further includes:
[0026] The billing data is presented to the user in a preset format.
[0027] In a third aspect, the present application further provides a value-added product billing generation device, comprising:
[0028] An acquisition module, used to acquire a product billing request from at least one licensee, and obtain a licensee ID, a product ID, and a product quantity;
[0029] A generation module is used to generate billing data according to the product identification, the product quantity, the product price discount attribute and the preset product price if the business platform has a product price discount attribute corresponding to the licensee identification and the product identification.
[0030] In a fourth aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the value-added product billing generation method as described in any one of the above is implemented.
[0031] In a fifth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described value-added product billing generation methods.
[0032] The value-added product billing generation method, device, electronic device and storage medium provided in the present application obtain a product billing request from at least one licensee, and obtain the licensee ID, product ID and product quantity; if the business platform has a product price discount attribute corresponding to the licensee ID and the product ID, then the billing data is generated according to the product ID, the product quantity, the product price discount attribute and the preset product price. When the licensee requests product billing, the present application generates billing data according to the product price discount attribute pre-configured by the licensee, without the need for the business platform to modify the product attributes. The same licensee can set different flexible discount prices for the same product at different stages, and different licensees can set different flexible discount prices for the same product at the same stage. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 It is one of the flow charts of the value-added product billing generation method provided by this application;
[0035] Figure 2 This application provides Figure 1 Schematic diagram of the process of step S120;
[0036] Figure 3 This is the second flow chart of the value-added product billing generation method provided by this application;
[0037] Figure 4 It is a principle block diagram of the value-added product billing generation device provided by this application;
[0038] Figure 5 It is a schematic diagram of the structure of the electronic device provided by this application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] An OTT (Over-The-Top) licensee is an institution or organization that grants an entity or individual the right to operate, provide or use specific services in the field of OTT services. Each licensee has dozens or even hundreds of value-added products, and the business platform brings together a large number of value-added products from all licensees. Different licensees may have different prices for the same product. The conventional method is for licensees to set their own products, and the staff of the business platform manually modify the price according to the licensee's product settings, which is inefficient.
[0041] To this end, this application implements automated billing through an interface, reducing manual operations on the business platform and improving process efficiency.
[0042] Figure 1 This is one of the flow charts of the value-added product billing generation method provided by this application, such as Figure 1 As shown, the present application provides a method for generating billing for value-added products, which is applicable to a business platform, including:
[0043] S110, obtain a product billing request from at least one licensee, and obtain the licensee ID, product ID and product quantity; the product billing request is generated based on a value-added product ordering request initiated by a user, and the value-added product ordering request includes a user ID (such as a user's mobile phone number), a product name, a product ID and a product quantity, wherein the product quantity refers to the number of product ordering months, such as 1 month, 3 months, 6 months, 1 year, etc. After the licensee obtains the value-added product ordering request, a product billing request is generated, and the product billing request includes a licensee ID, a user ID, a product name, a product ID and a product quantity, and the product ID may be a product ID.
[0044] S120, if the business platform has a product price discount attribute corresponding to the licensee identifier and the product identifier, billing data is generated according to the product identifier, the product quantity, the product price discount attribute and the preset product price.
[0045] The business platform queries whether the product price discount information already exists on the business platform according to the licensee ID and product ID. If not, the licensee is prompted to set the product price discount attribute. If so, the billing data is generated according to the product ID, the product quantity, the product price discount attribute and the preset product price. Among them, the preset product price is fixed and will only be adjusted according to the product price discount information corresponding to the licensee. The product price discount attribute can be less than 100% or greater than 100%.
[0046] It can be understood that when the licensee requests product billing, this application generates billing data based on the product price discount attributes pre-configured by the licensee, and there is no need for the business platform to modify the product attributes. The same licensee can set different flexible discount prices for the same product at different stages, and different licensees can set different flexible discount prices for the same product at the same stage. The licensee can configure the product and the current licensee's flexible discount rate and other attributes according to demand, thereby realizing dynamic configuration of the product. There is no need for the business platform to manually configure the product's basic information and discount rate and other attributes, thereby improving efficiency.
[0047] Figure 2 This application provides Figure 1 The flowchart of step S120 is as follows: Figure 2 As shown, in one embodiment, generating the billing data according to the product identification, the product quantity, the product price discount attribute and the preset product price includes:
[0048] S210, determine the payment amount according to the product quantity, the product price discount attribute and the product price; specifically, the product price discount attribute may include a 1-month discount rate, a 3-month discount rate, a 6-month discount rate and a 1-year discount rate, select the corresponding target discount rate according to the product quantity, and then multiply the target discount rate by the product price to obtain the payment amount.
[0049] S220, the product identification, the product quantity, the product price and the payment amount are used as input parameters of the payment system interface; optionally, the business platform uses attributes such as user mobile phone number, order number, product price, payment amount, product identification, product quantity, product name, etc. as input parameters.
[0050] S230, after obtaining the payment link address information responded by the payment system, generating a pre-order according to the licensee identifier, the product identifier, the product quantity, the product price, the payment amount, the product effective time, the product expiration time, and the user identifier;
[0051] The billing data includes the payment link address information and the pre-order form, and the product effective time, the product expiration time and the user identifier are determined based on the product billing request.
[0052] Optionally, the business platform calls the payment system interface through HTTPS+JSON to obtain the payment link address information; specifically, calling the interface using HTTPS+JSON requires the following steps: determine the URL and request method (POST) of the interface, create an HTTP request object, set the request URL and method, set the request parameters and data, and send them in JSON format.
[0053] The payment system interface receives the POST request message from the business platform, and responds to the business platform with a message containing the payment link address according to the message content; the payment link address information can be in the form of a QR code.
[0054] Based on the successful response of the payment system, the business platform stores the licensee identification, product name, product price, product identification, payment amount, product effective time, product expiration time, user mobile phone number and other information in the database and generates a pre-order.
[0055] It can be understood that the present application provides a technical solution for generating billing data, which can generate billing data based on the product price discount attributes of the licensee. The licensee can configure the product and the current licensee's flexible discount rate and other attributes according to demand, thereby realizing dynamic configuration of the product. There is no need for the business platform to manually configure product basic information and discount rate and other attributes, thereby improving efficiency.
[0056] In one embodiment, after generating the reservation order, the method further includes:
[0057] The payment link address information is transmitted to the licensee; the payment link address information may be in the form of a QR code, and the licensee displays the payment link address information to the user in the form of a QR code. The user may choose one of the payment methods, such as Alipay, WeChat, and Baobao, and pay by scanning the code through the corresponding APP.
[0058] Filtering a target pre-order from all the pre-orders according to the payment callback order number sent by the payment system, and generating a formal order according to the target pre-order;
[0059] The formal order, the user ID, the product ID, the product effective time and the product expiration time are synchronized to the license holder.
[0060] Specifically, the payment system synchronizes the successful payment information of the QR code scan to the business platform asynchronously; the business platform queries the pre-order information based on the order number of the payment callback, generates a formal order, and then synchronizes the order information: order number, user mobile phone number, product identification, product name, product effective time, product expiration time, etc. to the licensee. The licensee receives the order message synchronized by the business platform and saves it into the database.
[0061] It can be understood that after the user scans the code and pays successfully, the application synchronizes the user's order information between the licensee, business platform and payment system to achieve information synchronization.
[0062] In one embodiment, the business platform is also used to periodically perform consistency verification on the product ordering information of each license holder.
[0063] Specifically, the first ordering information stored by the business platform and the second ordering information stored in the database by the licensee are obtained; wherein the first ordering information includes all formal orders within a preset time period, and the formal orders are stored in the first hash table with the order number as the key and the user's mobile phone number, product ID, product name, product effective time, product expiration time and other information as the value; the second ordering information includes the ordering message synchronized from the business platform and the value-added product ordering request corresponding to the ordering message, which is stored in the second hash table with the order number as the key and the field information contained in the ordering message as the value; and is stored in the third hash table with the order number as the key and the field information contained in the value-added product ordering request as the value.
[0064] Taking the third hash table as a reference, the first hash table and the second hash table are searched respectively to obtain inconsistent data in the first hash table, the second hash table and the third hash table. If there is redundant data in the first hash table and the second hash table, that is, data that does not exist in the third hash table, the data in the first hash table and the second hash table are deleted. If there is redundant data in the third hash table, that is, data that does not exist in the first hash table and the second hash table, the corresponding data is added to the first hash table and the second hash table after verifying the user payment record.
[0065] This application performs consistency verification on the product ordering information of each licensee to avoid situations where the product is not provided to the user after the user has paid or where the service is provided without the user having paid.
[0066] In one embodiment, before obtaining the product billing request of at least one licensee and obtaining the licensee identifier, product identifier and product quantity, the method further includes:
[0067] Based on the product price setting interface, obtain at least one product attribute setting request of the licensee, determine the licensee ID, product ID and product price discount attributes; optionally, the licensee sets the basic information and discount rate attributes of the product, and calls the business platform productPriceSetting interface through HTTPS+JSON to synchronize product discount messages. The request type is POST, and the request message parameters include: licensee ID, product name, product price, product ID, January discount rate, March discount rate, June discount rate and 1 year discount rate and other information.
[0068] The productPriceSetting interface is a private protocol interface of the business platform. Before each license holder accesses the interface, it needs to apply to the business platform for the license holder's unique name appId and license holder's secret key appSecret of the business platform data request interface. When the license holder requests each interface of the business platform, the signature sign is generated through MD5Hex (license holder's unique name appId+","+timestamp timestamp+","+license holder's secret key appSecret), and then the timestamp timestamp, license holder's unique name appId and signature sign are passed in the request header. After the business platform receives the license holder's request message, it queries the license holder's secret key appSecret based on the license holder's unique name appId in the request header, and parses the signature sign in combination with the timestamp timestamp to verify whether the consumer's request message meets the standard.
[0069] Determine whether there is product price discount information corresponding to the licensee based on the licensee ID and the product ID. If not, save it in the database based on the licensee ID, the product ID and the product price discount attribute. If it exists, update the product price discount information based on the licensee ID, the product ID and the product price discount attribute. Optionally, the business platform interface receives a POST request from the licensee, and queries whether product price discount information already exists based on the licensee's unique ID and product ID. If not, save the licensee ID, product name, product price, product ID, January discount rate, March discount rate, June discount rate and 1-year discount rate; if it exists, update the product name, product price, product ID, January discount rate, March discount rate, June discount rate and 1-year discount rate through the licensee ID and product ID.
[0070] It can be understood that this application provides specific steps for the licensee to set product price discount information. Through the preset product price setting interface, the automatic configuration and batch configuration of product price discount information can be achieved, which greatly improves efficiency.
[0071] The following is a detailed description of the value-added product billing generation method of the licensee, and the following technical solution can be compared with the value-added product billing generation method of the business platform.
[0072] This application provides a method for generating billing for value-added products, applicable to licensees, including:
[0073] In response to a product ordering request initiated by a user, a product billing request is initiated to a service platform, so that the service platform generates billing data according to the licensee identifier, product identifier, product quantity and preset product price;
[0074] The product billing request includes the licensee identifier, the product identifier and the product quantity.
[0075] Optionally, the business platform generates billing data based on the licensee ID, product ID, product quantity and preset product price, including determining the payment amount based on the product quantity, the product price discount attribute and the product price; using the product ID, the product quantity, the product price and the payment amount as input parameters of the payment system interface; after obtaining the payment link address information responded by the payment system, generating a reservation order based on the licensee ID, the product ID, the product quantity, the product price, the payment amount, the product effective time, the product expiration time and the user ID; wherein the billing data includes the payment link address information and the reservation order, and the product effective time, the product expiration time and the user ID are determined based on the product billing request.
[0076] In one embodiment, the present application provides a method for generating value-added product billing, further comprising:
[0077] Before responding to the product ordering request initiated by the user or after receiving the product price discount attribute setting prompt sent by the business platform, the licensee identifier, the product identifier and the product price discount attributes are sent to the business platform based on the product price setting interface to implement the product price discount attribute configuration.
[0078] In one embodiment, the present application provides a method for generating billing for a value-added product, further comprising:
[0079] The billing data is displayed to the user in a preset form. Specifically, the billing data includes the payment link address information and the reservation order. The licensee can display the payment link address information to the user in the form of a QR code, and the user can choose one of the payment methods such as Alipay, WeChat, and Baobao, and pay by scanning the code through the corresponding APP.
[0080] After the user completes the order, the licensee will also use it to authenticate based on the user's mobile phone number and the product's unique identifier. After successful authentication, the user can enjoy the service normally.
[0081] Figure 3 This is the second flow chart of the value-added product billing generation method provided by this application, such as Figure 3 As shown, the present application also provides a value-added product billing generation system, including a licensee, a business platform and a payment system. The value-added product billing generation method based on the value-added product billing generation system specifically includes the following steps:
[0082] Step 1. Set the basic information and discount rate attributes of the product. The licensee calls the productPriceSetting interface of the business platform through HTTPS+JSON to synchronize product discount information. The request type is POST. The request message parameters include: the licensee's unique identifier, product name, product price, product id, January discount rate, March discount rate, June discount rate, and 1-year discount rate;
[0083] Step 2. The business platform interface receives the POST request from the licensee, and checks whether the product price discount information already exists based on the licensee's unique identifier and product ID. If not, the licensee's unique identifier, product name, product price, product ID, January discount rate, March discount rate, June discount rate and 1-year discount rate and other information are stored in the database; if it exists, the product name, product price, product ID, January discount rate, March discount rate, June discount rate and 1-year discount rate and other information are updated through the licensee's unique identifier and product ID;
[0084] Step 3. The user obtains the equity payment QR code.
[0085] Step 3.1: The user clicks on the TV screen to obtain the product rights payment QR code;
[0086] Step 3.2: The licensee platform requests the business platform to obtain the payment QR code interface;
[0087] Step 3.3, the business platform queries whether the platform already has product price discount information based on the licensee's unique identifier and product ID. If not, the business platform prompts the licensee to set the product price discount attribute; if so, the business platform calculates the actual product discount price (i.e., payment amount) that the current user needs to pay based on the product name, product price, 1-month discount rate, 3-month discount rate, 6-month discount rate, 1-year discount rate, and product quantity (i.e., number of subscription months) in the licensee's request message using the product billing formula;
[0088] Step 3.4: The business platform uses the user's mobile phone number, order number, product price, payment amount, product ID, product quantity, product name and other attributes as input parameters, calls the payment system interface through HTTPS+JSON, and obtains the QR code payment link address information;
[0089] Step 3.5: The payment system interface receives the POST request message from the business platform, and responds to the business platform with a message containing the payment QR code link address according to the message content;
[0090] Step 3.6: Based on the successful response of the payment system, the business platform stores the license holder’s unique identifier, product name, product price, product ID, product payment amount, effective time, expiration time, user’s mobile phone number and other information in the database and generates a pre-order;
[0091] Step 3.7: The business platform responds to the license holder with the payment QR code link address information;
[0092] Step 3.8: The license holder will display the payment QR code link address to the user in the form of a QR code;
[0093] Step 4. Users can choose one of the payment methods, Alipay, WeChat, or Baobao, and pay by scanning the code through the corresponding APP;
[0094] Step 5. Payment system asynchronous callback.
[0095] Step 5.1: The payment system synchronizes the successful payment information of the QR code scan to the business platform asynchronously;
[0096] Step 5.2: The business platform queries the pre-order information based on the order number of the payment callback and generates a formal order;
[0097] Step 5.3: The business platform will synchronize the order information, including order number, user mobile phone number, product ID, product name, effective time, expiration time, etc., to the license holder;
[0098] Step 5.4: The license holder receives the ordering message synchronized from the business platform and saves it into the database;
[0099] Step 6. Service rights authentication.
[0100] Step 6.1, the user clicks on the service;
[0101] Step 6.2: The licensee platform authenticates the user based on their mobile phone number and the product’s unique identifier;
[0102] Step 6.3: The license holder authenticates successfully and the user can enjoy the service normally.
[0103] In summary, the present application allows the licensee to dynamically configure the attributes of products, product prices, discount rates, etc., avoiding manual modification of product attributes by the business platform, and enabling the same licensee to set different flexible discount prices for the same product at different stages, and different licensees to set different flexible discount prices for the same product at the same stage. Through flexible configuration of product prices and discount rates, promotional activities for large-screen TV value-added products can be quickly implemented, greatly enriching the user experience, which is of great significance to the development of large-screen TV OTT value-added services.
[0104] The value-added product billing generation device provided in the present application is described below. The value-added product billing generation device described below and the value-added product billing generation method described above can be referenced to each other.
[0105] Figure 4 This is a principle block diagram of the value-added product billing generation device provided by this application, such as Figure 4 As shown, the present application also provides a value-added product billing generation device, including:
[0106] The acquisition module 410 is used to acquire a product billing request from at least one licensee, and obtain a licensee identifier, a product identifier, and a product quantity;
[0107] The generation module 420 is used to generate billing data according to the product identification, the product quantity, the product price discount attribute and the preset product price if the business platform has a product price discount attribute corresponding to the licensee identification and the product identification.
[0108] In one embodiment, the generating module 420 is further configured to:
[0109] Determining a payment amount based on the product quantity, the product price discount attribute, and the product price;
[0110] The product identifier, the product quantity, the product price and the payment amount are used as input parameters of the payment system interface;
[0111] After obtaining the payment link address information responded by the payment system, a pre-order is generated according to the licensee ID, the product ID, the product quantity, the product price, the payment amount, the product effective time, the product expiration time and the user ID;
[0112] The billing data includes the payment link address information and the pre-order form, and the product effective time, the product expiration time and the user identifier are determined based on the product billing request.
[0113] In one embodiment, it further includes:
[0114] A synchronization module is used to transmit the payment link address information to the licensee; filter out a target pre-order from all the pre-orders according to the payment callback order number sent by the payment system, and generate a formal order according to the target pre-order; and synchronize the formal order, the user ID, the product ID, the product effective time and the product expiration time to the licensee.
[0115] In one embodiment, it further includes:
[0116] A configuration module is used to obtain a product attribute setting request from at least one of the licensees based on the product price setting interface, determine the licensee ID, product ID and product price discount attributes; determine whether there is product price discount information corresponding to the licensee based on the licensee ID and the product ID; if not, store the information in a database based on the licensee ID, the product ID and the product price discount attributes; if so, update the product price discount information based on the licensee ID, the product ID and the product price discount attributes.
[0117] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the value-added product billing generation method, which includes:
[0118] Obtain a product billing request from at least one licensee, and obtain the licensee ID, product ID, and product quantity;
[0119] If the business platform has a product price discount attribute corresponding to the licensee identifier and the product identifier, billing data is generated according to the product identifier, the product quantity, the product price discount attribute and the preset product price.
[0120] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0121] On the other hand, the present application further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the value-added product billing generation method provided by the above methods, the method comprising:
[0122] Obtain a product billing request from at least one licensee, and obtain the licensee ID, product ID, and product quantity;
[0123] If the business platform has a product price discount attribute corresponding to the licensee identifier and the product identifier, billing data is generated according to the product identifier, the product quantity, the product price discount attribute and the preset product price.
[0124] In another aspect, the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the value-added product billing generation method provided by the above methods is implemented, and the method includes:
[0125] Obtain a product billing request from at least one licensee, and obtain the licensee ID, product ID, and product quantity;
[0126] If the business platform has a product price discount attribute corresponding to the licensee identifier and the product identifier, billing data is generated according to the product identifier, the product quantity, the product price discount attribute and the preset product price.
[0127] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating billing for value-added products, characterized in that: Applicable to business platforms, including: Obtain a product billing request from at least one licensee, and obtain the licensee ID, product ID, and product quantity; If the business platform has a product price discount attribute corresponding to the licensee identifier and the product identifier, billing data is generated according to the product identifier, the product quantity, the product price discount attribute and the preset product price.
2. The method for generating value-added product billing according to claim 1, characterized in that: The generating of the billing data according to the product identification, the product quantity, the product price discount attribute and the preset product price includes: Determining a payment amount based on the product quantity, the product price discount attribute, and the product price; The product identifier, the product quantity, the product price and the payment amount are used as input parameters of the payment system interface; After obtaining the payment link address information responded by the payment system, a pre-order is generated according to the licensee ID, the product ID, the product quantity, the product price, the payment amount, the product effective time, the product expiration time and the user ID; The billing data includes the payment link address information and the pre-order form, and the product effective time, the product expiration time and the user identifier are determined based on the product billing request.
3. The method for generating value-added product billing according to claim 2, characterized in that: After generating the reservation order, it also includes: Transmitting the payment link address information to the license holder; Filtering a target pre-order from all the pre-orders according to the payment callback order number sent by the payment system, and generating a formal order according to the target pre-order; The formal order, the user ID, the product ID, the product effective time and the product expiration time are synchronized to the license holder.
4. The method for generating value-added product billing according to claim 1, characterized in that: Before obtaining the product billing request of at least one licensee and obtaining the licensee identifier, product identifier and product quantity, the method further includes: Acquire a product attribute setting request from at least one of the license holders based on the product price setting interface, and determine the license holder identifier, product identifier, and product price discount attributes; Determine whether there is product price discount information corresponding to the licensee based on the licensee ID and the product ID. If not, save the information in the database based on the licensee ID, the product ID and the product price discount attribute. If so, update the product price discount information based on the licensee ID, the product ID and the product price discount attribute.
5. A method for generating billing for value-added products, characterized in that: Applicable to licensees, including: In response to a product ordering request initiated by a user, a product billing request is initiated to a service platform, so that the service platform generates billing data according to the licensee identifier, product identifier, product quantity and preset product price; The product billing request includes the licensee identifier, the product identifier and the product quantity.
6. The method for generating value-added product billing according to claim 5, characterized in that: Also includes: Before responding to the product ordering request initiated by the user or after receiving the product price discount attribute setting prompt sent by the business platform, the licensee identifier, the product identifier and the product price discount attributes are sent to the business platform based on the product price setting interface to implement the product price discount attribute configuration.
7. The method for generating value-added product billing according to claim 5, characterized in that: Also includes: The billing data is presented to the user in a preset format.
8. A value-added product billing generating device, characterized in that: include: An acquisition module, used to acquire a product billing request from at least one licensee, and obtain a licensee ID, a product ID, and a product quantity; A generation module is used to generate billing data according to the product identification, the product quantity, the product price discount attribute and the preset product price if the business platform has a product price discount attribute corresponding to the licensee identification and the product identification.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the value-added product billing generation method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the value-added product billing generation method according to any one of claims 1 to 7 is implemented.
