Commodity settlement method, commodity settlement device, local computer equipment and storage medium

文档序号:1954321 发布日期:2021-12-10 浏览:14次 中文

阅读说明:本技术 商品结算方法、装置、本地计算机设备和存储介质 (Commodity settlement method, commodity settlement device, local computer equipment and storage medium ) 是由 丘捷永 颜肖珂 江明辉 彭俊 刘科 于 2021-08-23 设计创作,主要内容包括:本发明实施例提供商品结算方法、装置、本地计算机设备及存储介质,其中,商品结算方法包括:获取商品结算信息,以及商品结算信息对应的总价;获取付款码信息,确认与付款码信息对应的第三方支付平台;根据总价和付款码信息生成交易订单并发送至第一云端服务器,以使第一云端服务器将交易订单发送至与第三方支付平台进行结算;接收第二云端服务器推送的交易成功消息,完成商品结算,达到实时掌握交易动态的效果。本发明通过将采集到的二维码信息和商品信息生成交易订单并发送至第一云端服务器,通过第一云端服务器和各支付平台的连接关系进行结算,无需从收银系统对接支付平台接口,解决了小商家需要花费大量成本升级或更换收银系统的问题。(The embodiment of the invention provides a commodity settlement method, a commodity settlement device, local computer equipment and a storage medium, wherein the commodity settlement method comprises the following steps: acquiring commodity settlement information and a total price corresponding to the commodity settlement information; acquiring payment code information, and confirming a third party payment platform corresponding to the payment code information; generating a transaction order according to the total price and the payment code information and sending the transaction order to the first cloud server so that the first cloud server sends the transaction order to the third-party payment platform for settlement; and receiving a transaction success message pushed by the second cloud server, finishing commodity settlement, and achieving the effect of mastering transaction dynamic in real time. According to the invention, the transaction order is generated by the collected two-dimensional code information and the commodity information and is sent to the first cloud server, settlement is carried out through the connection relation between the first cloud server and each payment platform, a payment platform interface does not need to be connected with a cash register system, and the problem that a small merchant needs to spend a large amount of cost to upgrade or replace the cash register system is solved.)

1. A method for settlement of goods, applied to a local computer device, the method comprising:

acquiring commodity settlement information and a total price corresponding to the commodity settlement information;

acquiring payment code information, and confirming a third-party payment platform corresponding to the payment code information according to the payment code information;

generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms;

and receiving a transaction success message pushed by a second cloud server, and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

2. The commodity settlement method according to claim 1, wherein the acquiring of the commodity settlement information and the total price corresponding to the commodity settlement information includes:

acquiring commodity settlement information obtained by scanning commodity feature codes by scanning equipment, and generating a settlement list according to the commodity settlement information of one or more commodities, wherein the scanning equipment is connected with the local computer equipment, the commodity settlement information comprises commodity unit prices, and the commodity feature codes comprise bar codes;

and extracting the commodity unit prices of all the settlement commodities from the settlement list, and calculating to obtain the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities.

3. The commodity settlement method according to claim 1, wherein the acquiring the payment code information includes:

and monitoring a keyboard event, and acquiring keying data of the keyboard event as payment code information under the condition that the scanning equipment scans the payment code and triggers a preset keyboard event.

4. The item settlement method according to claim 1, wherein the confirming of the third party payment platform corresponding to the payment code information based on the payment code information comprises:

detecting whether the payment code information is matched with any one of a plurality of preset payment code formats;

and if so, determining the payment platform corresponding to the preset payment code format matched with the payment code information as the third party payment platform.

5. The commodity settlement method according to claim 2, wherein the commodity settlement information further includes shelf life information; after the generating of the settlement list according to the commodity settlement information of one or more commodities, the method further comprises:

acquiring the quality guarantee period information from the commodity settlement information, and judging whether the commodity is overdue according to the quality guarantee period information;

and when the commodity is expired, deleting the expired commodity from the settlement list and sending out an expiration warning message.

6. The commodity settlement method according to claim 2, wherein the commodity settlement information further includes offer information; the calculating the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities comprises the following steps:

calculating the actual single-item sum of each commodity according to the discount information of each commodity and the commodity unit price of each commodity;

