US 11,790,388 B2
System, method, and computer program for automatic coupon code fill in a mobile application
Naveed Zanoon, Melbourne (AU); Adam Roth, Sunshine Coast (AU); Feng Xie, Melbourne (AU); Mujtaba Hussain, Melbourne (AU); and James Seymour-Lock, New York, NY (US)
Assigned to Rakuten Group, Inc., Tokyo (JP)
Filed by Rakuten Group, Inc., Tokyo (JP)
Filed on Sep. 30, 2021, as Appl. No. 17/490,732.
Prior Publication US 2023/0095187 A1, Mar. 30, 2023
Int. Cl. G06Q 30/02 (2023.01); G06Q 30/0207 (2023.01); G06F 16/953 (2019.01); H04W 4/30 (2018.01); G06N 3/02 (2006.01); G06F 40/174 (2020.01)
CPC G06Q 30/0222 (2013.01) [G06F 16/953 (2019.01); G06F 40/174 (2020.01); G06N 3/02 (2013.01); G06Q 30/0239 (2013.01); H04W 4/30 (2018.02)] 18 Claims
OG exemplary drawing
 
1. A method performed by a computer system for automatic coupon code fill in a mobile application, the method comprising:
the mobile application launching a software module for analyzing a WebView of a mobile application;
the mobile application injecting the software module into a webpage in the WebView;
the software module identifying a checkout page in a WebView of a mobile application;
the software module extracting field data from the checkout page in the WebView of the mobile application;
identifying a coupon code field and a cart total field from the field data, wherein identifying a coupon code field and a cart total field from the field data comprises:
the software module generating a payload with the extracted field data,
the mobile application sending the payload to a mapping module on a server, wherein the mapping module on the server maps the field data in the payload to one or more field parameter(s) (“the field parameter mappings”), wherein a field parameter is a value that indicates a field type, and wherein the server mapping the field data in the payload to one or more field parameter(s) comprises:
filtering and sanitizing the field data,
performing pre-process data transformation,
building and pruning a webpage tree,
searching the webpage tree and scoring one or more nodes,
validating results of the scoring,
clustering fields and performing any needed concatenation or formatting of fields, and
verifying results payload using heuristics and scoring validation, wherein the results payload are used to map the fields to parameters,
the server returning the field parameter mappings to the mobile application, and
the software module using the field parameter mappings to find the coupon code field and the cart total field on the webpage;
obtaining one or more coupon code(s);
the software module testing the one or more coupon code(s) in the checkout page in the WebView of the mobile application, wherein the one or more coupon code(s) are tested in the identified coupon code field to determine whether any of the coupon code(s) cause the value associated with the cart total field to decrease;
in response to one or more coupon code(s) providing a reward on the checkout page, the software module identifying a best coupon code; and
the software module inserting the best coupon code in the identified coupon code field in the checkout page in the mobile application.