Intelligent logistics method and system based on third-party payment online shopping
Technical Field
The invention relates to the fields of internet security, electronic commerce, online payment, intelligent logistics distribution and the like, and particularly relates to an intelligent logistics method and an intelligent logistics system based on third party payment online shopping, wherein the method is based on a domestic third party payment platform, and relates to a B/S (browser/server) architecture, an internal implementation and a transaction data processing method based on a third party payment platform, and the method can integrate logistics information based on a certain third party payment transaction platform and provide support for safe delivery of goods and quick refund of goods.
Background
Electronic payment and online transaction are gradually becoming an important payment mode in daily life of people, and the proportion of the electronic payment and online transaction tends to increase gradually compared with the traditional online payment mode, and the logistics safety problem is more and more emphasized, because the inspection mechanism of logistics issuing or receiving in the existing business field is not strict enough, so that unsafe events in express logistics are more and more frequent.
The current third party payment based on-line shopping infrastructure operating in the commercial domain comprises the following entity units:
the buyer's browser: the system can link a merchant website to browse commodities and place orders, and can link a third-party payment platform to conduct payment processing, and a buyer needs to register customer information in the merchant and the third-party platform respectively;
a merchant website with a third party interface: the system is a website with an independent domain name, integrates a special interface issued by a third-party payment platform, registers a merchant account in a third party, and is used for receiving the money transferred after the customer receives the goods and simultaneously acquiring a secret key MKey for digital signature; wherein, the third party payment platform interface functions: and (3) construction parameters: after receiving an order placing request of a buyer, a merchant needs to construct parameters of order data according to a format required by a third party before submitting an order money transferring request to the third party platform; data reception: allowing the merchant website to receive the message notification of the third-party platform in a synchronous or asynchronous mode, receiving the data of the third party by the interface, performing data verification, and notifying the merchant website of the processing result to update the order information in the database;
a third party payment platform: the user signs a contract with each big bank to ensure that the registered customer can transfer money from the bank to a third-party account, and also has an independent domain name, so that the user can process an order money transfer request submitted by a merchant, and the user or the merchant can log in and inquire detailed transaction information. The method plays a role of guaranteeing transaction in online shopping, and realizes the task of credit maintenance in online transaction; when the buyer pays, a third party can be selected to pay, the payment is temporarily stored in a third party account, then the third party informs the merchant that the goods can be delivered, and after the buyer receives the goods of the merchant and is satisfied with the goods, the third party is informed to transfer the payment to the merchant.
The existing receiving mode of the buyer after online shopping by using third party payment has the following defects:
when the buyer is unsatisfied with the goods and requires goods return, the seller and the logistics company need to be manually contacted to return the goods; in an online shopping mall using third-party logistics (third-party logistics: the logistics distribution mode used by the online shopping mall does not belong to the logistics distribution system of the online shopping mall), particularly in the online shopping mall of C2C (electronic commerce between individuals), after a buyer receives goods, the information cannot be reflected in a merchant website system in time, and a third-party payment platform cannot obtain the information of delivery of the goods in time; the logistics information is scattered and scattered in places such as merchant websites and third-party logistics, so that not only the logistics safety cannot be ensured, but also the logistics information cannot be uniformly monitored; in some electronic commerce transactions, after-market services are not available to the buyer after the buyer finally receives the goods: the buyer needs to communicate with the seller to contact the logistics company in addition to the information of the return address. The buyer uses the after-sale service to show time and labor consuming, the basic reason is that the existing online shopping architecture design based on the third party payment platform does not consider the after-sale return and exchange service, the merchant website or the third party payment platform can not obtain whether the goods of the buyer are safely delivered at the first time, and the buyer must wait for confirming the goods receiving or the time of the goods receiving specified by the third party payment to be overtime.
The invention relates to an application system combining online shopping and logistics, which discloses an application system combining online shopping and logistics, and comprises a cross-country web page system, wherein a shopping web page platform is arranged on the cross-country web page system so that a customer can see and select to purchase; a client data login system, which can be used for the user to perform the client data setup and maintenance actions such as account registration and login authentication; a payment system, which can provide the user to pay and settle the payment after the customer selects to purchase, and confirm whether the customer pays successfully; and a logistics system, it can require customer to input a recipient's personal information, the recipient's personal information includes name and address data of the goods object that the customer wants to send at least, and the logistics system can send the parcel to the corresponding address in the mode of sending across country in the way of mailing the corresponding goods object after the recipient's personal information input is finished. However, the invention mainly realizes a net shooting system and can realize the logistics mailing function according to the customer information, and the invention realizes an online shopping system based on third party payment and can realize the intellectualization of logistics goods receiving and dispatching.
The invention discloses an online shopping commodity logistics management device and method, and the device comprises a sales platform, a distribution platform terminal, a distribution electronic tag reader-writer, a cargo sorting electronic tag reader-writer, a warehouse-out management platform terminal, a printer, an electronic tag, a cargo sorting device, a handheld cargo delivery electronic tag management terminal, wherein the handheld cargo delivery electronic tag management terminal comprises an electronic tag reader-writer, a microprocessor MCU, a touch display screen and a key module. When the system is used, each piece of goods is configured with the electronic tags in which basic information of the goods and customers are stored, and the operation and management are performed on the goods logistics process on the basis, so that the automatic sorting of the goods can be realized, the goods sorting and logistics transportation information can be stored, the checking of the goods can be automatically completed, and the goods in the dispatching process can be searched. The problems that goods sorting, searching and dispatching work of online stores and logistics companies is prone to making mistakes and low in working efficiency are solved. However, the idea of the invention is to disclose a high-efficiency goods sorting, searching and distributing work between an online store and a logistics company, but the invention is to uniformly manage each third-party logistics company on the basis of an online shopping system based on third-party payment, and realize the logistics intellectualization in an online shopping platform based on third-party payment.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an intelligent logistics method and system based on third-party payment online shopping.
The invention provides an intelligent logistics method based on third-party payment platform online shopping, which comprises the following steps:
step 1, a logistics proxy server is arranged, an interface connected with the logistics proxy server is added in the third-party payment platform, and the third-party payment platform and the logistics proxy server carry out information transmission through the interface;
step 2, the third party payment platform submits an order placing request to the logistics agent server, and the logistics agent server selects a logistics party closest to a receiving address to receive goods according to delivery information and receiving information in the order placing request;
and 3, the logistics proxy server sends the order placing request to a logistics scanning device of the logistics party, after the goods are delivered, the logistics scanning device scans order number identification provided by a buyer, uploads the order number identification to the logistics proxy server for verification, meanwhile, a verification result is fed back, after the verification is passed, the logistics scanning device feeds back information that the goods are delivered successfully to the third-party payment platform and the logistics proxy server, and the third-party payment platform updates order information to complete intelligent logistics.
In the intelligent logistics method based on third party payment platform online shopping, the step 2 further comprises the step that the logistics party integrates a logistics party interface of the logistics proxy server.
According to the intelligent logistics method based on third-party payment platform online shopping, the logistics party is registered in the logistics proxy server, and the logistics proxy server distributes a secret key and a logistics party ID to the logistics party.
According to the intelligent logistics method based on third-party payment platform online shopping, the logistics scanning device respectively comprises a secret key and a device ID from the logistics proxy server and the logistics party server.
When the logistics scanning device communicates with the logistics party server, after signing communication information by using the secret key, the logistics party server sends the communication information containing the device ID and the signature together, inquires the verification secret key of the logistics scanning device according to the device ID, signs the communication information by using the verification secret key to generate a new signature, and carries out identity verification and data integrity verification by comparing the value of the signature and the new signature.
The invention also provides an intelligent logistics system based on third-party payment platform online shopping, which comprises the following steps:
the system comprises a logistics proxy server module, a third party payment platform and a logistics proxy server, wherein the logistics proxy server module is used for setting a logistics proxy server, adding an interface connected with the logistics proxy server in the third party payment platform, and transmitting information between the third party payment platform and the logistics proxy server through the interface;
the order placing submitting request module is used for submitting an order placing request to the logistics agent server by the third-party payment platform, and the logistics agent server selects a logistics party closest to a receiving address to receive goods according to delivery information and receiving information in the order placing request;
and the verification and update module is used for sending the order placing request to the logistics scanning equipment of the logistics party by the logistics proxy server, after the goods are delivered, the logistics scanning equipment scans an order number identification provided by a buyer, uploads the order number identification to the logistics proxy server for verification, simultaneously feeds back a verification result, after the verification is passed, the logistics scanning equipment feeds back information of successful delivery of the goods to the third-party payment platform and the logistics proxy server, and the third-party payment platform updates order information so as to complete intelligent logistics.
The third party payment platform based on-line shopping intelligent logistics system comprises a logistics party interface integrating the logistics proxy server and a logistics party submitting and ordering request module.
In the intelligent logistics system based on third-party payment platform online shopping, the logistics party is registered in the logistics proxy server, and the logistics proxy server distributes a secret key and a logistics party ID to the logistics party.
In the third-party payment platform based online shopping intelligent logistics system, the logistics scanning device respectively comprises a secret key and a device ID from the logistics proxy server and the logistics party server.
When the logistics scanning device communicates with the logistics party server, the logistics party server signs communication information with the secret key and then sends the communication information containing the device ID and the signature together, the logistics party server inquires the verification secret key of the logistics scanning device according to the device ID, signs the communication information with the verification secret key to generate a new signature, and performs identity verification and data integrity verification by comparing the signature with the value of the new signature.
According to the scheme, the invention has the advantages that:
when the buyer requires after-sale service, the goods can be quickly returned and changed on line without contacting a logistics company by telephone; the merchant website or the third-party payment platform can obtain whether the goods of the buyer are safely delivered or not at the first time; preventing the seller from shipping without payment from the buyer; logistics information is integrated, logistics safety is guaranteed, and services such as quotation and freight insurance can be provided; in the online shopping process based on the third party payment, the correct buyer can be ensured to receive goods; the application proposal is a complete solution scheme for realizing quick return and change service based on third-party payment. The system is suitable for large-scale B2C markets such as Amazon and Jingdong markets with own logistics, and is also suitable for B2C or C2C markets similar to Taobao and Tianmao markets which do not have own fixed logistics and need third-party logistics; the architecture or internal implementation of the existing third party payment platform is not changed. For example, the method provided by the proposal needs to be integrated for the payment treasures to integrate the logistics information of the transaction for payment by using the payment treasures, so that the internal implementation of the payment treasures is completely realized without modifying, and only a logistics proxy server needs to be added and a receipt device is provided for a courier as a terminal device of the proxy server; the invention needs to add a new logistics proxy server and a terminal device of a proxy server for a logistics party, the communication between the terminal device and the proxy adopts encryption processing and digital signature technology, thus ensuring the safety of logistics information, ensuring accurate delivery, not being attacked by intruders, avoiding man-in-the-middle attack, and meeting basic safety specifications of protocol specification, such as message integrity, non-repudiation, identity authentication attribute, and the like.
Drawings
FIG. 1 is an overall flow chart of the present invention.
Detailed Description
The invention is based on the existing third party payment service, and utilizes the original service of transaction settlement between the third party payment platform and each bank, so the invention omits the realization part of the third party payment platform and the bank.
Integrating logistics resources of each logistics company by adding a logistics proxy server, collecting logistics information of a specific order through a logistics scanning device, updating the order state in a third-party payment platform in real time according to the logistics information of the order, wherein the logistics scanning device is provided by the third-party payment platform and used by logistics distribution personnel of the logistics company, each scanning device identifies the information of the logistics company and the logistics personnel, can receive wireless signals from the proxy server and the logistics company, and receives an order placing request of the logistics company (the order placing request is provided by the logistics proxy server according to the order number) and responds to a feedback result of logistics delivery; the logistics scanning device receives the logistics information fed back to the logistics proxy server by the proxy server, and provides the corresponding order number held by the buyer and the identity information of the merchant website. The logistics proxy server needs to be provided with a dedicated link channel to be connected with a third-party payment platform, or the logistics proxy server is subordinate to the third-party payment platform, so that logistics information collected by the logistics proxy server can be reflected to the payment platform in real time, and the order state in the payment platform can be updated in real time.
The logistics agent server needs to integrate logistics resources of each logistics company, integrates online ordering interfaces of each logistics company, and can intelligently match services of receiving goods provided by logistics personnel of a certain logistics company according to a certain order number (the order number is associated with seller information and receiving information of a buyer) in a third-party payment platform: according to the order placing requirement of a certain merchant, logistics personnel can be recommended to the merchant for receiving; aiming at the return requirement of a certain order, specific logistics personnel can get the goods from home according to logistics information delivered by a merchant, and the original logistics of the returned goods is returned;
the following is the overall process of the present invention, as shown in FIG. 1:
1, the buyer C browses the goods and places an order at the merchant website M, and if the buyer C logs in the merchant website M, the step 4 is entered. If the buyer does not log in, ordering and purchasing, and continuing to the next step;
2, the merchant website M returns order information OI and a login entrance;
the buyer submits login information (user name + password) and receiving information;
the merchant website M submits the order information OI (including the description of the goods, the price and the identity identifier of the buyer) to a payment gateway interface connected to the third party payment platform G in the merchant website M, which processes these parameters and constructs the parameters meeting the requirements of the third party payment platform G: payment information PI with digital signature (including merchant website transaction ID number, commodity information, digital signature value sign encrypted by merchant M Key, and the like);
and 5, the third-party payment platform G receives the money transfer request information sent from the merchant website M, verifies the information to determine the identity of the merchant website M and verifies the integrity of the payment information PI. If the verification is passed, providing an entrance for the buyer to log in a third-party payment platform G, simultaneously displaying payment information PI to the buyer and ensuring the buyer C to confirm the payment;
after the buyer C pays by the payment platform G, the payment platform G submits the buyer logistics information associated with the order number OrderId to a logistics proxy server P, the logistics proxy server P intelligently selects a certain logistics party, sends a logistics ordering request to the logistics party and informs a logistics distributor to a specified place of a merchant website for receiving through a logistics scanning device D;
and 7, the merchant website M shows the merchant website identity MerchantId to the logistics scanning device D, the logistics scanning device D searches the order number OrderId to be processed according to the merchant website M identity and indicates specific information (quantity, specification and the like) to be received, and the delivery affair of the merchant website M is completed. The logistics scanning equipment D feeds back the information of completing the delivery of the merchant to the third-party payment platform G through the logistics proxy server P, and the payment platform G updates the state of the order number OrderId;
8, the order number OrderId state jumps to the shipped state of the merchant website M, and the third-party payment platform G generates an order number identifier OrderToken for the order number OrderId to be shipped by the buyer C and sends the order number identifier OrderToken to the buyer C;
9, the express delivery reaches the buyer C to specify the receiving address, the buyer shows the order number identifier OrderToken, the logistics scanning device D scans to confirm the identity and the goods, and the receiving affair of the buyer C is completed;
10, the logistics scanning device D feeds back the goods receiving information of the buyer C to the third party payment platform G through the logistics proxy server P, the third party payment platform G updates the state of the order number OrderId, and if the buyer C is satisfied with the goods, the shopping process is completed; and simultaneously, the logistics scanning equipment D feeds back the goods receiving result of the user to the logistics party server, and the logistics order is finished.
11, the buyer C logs in the payment platform G, submits a return request and confirms the identity;
the payment platform G submits the order number OrderId and the application for goods returned to a logistics proxy server P, the proxy server P inquires a goods receiving address of an original order and places an order to a logistics party through the logistics proxy server P, and informs the payment platform G of updating the order number OrderId state, logistics personnel who reach the order number OrderId goods before going to receive the order at home are required to show an order good identifier OrderToken to a logistics scanning device D for off-line identity confirmation, and after the confirmation is completed, the buyer C gives the goods and completes the goods returned affairs of the buyer;
when the goods arrive, the merchant website M gives identity information MerchantId to the logistics scanning device D, the logistics scanning device D submits the identity information to the proxy server P and the payment platform G, after the identity information is verified, the order state is updated, the goods receiving affairs of the merchant website M are completed, the buyer C finishes goods return, and one-time online shopping process is finished. And simultaneously, the logistics scanning equipment D submits the customer receiving information to the logistics side server, and the logistics order is finished. If the buyer is changing, the process skips to 7.
The following is an embodiment of the present invention, as follows:
the invention is based on the online shopping structure based on the third party payment, slightly modifies the structure to achieve the purpose of realizing intelligent logistics in the third party payment platform, and an independent logistics proxy server P (which can also depend on the third party payment platform G) is required to be added; a logistics scanning device is equipped for each logistics cargo allocation personnel of each logistics party; each logistics company integrates the interface issued by the logistics proxy server.
The implementation of the addition or modification of entities described in the present invention is described in detail below.
A: adding a logistics proxy server P
The functions of the logistics proxy server P are as follows: and carrying out a data transmission function between the order information and a third-party payment platform, wherein the realization method comprises the following steps: an interface connected with a logistics proxy server is added in the third-party payment platform G, and through the interface, the logistics proxy server can provide an order number for the payment platform to inquire the buyer receiving information function and provide order number identification or seller information to verify the identity of the buyer or a merchant website; the logistics information of each logistics company is unified, the function of intelligently ordering according to a certain order number is realized, and the realization method comprises the following steps: the third-party payment platform can submit a logistics ordering request to the logistics proxy server, and the logistics proxy server intelligently matches a logistics company and informs proper logistics personnel of receiving and sending according to the distribution situation of logistics points of a receiving and sending place according to the delivery information and the receiving information in the logistics ordering request (according to the principle of being nearby, the logistics closest to the receiving and sending place is preferentially selected to receive and send the delivery); and providing an interface connected to the logistics proxy server P for each logistics company, integrating the interface by each logistics party, and performing online ordering to the intelligently matched logistics party by the logistics proxy server through the interface and informing the logistics scanning equipment of ordering information.
B: adding a logistics scanning device D
A logistics scanning device is required to be equipped for each logistics cargo allocation personnel of each logistics party, and the logistics scanning device D has the functions as follows: each logistics scanning device identifies a special logistics company and a distributor to which the logistics company belongs, and the implementation method comprises the following steps: each logistics scanning device maintains a key and a device ID from the logistics proxy server and the logistics company server respectively: when the equipment is communicated with a logistics server, namely a goods owner logistics company server, PKey, PID, SKey and SID, the information is signed by a key and then the communication information containing the ID and the signature are sent together, a receiving party inquires the key of the equipment according to the ID, signs the communication information by the inquired key and compares a new signature value with an old signature value to carry out identity verification and data integrity verification; the method for realizing the method comprises the following steps of collecting identification information of identities and order numbers from websites of buyers or merchants: after a buyer pays, the logistics scanning device obtains the receiving information sent from a logistics agent server or a logistics company server, the information comprises the address of the receiving information and the like, after a distributor arrives at the specified receiving address, the distributor scans the identity MID of a merchant website and uploads the MID to a payment platform, the payment platform verifies the MID and displays the specifications of the name, the quantity, the color and the like of the receiving information to the device, after the merchant website delivers goods, the logistics scanning device feeds back the information of successful receiving to the payment platform and the logistics company server, the payment platform updates the state of the order to the delivery of the merchant, the logistics company server records the logistics order, arrives at a delivery place, scans the identification of the receiving order number provided by the buyer and uploads the identification of the order number to the logistics agent server, the logistics agent server verifies the identification of the order number and feeds back the verification result, after the buyer receives the goods, the device feeds back the successful delivery information of the goods to the payment platform and the logistics company server, and the payment platform updates the order status to be that the buyer receives the goods.
C: interface for integrated connection of logistics proxy server P in each logistics company S
The tasks to be completed by the interface of the logistics company S integrated with the logistics proxy server P are as follows: each logistics company S must register with the logistics proxy server P and obtain the logistics party S key SPKey and id (spid) assigned by the logistics proxy server P.
The following tasks are completed before and after data transmission between the logistics company S and the logistics proxy server P:
and (3) construction parameters: encrypting the logistics ordering parameters into signature sign by using a key SPKey of a logistics company S, constructing the logistics ordering parameters including the sign into an agreed format, submitting the agreed format to the logistics company S, and ordering the logistics;
receiving and verifying data: the logistics company S receives the order placing request of the logistics proxy server P. In the received request information, data such as the goods information, the delivery information, the receiving information and the like sent by the logistics proxy server P also comprise signature information, and the logistics company verifies the signature by using a key SPKey to complete the logistics ordering command.