and adding the actual sum of the single commodities of all the commodities in the settlement list to obtain the total price corresponding to the commodity settlement information.

7. The commodity settlement method according to claim 1, further comprising, after the receiving a transaction success message pushed by the second cloud server:

and generating a receipt data file according to the commodity settlement information, the transaction order and the transaction data in the transaction success message, and sending the receipt data file to a printing device connected with the local computer device to print the receipt or broadcast the receipt in a voice mode.

8. An article settlement apparatus, characterized in that the apparatus comprises:

the first acquisition module is used for acquiring commodity settlement information and a total price corresponding to the commodity settlement information;

the second acquisition module is used for acquiring payment code information and confirming a third-party payment platform corresponding to the payment code information according to the payment code information;

the settlement module is used for generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms;

the receiving module is used for receiving a transaction success message pushed by a second cloud server and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.

10. Local computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of online payment, in particular to a commodity settlement method, a commodity settlement device, local computer equipment and a storage medium.

Background

With the economic development and the maturity of online payment technology, online payment methods such as code scanning payment are silently integrated into the daily consumption of people, and the personal shadows of various cash registers or payment codes are not enough no matter online shopping or transactions in physical stores such as retail stores and supermarkets.

Meanwhile, different payment channels are increasing day by day, and the increased payment channels are a little challenge for cashiers of small supermarkets or small merchants, and certain cost investment is needed for secondary development, purchase and rental of new cashier systems on the original cashier systems.

Disclosure of Invention

In view of the above, it is necessary to provide a commodity settlement method, apparatus, local computer device and storage medium.

A method of settlement of goods, the method comprising:

acquiring commodity settlement information and a total price corresponding to the commodity settlement information;

acquiring payment code information, and confirming a third-party payment platform corresponding to the payment code information according to the payment code information;

generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms;

and receiving a transaction success message pushed by a second cloud server, and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

An article settlement apparatus, the apparatus comprising:

the first acquisition module is used for acquiring commodity settlement information and a total price corresponding to the commodity settlement information;

the second acquisition module is used for acquiring payment code information and confirming a third-party payment platform corresponding to the payment code information according to the payment code information;

the settlement module is used for generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms;

the receiving module is used for receiving a transaction success message pushed by a second cloud server and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

A local computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:

acquiring commodity settlement information and a total price corresponding to the commodity settlement information;

acquiring payment code information, and confirming a third-party payment platform corresponding to the payment code information according to the payment code information;

generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms;

and receiving a transaction success message pushed by a second cloud server, and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:

acquiring commodity settlement information and a total price corresponding to the commodity settlement information;

acquiring payment code information, and confirming a third-party payment platform corresponding to the payment code information according to the payment code information;

generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms;

and receiving a transaction success message pushed by a second cloud server, and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

According to the commodity settlement method, the commodity settlement device, the local computer equipment and the storage medium, commodity settlement information and the total price corresponding to the commodity settlement information are obtained firstly; then payment code information is obtained, and a third party payment platform corresponding to the payment code information is confirmed according to the payment code information; generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms; and finally, receiving a transaction success message pushed by a second cloud server to complete commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server successfully transacts with the payment platform. According to the invention, the transaction order is generated by the collected two-dimensional code information and the commodity information and is sent to the first cloud server, settlement is carried out through the connection relation between the cloud server and each payment platform, and an interface of the payment platform is butted without a cash register system, so that the problem that a small supermarket or a small merchant needs to customize, upgrade or replace the cash register system according to a new payment channel is solved, and a large amount of cost is saved; meanwhile, the first cloud server is monitored through the second cloud server, and the effect of mastering transaction dynamic in real time can be achieved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Wherein:

FIG. 1 is a flowchart showing an embodiment of a commodity settlement method;

FIG. 2 is a block diagram showing the structure of a commodity settlement apparatus according to an embodiment;

FIG. 3 is a block diagram of a local computer device in one embodiment.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

As shown in fig. 1, in an embodiment, a commodity settlement method applied to a local computer device is provided, and specifically includes the following steps:

and 102, acquiring commodity settlement information and a total price corresponding to the commodity settlement information.

