Automatic Coupon Code Injection in Mobile WebView Checkout
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Mobile applications lack the capability to detect and apply coupon codes automatically, unlike browser extensions, due to limited control over web content, which is a hindrance in the growing e-commerce landscape where on-the-go transactions are common.
Innovation Solution
A system and method that injects a software module into a mobile application's WebView to analyze the checkout page, extract field data, identify coupon code and cart total fields, test coupon codes iteratively, and insert the best code to maximize rewards, utilizing a mapping module and user profile data.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If a mobile application uses a WebView to display web content, then it enables on-the-go transactions, but it lacks control over web content making coupon code detection impossible
Solution Approach 1:
The patent introduces a software module as an intermediary between the mobile application and the WebView. This module injects into the WebView's JavaScript execution environment, enabling the application to detect and interact with coupon code fields without requiring direct control over the web content. The intermediary translates web page elements into actionable data for the mobile application.
Solution Approach 2:
The software module is nested within the WebView's JavaScript execution context. By injecting code that runs within the existing WebView environment, the system gains the ability to detect coupon fields while maintaining the WebView's original functionality. The nested module accesses the DOM and manipulates elements without breaking the parent WebView structure.
2Ease of operation
If manual coupon code application is required, then users can control which codes to use, but it increases time and effort for checkout
Solution Approach 1:
The system enables self-service by automatically detecting coupon code fields, retrieving stored coupon codes, testing them, and applying the best one without user intervention. The mobile application autonomously performs the entire coupon application process, from detection to selection to insertion, freeing the user from manual effort while maintaining control through pre-stored personal coupon codes.
Solution Approach 2:
Coupon codes are pre-stored in the user's profile before the checkout process. The system retrieves these pre-prepared codes during checkout, tests them automatically, and applies the best match. This preliminary preparation eliminates the need for users to manually search for or enter coupon codes during the time-sensitive checkout process.
3Measurement precision
If multiple coupon codes are tested manually, then users can find the best reward, but it requires iterative testing that is time-consuming
Solution Approach 1:
The system implements automated feedback loops where each coupon code is tested by submitting it to the merchant's server, and the resulting cart total is fed back to determine the reward amount. This automated feedback mechanism rapidly evaluates multiple coupon codes and identifies the best one, replacing manual iterative testing with automated measurement and comparison.
Solution Approach 2:
The system performs periodic automated testing of coupon codes in rapid succession. Instead of manual one-by-one testing, the software module systematically cycles through stored coupon codes, submitting each for validation and comparing results. This periodic automated action achieves thorough reward optimization in a fraction of the time required for manual testing.
Data Source
AI summary
The present disclosure relates to a system, method, and computer program for automatic coupon code fill in a mobile application. The system identifies a checkout page in a WebView of a mobile application and extracts field data from the checkout page. The system identifies a coupon code field and a cart total field from the field data. The system obtains one or more coupon code(s) and tests the one or more coupon code(s) in the checkout page. 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 system identifies a best coupon code, which it inserts in the identified coupon code field in the checkout page in the mobile application.


