Data processing method and apparatus
AssigneeTencent Technology (Shenzhen) Company Limited
InventorZhikai Liu
Life of this patent
Estimating the term…
Abstract
A data processing method includes implementing data transfer between a website having a data processing permission and a website having no data processing permission by using the website having the data processing permission and in a cross-domain manner of a double-layered inline frame when the website having no data processing permission is accessed and data processing is performed in a page of the website; and calling a data processing interface of the website having the data processing permission to perform the data processing.
Claims12
A data processing method performed at a terminal having one or more processors and memory storing instructions to be executed by the one or more processors, comprising:
- receiving, by the one or more processors and via a browser application, a page access request through an initial page of a first website having online payment function, a page corresponding to the page access request being a first page of a second website having no online payment function;
- generating, by the one or more processors, according to the page access request, a second page of the first website having a first inline frame, and loading the first page of the second website in the first inline frame within the browser application, wherein link information of the first page of the second website having no online payment function is displayed on the first page of the second website having no online payment function;
- embedding, by the one or more processors and via the browser application, a data processing file provided by the first website having online payment function into the first page of the second website having no online payment function;
- receiving, by the one or more processors and via the browser application, a data processing request sent by a user of the terminal through the first page of the second website within the first inline frame of the second page of the first website, wherein the data processing request includes a plurality of parameters provided by the user of the terminal through the first page of the second website within the first inline frame of the second page of the first website including commodity information and an address of a payee associated with the second website and the data processing request is stored in the data processing file embedded in the first page of the second website;
- generating, by the one or more processors and via the browser application, a second inline frame on the first page of the second website;
- determining, by the one or more processors and via the browser application, a URL address of a third page of the first website, wherein the third page of the first website belongs to the same domain as the initial page of the first website and the second page of the first website;
- setting, by the one or more processors and via the browser application, a URL address of the second inline frame as the URL address of the third page of the first website concatenated with the data processing request stored in the data processing file embedded in the first page of the second website;
- loading, by the one or more processors and via the browser application, the third page of the first website within the second inline frame within the browser application and setting a display attribute of the third page of the first website to be hidden;
- transferring, by the one or more processors and via the browser application, the data processing request in the address of the third page of the first website to the second page of the first website by calling a data transfer interface of a parent page of the third page of the first website;
- and
- calling, by the one or more processors and via the browser application, a data processing interface on the second page of the first website, and responding to the data processing request to initiate a transaction with the second website having no online payment function according to the commodity information and the address of the payee associated with the second website.
A terminal, comprising one or more processors, memory and multiple instruction modules stored in the memory and executed by the one or more processors, the instruction modules comprising instructions for:
- receiving, by the one or more processors and via a browser application, a page access request through an initial page of a first website having online payment function, a page corresponding to the page access request being a first page of a second website having no online payment function;
- generating, by the one or more processors, according to the page access request, a second page of the first website having a first inline frame, and loading the first page of the second website in the first inline frame within the browser application, wherein link information of the first page of the second website having no online payment function is displayed on the first page of the second website having no online payment function;
- embedding, by the one or more processors and via the browser application, a data processing file provided by the first website having online payment function into the first page of the second website having no online payment function;
- receiving, by the one or more processors and via the browser application, a data processing request sent by a user of the terminal through the first page of the second website within the first inline frame of the second page of the first website, wherein the data processing request includes a plurality of parameters provided by the user of the terminal through the first page of the second website within the first inline frame of the second page of the first website including commodity information and an address of a payee associated with the second website and the data processing request is stored in the data processing file embedded in the first page of the second website;
- generating, by the one or more processors and via the browser application, a second inline frame on the first page of the second website;
- determining, by the one or more processors and via the browser application, a URL address of a third page of the first website, wherein the third page of the first website belongs to the same domain as the initial page of the first website and the second page of the first website;
- setting, by the one or more processors and via the browser application, a URL address of the second inline frame as the URL address of the third page of the first website concatenated with the data processing request stored in the data processing file embedded in the first page of the second website;
- loading, by the one or more processors and via the browser application, the third page of the first website within the second inline frame within the browser application and setting a display attribute of the third page of the first website to be hidden;
- transferring, by the one or more processors and via the browser application, the data processing request in the address of the third page of the first website to the second page of the first website by calling a data transfer interface of a parent page of the third page of the first website;
- and
- calling, by the one or more processors and via the browser application, a data processing interface on the second page of the first website, and responding to the data processing request to initiate a transaction with the second website according to the commodity information and the address of the payee associated with the second website.
A non-transitory storage medium storing a computer program, wherein execution of the computer program by one or more processors of a terminal performs the steps of:
- receiving, by the one or more processors and via a browser application, a page access request through an initial page of a first website having online payment function, a page corresponding to the page access request being a first page of a second website having no online payment function;
- generating, by the one or more processors, according to the page access request, a second page of the first website having a first inline frame, and loading the first page of the second website in the first inline frame within the browser application, wherein link information of the first page of the second website having no online payment function is displayed on the first page of the second website having no online payment function;
- embedding, by the one or more processors and via the browser application, a data processing file provided by the first website having online payment function into the first page of the second website having no online payment function;
- receiving, by the one or more processors and via the browser application, a data processing request sent by a user of the terminal through the first page of the second website within the first inline frame of the second page of the first website, wherein the data processing request includes a plurality of parameters provided by the user of the terminal through the first page of the second website within the first inline frame of the second page of the first website including commodity information and an address of a payee associated with the second website and the data processing request is stored in the data processing file embedded in the first page of the second website;
- generating, by the one or more processors and via the browser application, a second inline frame on the first page of the second website;
- determining, by the one or more processors and via the browser application, a URL address of a third page of the first website, wherein the third page of the first website belongs to the same domain as the initial page of the first website and the second page of the first website;
- setting, by the one or more processors and via the browser application, a URL address of the second inline frame as the URL address of the third page of the first website concatenated with the data processing request stored in the data processing file embedded in the first page of the second website;
- loading, by the one or more processors and via the browser application, the third page of the first website within the second inline frame within the browser application and setting a display attribute of the third page of the first website to be hidden;
- transferring, by the one or more processors and via the browser application, the data processing request in the address of the third page of the first website to the second page of the first website by calling a data transfer interface of a parent page of the third page of the first website;
- and
- calling, by the one or more processors and via the browser application, a data processing interface on the second page of the first website, and responding to the data processing request to initiate a transaction with the second website according to the commodity information and the address of the payee associated with the second website.
Dependencies are inferred from the claim text.