The local computer equipment is computer equipment which is deployed in a small supermarket or a small shop and is provided with a Windows system, is used for managing warehousing and ex-warehouse of commodities, calculating income and the like after relevant cash register software or systems are installed, is more suitable for the actual conditions of the small supermarket or the small shop, and can be used for settlement and management of the commodities only by accessing scanning equipment for scanning commodity feature codes and printing equipment for printing tickets on the basis of a household computer.

The commodity settlement information is information required by commodity settlement, and comprises commodity names, commodity unit prices, shelf life information, preference information and the like; it is understood that the commodity settlement information may include one commodity or a plurality of commodities, and the sum of the commodity unit prices of each commodity is the total price corresponding to the commodity settlement information.

More specifically, in some possible embodiments, the obtaining of the commodity settlement information and the total price corresponding to the commodity settlement information includes: acquiring commodity settlement information obtained by scanning commodity feature codes by scanning equipment, and generating a settlement list according to the commodity settlement information of one or more commodities, wherein the scanning equipment is connected with the local computer equipment, the commodity settlement information comprises commodity unit prices, and the commodity feature codes comprise bar codes; and extracting the commodity unit prices of all the settlement commodities from the settlement list, and calculating to obtain the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities.

The scanning equipment is used for scanning the commodity feature codes and the payment codes, can be a scanning gun only used for scanning bar codes, and is suitable for the conditions of most merchants and commodities, because the feature codes carried by common commodities are bar codes, and the common payment codes can be displayed in a bar code form; the scanner can also be a scanner with higher image scanning function, and the function of image recognition is added on the basis of the function of scanning bar codes, so that the scanner is suitable for more complicated commodity feature codes and payment codes.

The commodity feature code is used to identify an individual commodity, generally, after digital information corresponding to the commodity feature code is obtained by scanning through a scanning device, the digital information is sent to a local computer device through a connection relationship, the local computer device obtains commodity information corresponding to the digital information from a commodity management system or a cash register system according to the digital information, and commodity settlement information is obtained through screening. In practical application, the commodity feature code is generally a bar code, and a plurality of black bars and spaces with different widths are arranged according to a certain coding rule to express a graphical identifier of a group of information. It will be appreciated that the product feature code may also be a graphic code, a three-dimensional code, or other feature code for pointing to a specific individual product.

In other possible embodiments, the scanning device connected with the local computer device directly acquires images of a plurality of commodities to be settled, and extracts one or more commodity feature codes from the images of the commodities to obtain corresponding commodity settlement information, so as to acquire the commodity settlement information of the commodities by one-time scanning. The merchant staff only need to adjust the scanning angle for the commodity which is not obtained or identified with the commodity feature code and then scan again, and the efficiency of scanning and collecting commodity settlement information is improved.

In one possible embodiment, after commodity settlement information is obtained, the commodity settlement information is matched according to a preset regular expression, a data structure of the commodity settlement information is confirmed, commodity names and commodity unit prices in the data structure are extracted, and finally the commodity names and the commodity unit prices are displayed on a first screen of local computer equipment and a second screen used for confirming the commodity information for a customer. The commodity feature code may be a factory code or an in-store code, and the data structure of commodity settlement information contained in the commodity feature code is not necessarily uniform, so that commodity unit price information can be accurately extracted from commodity settlement information by presetting a regular expression of the corresponding data structure in local computer equipment when commodities are put in storage.

For example, the data structure of the commodity feature code information of the coke produced by the manufacturer is { commodity name, commodity unit price, commodity shelf life information }, and the data structure of the commodity feature code information of the roast chicken packed on site in the store is { commodity name, commodity shelf life information, commodity unit price }, so that the data structure and the position of the commodity unit price thereof need to be confirmed before information extraction.

The settlement list is used for displaying commodity settlement information of commodities to be settled and commodity total prices calculated through discounts, benefits and the like.

In particular, in some possible embodiments, the commodity settlement information further includes shelf life information; after the generating of the settlement list according to the commodity settlement information of one or more commodities, the method further comprises: acquiring the quality guarantee period information from the commodity settlement information, and judging whether the commodity is overdue according to the quality guarantee period information; and when the commodity is expired, deleting the expired commodity from the settlement list and sending out an expiration warning message.

The shelf life information can be stored in the commodity feature code and directly obtained by scanning the commodity feature code, or can be stored in the commodity information management system after being associated with the individual commodity when the commodity is put in storage, and the corresponding individual commodity is positioned through the commodity feature code, so that the commodity information of the individual commodity stored in the commodity information management system is obtained and extracted.

The quality guarantee period information comprises the production date and the quality guarantee period of the commodity, and the expiration date of the commodity can be obtained according to the production date and the quality guarantee period; and comparing the expiration date with the current date to obtain a judgment result of whether the commodity is expired. And when the expired commodity exists in the settlement list, deleting the expired commodity from the settlement list and sending out an expiration warning message.

For example, in one possible embodiment, if the "french bread" in the settlement list has expired, the commodity settlement information of the "french bread" is directly deleted from the settlement list, and a reminder is displayed on the screen of the local computer device: "the French bread is an expired commodity, which is deleted from the settlement list, please confirm that the expired commodity is processed", and the store staff can perform the subsequent settlement action only after confirming the reminding information.

In another possible embodiment, the reminding message can also be broadcasted in a voice form.

In other possible embodiments, the commodity settlement information further includes offer information; the calculating the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities comprises the following steps: calculating the actual single-item sum of each commodity according to the discount information of each commodity and the commodity unit price of each commodity; and adding the actual sum of the single commodities of all the commodities in the settlement list to obtain the total price corresponding to the commodity settlement information.

The preferential information is commodity information preset in the commodity information management system, is mostly temporarily preset according to the activities of shops or supermarkets, and can also be set when commodities are put in storage.

In some possible embodiments, on the interface of the settlement list, the unit price of the commodity, the discount information and the actual amount of the single item calculated according to the discount information and the unit price of the commodity are displayed at the same time; the total price is the sum of the actual sum of the single items of all the commodities.

And 104, acquiring payment code information, and confirming a third-party payment platform corresponding to the payment code information according to the payment code information.

The payment code information is a graphic code representing the payment account information of the customer, and comprises but not limited to a bar code, a two-dimensional code, a three-dimensional code or other feature codes which can point to the payment account of the customer, and the graphic code is used for being displayed to a merchant for scanning so that the merchant can perform transaction with the payment account of the customer through a payment platform corresponding to the payment code; the common payment codes include, for example, a WeChat payment code, a Paibao payment code, and the like, and also include payment codes displayed by a mobile banking or other application programs, which correspond to different payment channels or payment platforms, respectively.

Like the commodity feature code, the essence of the payment code is that the graphic code represents a string of digital information, and the digital formats of the payment codes generated by different payment channels or payment platforms are different, so that an application program or other interfaces can distinguish the payment codes, and the condition that accounts of different platforms are mixed when the payment codes are scanned is avoided.

Specifically, in some possible embodiments, the confirming the third party payment platform corresponding to the payment code information according to the payment code information includes: detecting whether the payment code information is matched with any one of a plurality of preset payment code formats; and if so, determining the payment platform corresponding to the preset payment code format matched with the payment code information as the third party payment platform.

The method includes the steps that a plurality of preset payment code formats are digital information formats of two-dimensional codes generated by different payment platforms or payment channels, for example, if the digital length of a payment code is between 16 and 24 digits and the first two digits are between 25 and 30 digits, a settlement server corresponding to the payment code is determined to be provided for a payer platform; and if the length of the payment code is 18 digits and the first two digits are between 10 and 15, determining that the settlement server corresponding to the payment code is provided for the WeChat platform. The payment code formats are disclosed in official technical documents of the payment platform, and the preset multiple payment code formats comprise payment code formats of all published payment platforms or payment channels on the market.

After the payment code information is obtained, the payment code information is matched with multiple preset payment code formats in sequence, and a third-party platform corresponding to the payment code is determined according to a matching result.

In one embodiment, the obtaining the payment code information includes: and monitoring a keyboard event, and acquiring keying data of the keyboard event as payment code information under the condition that the scanning equipment scans the payment code and triggers a preset keyboard event.

The scanning device is connected with local computer equipment carrying a Windows system, the scanning device inputs the scanned digital information of the payment code into the local computer equipment through a Windows API interface, and the local computer equipment is regarded as receiving input data from a keyboard. Therefore, the keyboard event is monitored through the Windows API interface, and when the payment code is scanned, the preset keyboard event is triggered, so that the digital information input by the keyboard event is used as the payment code information.

Specifically, in one possible embodiment, a keyboard event is monitored through a windows API interface, when a payment code is scanned, digital information keyed in corresponding to the keyboard event is used as payment code information, the payment code information is matched with a preset payment code format, and a third-party payment platform corresponding to the payment code information is determined; and after the payment platform corresponding to the payment code is determined, calling a transaction order generation window or a function program of cash register software or commodity settlement software pre-installed in local computer equipment, and generating a transaction order corresponding to the third-party payment platform according to the commodity settlement information and the payment code information.

And 106, generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to a third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms.

The transaction order is an order for transferring money between a customer account and a merchant account on a third-party payment platform, and therefore the transaction order can be generated according to the total price and payment code information of the transaction and the account information of the merchant. The first cloud server is used for being connected with the plurality of third party payment platforms and sending the transaction orders to the third party payment platforms to conduct transaction settlement. Therefore, the actual transaction process is finished in the cloud server, the first cloud server is in unified butt joint with the payment channel or platform, the small supermarket or the small merchant only needs to send the generated transaction order to the first cloud server, secondary development of cash register software or a system on local computer equipment is not needed, or interface building and adjustment are carried out according to increase or change of the payment channel.

And step 108, receiving a transaction success message pushed by a second cloud server, and completing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to obtain transaction log data updated in a preset log file at the first time after the first cloud server successfully transacts with the payment platform.

The second cloud Server is a Remote Dictionary service (Redis) Server, and forms a read-write separated Server architecture with the first cloud Server, and the read-write separated Server architecture can better execute a load balancing strategy and perform balanced distribution on read-write tasks, so that the performance of the Server and the bearing capacity during high concurrency are improved. It should be noted that the first cloud server serves a plurality of merchants, and if the read-write task is completed through the first cloud server, a huge load is caused to the server, and vicious events such as server crash are easy to occur.

Specifically, the first cloud server writes the related transaction data after the transaction is successful into the log file, the second cloud server monitors the update event of the log file, the updated transaction data can be obtained at the first time after the log file is updated and pushed to the corresponding merchant, and the condition that the payment platform returns to the transaction pipeline for delay is avoided. It can be understood that the preset log file is a log file of transaction data written by the first cloud server after the transaction is successful, and the transaction log data is transaction data after the first cloud server and the payment platform are handed over.

The successful transaction message is a message which is prepared by extracting important data items such as a merchant account, a transaction amount, transaction time and the like from the transaction log data after the second cloud server acquires the transaction log data and is prepared according to a preset data format, wherein the preset data format is a data format which is adapted to a background database of cash register software or commodity settlement software pre-installed in the local computer equipment, so that the local computer equipment can complete a commodity settlement process at the first time.

In one embodiment, after the receiving the transaction success message pushed by the second cloud server, the method further includes: and generating a receipt data file according to the commodity settlement information, the transaction order and the transaction data in the transaction success message, and sending the receipt data file to printing equipment connected with the local computer equipment to print the receipt.

The printing device is a special receipt printer, and the local computer device calls the printing device to print the receipt through a printing driver or a Windows serial port, a parallel port or a network interface.

The commodity settlement method comprises the steps of firstly obtaining commodity settlement information and a total price corresponding to the commodity settlement information; then payment code information is obtained, and a third party payment platform corresponding to the payment code information is confirmed according to the payment code information; generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms; and finally, receiving a transaction success message pushed by a second cloud server to complete commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server successfully transacts with the payment platform. According to the invention, the transaction order is generated by the collected two-dimensional code information and the commodity information and is sent to the first cloud server, settlement is carried out through the connection relation between the cloud server and each payment platform, and an interface of the payment platform is butted without a cash register system, so that the problem that a small supermarket or a small merchant needs to customize, upgrade or replace the cash register system according to a new payment channel is solved, and a large amount of cost is saved; meanwhile, the first cloud server is monitored through the second cloud server, and the effect of mastering transaction dynamic in real time can be achieved.

As shown in fig. 2, in one embodiment, there is provided a commodity settlement apparatus applied to a local computer device, the commodity settlement apparatus specifically includes:

the first obtaining module 10 is configured to obtain commodity settlement information and a total price corresponding to the commodity settlement information;

the second obtaining module 20 is configured to obtain payment code information, and confirm the third-party payment platform corresponding to the payment code information according to the payment code information;

the settlement module 30 is configured to generate a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and send the transaction order to a first cloud server, so that the first cloud server sends the transaction order to the third-party payment platform for settlement, where the first cloud server is in butt joint with payment interfaces of multiple payment platforms;

the receiving module 40 is configured to receive a transaction success message pushed by a second cloud server, and complete commodity settlement, where the second cloud server is configured to monitor the first cloud server, so as to obtain transaction log data updated in a preset log file at a first time after the first cloud server successfully transacts with the payment platform.

In one embodiment, the first obtaining module 10 is further configured to obtain commodity settlement information obtained by scanning a commodity feature code by a scanning device, and generate a settlement list according to the commodity settlement information of one or more commodities, where the scanning device is connected to the local computer device, the commodity settlement information includes commodity unit prices, and the commodity feature code includes a barcode; and extracting the commodity unit prices of all the settlement commodities from the settlement list, and calculating to obtain the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities.

In one embodiment, the second obtaining module 20 is further configured to monitor a keyboard event, and obtain the entered data of the keyboard event as the payment code information when the scanning device scans the payment code and triggers a preset keyboard event.

In one embodiment, the second obtaining module 20 is further configured to detect whether the payment code information matches any one of a plurality of preset payment code formats; and if so, determining the payment platform corresponding to the preset payment code format matched with the payment code information as the third party payment platform.

In one embodiment, the commodity settlement information further includes shelf life information; the first obtaining module 10 is further configured to obtain the expiration date information from the commodity settlement information, and determine whether the commodity is expired according to the expiration date information; and when the commodity is expired, deleting the expired commodity from the settlement list and sending out an expiration warning message.

In one embodiment, the commodity settlement information further includes offer information; the first obtaining module 10 is further configured to calculate an actual single-item amount of each commodity according to the discount information of each commodity and the commodity unit price of each commodity; and adding the actual sum of the single commodities of all the commodities in the settlement list to obtain the total price corresponding to the commodity settlement information.

In one embodiment, the receiving module 40 is further configured to generate a receipt data file according to the commodity settlement information, the transaction order and the transaction data in the transaction success message, and send the receipt data file to a printing device connected to the local computer device for printing a receipt.

The commodity settlement device firstly acquires commodity settlement information and a total price corresponding to the commodity settlement information; then payment code information is obtained, and a third party payment platform corresponding to the payment code information is confirmed according to the payment code information; generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms; and finally, receiving a transaction success message pushed by a second cloud server to complete commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server successfully transacts with the payment platform. According to the invention, the transaction order is generated by the collected two-dimensional code information and the commodity information and is sent to the first cloud server, settlement is carried out through the connection relation between the cloud server and each payment platform, and the interface of the payment platform is butted without a cash register system, so that the problem that the cash register system of a small supermarket or a small merchant needs to be customized, upgraded or replaced according to a new payment channel is solved, and a large amount of cost is saved.

FIG. 3 is a diagram illustrating an internal structure of a local computer device in one embodiment. As shown in fig. 3, the local computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the local computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a merchandise settlement method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to execute a merchandise settlement method. Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the local computing devices to which the disclosed aspects apply, as a particular local computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a local computer device is presented, comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:

acquiring commodity settlement information and a total price corresponding to the commodity settlement information; acquiring payment code information, and confirming a third-party payment platform corresponding to the payment code information according to the payment code information; generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms; and receiving a transaction success message pushed by a second cloud server, and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

In one embodiment, the obtaining of the commodity settlement information and the total price corresponding to the commodity settlement information includes: acquiring commodity settlement information obtained by scanning commodity feature codes by scanning equipment, and generating a settlement list according to the commodity settlement information of one or more commodities, wherein the scanning equipment is connected with the local computer equipment, the commodity settlement information comprises commodity unit prices, and the commodity feature codes comprise bar codes; and extracting the commodity unit prices of all the settlement commodities from the settlement list, and calculating to obtain the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities.

In one embodiment, the obtaining the payment code information includes: and monitoring a keyboard event, and acquiring keying data of the keyboard event as payment code information under the condition that the scanning equipment scans the payment code and triggers a preset keyboard event.

In one embodiment, the confirming the third party payment platform corresponding to the payment code information according to the payment code information includes: detecting whether the payment code information is matched with any one of a plurality of preset payment code formats; and if so, determining the payment platform corresponding to the preset payment code format matched with the payment code information as the third party payment platform.

In one embodiment, the commodity settlement information further includes shelf life information; after the generating of the settlement list according to the commodity settlement information of one or more commodities, the method further comprises: acquiring the quality guarantee period information from the commodity settlement information, and judging whether the commodity is overdue according to the quality guarantee period information; and when the commodity is expired, deleting the expired commodity from the settlement list and sending out an expiration warning message.

In one embodiment, the commodity settlement information further includes offer information; the calculating the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities comprises the following steps: calculating the actual single-item sum of each commodity according to the discount information of each commodity and the commodity unit price of each commodity; and adding the actual sum of the single commodities of all the commodities in the settlement list to obtain the total price corresponding to the commodity settlement information.

In one embodiment, after the receiving the transaction success message pushed by the second cloud server, the method further includes: and generating a receipt data file according to the commodity settlement information, the transaction order and the transaction data in the transaction success message, and sending the receipt data file to printing equipment connected with the local computer equipment to print the receipt.

In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:

acquiring commodity settlement information and a total price corresponding to the commodity settlement information; acquiring payment code information, and confirming a third-party payment platform corresponding to the payment code information according to the payment code information; generating a transaction order according to the total price corresponding to the commodity settlement information and the payment code information, and sending the transaction order to a first cloud server so that the first cloud server sends the transaction order to the third party payment platform for settlement, wherein the first cloud server is in butt joint with payment interfaces of a plurality of payment platforms; and receiving a transaction success message pushed by a second cloud server, and finishing commodity settlement, wherein the second cloud server is used for monitoring the first cloud server so as to acquire transaction log data updated in a preset log file at the first time after the first cloud server and the payment platform successfully transact.

In one embodiment, the obtaining of the commodity settlement information and the total price corresponding to the commodity settlement information includes: acquiring commodity settlement information obtained by scanning commodity feature codes by scanning equipment, and generating a settlement list according to the commodity settlement information of one or more commodities, wherein the scanning equipment is connected with the local computer equipment, the commodity settlement information comprises commodity unit prices, and the commodity feature codes comprise bar codes; and extracting the commodity unit prices of all the settlement commodities from the settlement list, and calculating to obtain the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities.

In one embodiment, the obtaining the payment code information includes: and monitoring a keyboard event, and acquiring keying data of the keyboard event as payment code information under the condition that the scanning equipment scans the payment code and triggers a preset keyboard event.

In one embodiment, the confirming the third party payment platform corresponding to the payment code information according to the payment code information includes: detecting whether the payment code information is matched with any one of a plurality of preset payment code formats; and if so, determining the payment platform corresponding to the preset payment code format matched with the payment code information as the third party payment platform.

In one embodiment, the commodity settlement information further includes shelf life information; after the generating of the settlement list according to the commodity settlement information of one or more commodities, the method further comprises: acquiring the quality guarantee period information from the commodity settlement information, and judging whether the commodity is overdue according to the quality guarantee period information; and when the commodity is expired, deleting the expired commodity from the settlement list and sending out an expiration warning message.

In one embodiment, the commodity settlement information further includes offer information; the calculating the total price corresponding to the commodity settlement information according to the commodity unit prices of all the commodities comprises the following steps: calculating the actual single-item sum of each commodity according to the discount information of each commodity and the commodity unit price of each commodity; and adding the actual sum of the single commodities of all the commodities in the settlement list to obtain the total price corresponding to the commodity settlement information.

In one embodiment, after the receiving the transaction success message pushed by the second cloud server, the method further includes: and generating a receipt data file according to the commodity settlement information, the transaction order and the transaction data in the transaction success message, and sending the receipt data file to printing equipment connected with the local computer equipment to print the receipt.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:采用码链区块的数字货币模型、方法、系统及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!