The present disclosure generally relates to the technical field of virtual currency. In particular, the disclosed embodiments provide for virtual currency within a social network.
As the popularity of social networking grows, social networks are expanding their capabilities. To improve ease of use, social networks are integrating more and more functions such that a user may accomplish many or even most of their computer-based tasks within the social network itself.
In the drawings, which are not necessarily drawn to scale, like numerals may describe similar components in different views. Like numerals having different letter suffixes may represent different instances of similar components. Some embodiments are illustrated by way of example, and not limitation, in the figures of the accompanying drawings.
The description that follows includes systems, methods, techniques, instruction sequences, and computing machine program products that embody illustrative embodiments of the disclosure. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide an understanding of various embodiments of the inventive subject matter. It will be evident, however, to those skilled in the art, that embodiments of the inventive subject matter may be practiced without these specific details. In general, well-known instruction instances, protocols, structures, and techniques are not necessarily shown in detail.
The disclosed embodiments provide a virtual currency system within a native application, such as a messaging application. The native application may be considered to be an application that interfaces directly with an operating system of a mobile device. This contrasts with a web view of a hosted application or third-party application, which runs within an encapsulated environment, such as a web browser. The native application is used to launch and interface with the third-party application and enables a user to purchase items on the third-party application using a virtual wallet that is maintained by the native application, such as the messaging application.
Many mobile device operating systems already provide an ecommerce interface. The ecommerce interface facilitates electronic commerce by applications running on the mobile device. For example, a particular application may provide for the purchase of additional features within an application. To enable one or more features, the user may agree to pay a predefined amount for the features. To make payment, the user interfaces with a payment system running within the operating system of the device or hosted by the particular application. After payment is made, the particular application may then provide the purchased features.
The disclosed embodiments represent an improvement to this model by enabling a user to purchase items on third-party applications, such as web-based or web-view applications, using virtual currency stored in a wallet maintained by a native application, such as a messaging application. Specifically, the disclosed embodiments enable a user to purchase items on third-party applications that may not necessarily be fully trustworthy. For example, the applications may be written in a non-secure language, such as Hypertext Markup Language 5 (HTML5), which may present one or more security vulnerabilities. Namely, an application written in HTML5 may be edited in an unsecure manner, such that it may not be practical to trust any operations the application may attempt. To mitigate against this risk while still providing the applications with an ability to perform purchase transactions, the disclosed embodiments improve the functioning and operation of the device by providing an interface to the web-based applications running in a web view allowing a user to complete purchase transactions using a messaging application trusted by the user. This avoids the need for the user to directly provide payment information to the third-party applications and reduces the risk of the user's personal information and security being compromised by the third-party application.
In some embodiments, the user interacts directly with a messaging application to purchase and add tokens to the user's virtual wallet maintained by the messaging application. The messaging application launches a third-party application, such as a web-view application. The user can select an item in the third-party application to purchase and in response, the third-party application sends a request to the messaging application to complete an ecommerce transaction for the item. The messaging application verifies one or more attributes of the item, such as a cost, and then deducts funds or tokens from the user's virtual wallet based on the attributes of the item. Once the messaging application successfully deducts the funds and completes the purchase of the item, the messaging application sends a message to the third-party application to enable the user to consume the item on the third-party application. In this way, the third-party application can allow a user to purchase items without directly requesting or processing payment from the user. Namely, all payment information for items requested to be purchased on a third-party application is maintained and processed by the messaging application that the user trusts to be secure. Accordingly, the risk of the third-party application compromising the user's payment information and credentials is reduced, which enhances and improves the security and functioning of the computing system.
In the example shown in
Each messaging client application 104 is also able to communicate with one or more web-based gaming application servers (not shown) (e.g., third-party application servers). Each web-based gaming application server hosts, for example, an HTML5-based game. Particularly, the messaging client application 104 launches a web-based game (or other third-party application) by accessing the HTML5 file from the web-based gaming application server associated with the game and executing the file. The web-based gaming application is presented within the user interface of the messaging application and without leaving the messaging application or switching focus or display of the messaging application. In certain embodiments, the games hosted by the web-based gaming application server are programmed in JavaScript leveraging a software development kit (SDK) provided by the messaging server system 108. The SDK includes application programming interfaces (APIs) with functions that can be called or invoked by the web-based gaming application. In certain embodiments, the gaming application platform includes a JavaScript library that provides a given gaming application access to certain user data of the messaging client application 104. HTML5 is used as an example technology for programming games, according to some embodiments, but games programmed based on other technologies can be used. The disclosure pertaining to web-based gaming applications applies similarly to any other type of web-based application, such as web-based third-party applications.
In order to integrate the functions of the SDK into the game (or third-party application), the SDK is downloaded by the web-based gaming application server from the messaging server system 108 or is otherwise received by the web-based gaming application server. Once downloaded or received, the SDK is included as part of the application code of the web-based game. The code of the web-based game can then call or invoke certain functions of the SDK to integrate features of the messaging client application 104 into the web-based gaming application.
The SDK stored on the gaming application platform 124 effectively provides the bridge between the web-based gaming application (or third-party web-based application) and the messaging client application 104. This provides the user with a seamless experience of communicating with their friends on the messaging client application 104, thereby preserving the look and feel of the messaging client application 104, while playing a web-based gaming application and purchasing items on the web-based gaming application. To bridge the web-based gaming application and the messaging client application 104, in certain embodiments, the SDK facilitates communication between the web-based gaming application server and the messaging client application 104. In certain embodiments, a WebViewJavaScriptBridge running on a client device 102 establishes two one-way communication channels between the web-based gaming application and the messaging client application 104. Messages are sent between the web-based gaming application and the messaging client application 104 via these communication channels asynchronously. Each SDK function invocation is sent as a message, and callback for each SDK function is implemented by constructing a unique callback identifier and sending a message with that callback identifier.
By utilizing the SDK, not all of the information from the messaging client application 104 is shared with the web-based gaming application server. The SDK limits which information is shared based on the needs of the web-based gaming application and based on a context from which the web-based gaming application was launched by the messaging client application 104.
In certain embodiments, each web-based gaming application server provides the HTML5 file corresponding to the web-based gaming application to the messaging server system 108. The messaging server system 108 can add a visual representation of the game in the messaging client application 104. Once the user selects the visual representation or instructs the messaging client application 104 through a GUI of the messaging client application 104 to launch the game (or other web-based application), the messaging client application 104 obtains the HTML5 file and initiates all the resources necessary to launch the game. In some cases, the messaging client application 104 accesses the corresponding web-based gaming application server to launch the game.
Via the SDK of the messaging client application 104, the web-based gaming application can request purchase transactions to be performed by the messaging client application 104. For example, the SDK may provide an API which the web-based gaming application can use to call functions to perform purchase transactions. Namely, the web-based gaming application may receive a user request to purchase an item in the web-based gaming application. The web-based gaming application may call an API function which provides various information (e.g., an identifier of the web-based gaming application, an identifier of the item being purchased, a cost of the item being purchased, a region, an identifier of the user, and so forth) to the messaging client application 104. The messaging client application 104 can process the received information to verify that the item being purchased is authorized. For example, the messaging client application 104 may maintain a list of all items available for purchase by web-based gaming applications along with their respective expected costs. The messaging client application 104 may compare the cost and identity of the item received in the purchase request to the expected costs of the item maintained by the messaging client application 104. In response to determining that the received cost from the web-based gaming application satisfies a verification criterion based on the expected cost (e.g., matches the expected cost or is within a predefined range of the expected cost), the messaging client application 104 may proceed to process the transaction. In some embodiments, the messaging client application 104 presents a confirmation or prompt to the user identifying the item and cost that was received from the web-based gaming application. In response to receiving input from the user confirming the purchase, the messaging client application 104 proceeds to process the transaction.
Specifically, the messaging client application 104 may access a virtual wallet maintained for the user by the messaging client application 104 and determine whether a sufficient number of tokens are available for use in the virtual wallet for completing the purchase transaction. As an example, the messaging client application 104 may determine whether the balance in the virtual wallet exceeds the cost of the item being requested to be purchased by the web-based gaming application. If the balance exceeds the cost, the messaging client application 104 may deduct the cost of the item in tokens from the virtual wallet and generate a purchase transaction identifier. The purchase transaction identifier may identify the time at which the purchase was made, a unique identifier of the purchase transaction, an identifier of the application, and/or identifier of the item that was purchased. The messaging client application 104 may return a message that includes the purchase transaction identifier to the web-based gaming application indicating that the purchase transaction completed successfully. The messaging client application 104 may also store, in a messaging client application, server data that identifies the purchase transaction and marks the transaction as unconsumed. If the balance does not exceed the cost, the messaging client application 104 returns a message to the web-based gaming application indicating that the user does not have sufficient funds and prevents the web-based gaming application from completing the transaction. In an embodiment, the messaging client application 104 navigates the user to a user interface of the messaging client application 104 to allow the user to purchase additional tokens to complete the transaction. If the user purchases additional tokens, the messaging client application 104 returns to the process of completing the transaction by determining if the virtual wallet balance exceeds the cost of the item.
In response to receiving the purchase transaction identifier, the web-based gaming application performs a process to consume the item being requested. As an example, the web-based gaming application communicates the received purchase transaction identifier via an API function call with a messaging client application server. The server may verify that the data in the purchase transaction identifier is valid. Namely, the server may verify that the purchase transaction matches a previously stored purchase transaction identifier that is maintained by the server. For example, the server may access purchase transactions associated with the web-based gaming application and determine whether a purchase transaction identifier received from the web-based gaming application matches one or more of the purchase transaction identifiers stored for the web-based gaming application. If a match is found, the server determines whether the matching purchase transaction is marked as unconsumed. In response to determining that the purchase transaction is unconsumed, the server returns a success message to the web-based gaming application and marks the purchase transaction as consumed. The web-based gaming application can then make the item being purchased by the user available for consumption and use in the web-based gaming application. In response to determining that the purchase transaction is consumed, the server returns a message to the web-based gaming application indicating that the item is a duplicate purchase and prevents the web-based gaming application from consuming the item again.
Any operation and/or action discussed above and below as being performed by the messaging client application 104 may alternatively or in addition be performed by application server 112. In some embodiments, actions are divided between being performed by the messaging client application 104 running on a user device and being performed by the application server 112.
The network 106 may include, or operate in conjunction with, an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), the Internet, a portion of the Internet, a portion of the Public Switched Telephone Network (PSTN), a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, a Wi-Fi® network, another type of network, or a combination of two or more such networks. For example, the network 106 or a portion of the network 106 may include a wireless or cellular network and the connection to the network 106 may be a Code Division Multiple Access (CDMA) connection, a Global System for Mobile communications (GSM) connection, or another type of cellular or wireless coupling. In this example, the coupling may implement any of a variety of types of data transfer technology, such as Single Carrier Radio Transmission Technology (1×RTT), Evolution-Data Optimized (EVDO) technology, General Packet Radio Service (GPRS) technology, Enhanced Data rates for GSM Evolution (EDGE) technology, third-Generation Partnership Project (3GPP) including 3G, fourth-generation wireless (4G) networks, Universal Mobile Telecommunications System (UMTS), High-Speed Packet Access (HSPA), Worldwide Interoperability for Microwave Access (WiMAX), Long-Term Evolution (LTE) standard, or others defined by various standard-setting organizations, other long-range protocols, or other data transfer technology.
The messaging server system 108 provides server-side functionality via the network 106 to a particular messaging client application 104. While certain functions of the messaging system 100 are described herein as being performed by either a messaging client application 104 or by the messaging server system 108, it will be appreciated that the location of certain functionality either within the messaging client application 104 or the messaging server system 108 is a design choice. For example, it may be technically preferable to initially deploy certain technology and functionality within the messaging server system 108, but to later migrate this technology and functionality to the messaging client application 104 where a client device 102 has a sufficient processing capacity.
The messaging server system 108 supports various services and operations that are provided to the messaging client application 104. Such operations include transmitting data to, receiving data from, and processing data generated by the messaging client application 104. This data may include message content, client device information, geolocation information, media annotation and overlays, message content persistence conditions, social network information, and live event information, as examples. Data exchanges within the messaging system 100 are invoked and controlled through functions available via user interfaces (UIs) of the messaging client application 104.
Turning now specifically to the messaging server system 108, an API server 110 is coupled to, and provides a programmatic interface to, an application server 112. The application server 112 is communicatively coupled to a database server 118, which facilitates access to a database 120 in which is stored data associated with messages processed by the application server 112.
The API server 110 receives and transmits message data (e.g., commands and message payloads) between the client device 102 and the application server 112. Specifically, the API server 110 provides a set of interfaces (e.g., routines and protocols) that can be called or queried by the messaging client application 104 in order to invoke functionality of the application server 112. The API server 110 exposes various functions supported by the application server 112, including account registration; login functionality; the sending of messages, via the application server 112, from a particular messaging client application 104 to another messaging client application 104; the sending of media files (e.g., images or video) from a messaging client application 104 to the application server 112, for possible access by another messaging client application 104; the setting of a collection of media data (e.g., story); the retrieval of a list of friends of a user of a client device 102; the retrieval of such collections; the retrieval of messages and content; the adding and deletion of friends to and from a social graph; the location of friends within a social graph; and the detecting of an application event (e.g., relating to the messaging client application 104).
The application server 112 hosts a number of applications and subsystems, including a messaging server application 114 and a social network system 122. The messaging server application 114 implements a number of message processing technologies and functions, particularly related to the aggregation and other processing of content (e.g., textual and multimedia content) included in messages received from multiple instances of the messaging client application 104. As will be described in further detail, the text and media content from multiple sources may be aggregated into collections of content (e.g., called stories or galleries). These collections are then made available, by the messaging server application 114, to the messaging client application 104. Other processor- and memory-intensive processing of data may also be performed server-side by the messaging server application 114, in view of the hardware requirements for such processing.
The social network system 116 supports various social networking functions and services and makes these functions and services available to the messaging server application 114. To this end, the social network system 116 maintains and accesses an entity graph within the database 120. Examples of functions and services supported by the social network system 116 include the identification of other users of the messaging system 100 with whom a particular user has relationships or whom the user is “following,” and also the identification of other entities and interests of a particular user.
The native application 202 may perform primary functions of the messaging client application, and functions as a master controller for implementation of a virtual currency system within the messaging client application 104. The payment system 204 may implement an independent payment system to facilitate ecommerce transactions within the messaging client application 104. The payment system 204 may interface with a payment system implemented by an operating system running on the client device 102 and/or on application server 112. The hosted application 206 may run within a separate security domain when compared to the security domain of the native application 202. The hosted application 206 may run within a web view in some embodiments and may implement or provide an interface to a third-party application or web-based gaming application. The hosted application 206 may interface with the payment system 204 to accomplish ecommerce transactions within the messaging client application 104, without necessarily engaging the payment system implemented as part of the operating system discussed above.
The database 120 includes message data stored within a message table 314. An entity table 302 stores entity data, including an entity graph 304. Entities for which records are maintained within the entity table 302 may include individuals, corporate entities, organizations, objects, places, events, etc. Regardless of type, any entity regarding which the messaging server system 108 stores data may be a recognized entity. Each entity is provided with a unique identifier, as well as an entity type identifier (not shown).
The entity graph 304 furthermore stores information regarding relationships and associations between or among entities. Such relationships may be social, professional (e.g., work at a common corporation or organization), interested-based, or activity-based, merely for example.
The database 120 also stores annotation data, in the example form of filters, in an annotation table 312. Filters for which data is stored within the annotation table 312 are associated with and applied to videos (for which data is stored in a video table 310) and/or images (for which data is stored in an image table 308). Filters, in one example, are overlays that are displayed as overlaid on an image or video during presentation to a recipient user. Filters may be of varies types, including user-selected filters from a gallery of filters presented to a sending user by the messaging client application 104 when the sending user is composing a message. Other types of filters include geolocation filters (also known as geo-filters), which may be presented to a sending user based on geographic location. For example, geolocation filters specific to a neighborhood or special location may be presented within a user interface by the messaging client application 104, based on geolocation information determined by a Global Positioning System (GPS) unit of the client device 102. Another type of filter is a data filter, which may be selectively presented to a sending user by the messaging client application 104, based on other inputs or information gathered by the client device 102 during the message creation process. Examples of data filters include a current temperature at a specific location, a current speed at which a sending user is traveling, a battery life for a client device 102, or the current time.
Other annotation data that may be stored within the image table 308 is so-called “lens” data. A “lens” may be a real-time special effect and sound that may be added to an image or a video.
As mentioned above, the video table 310 stores video data which, in one embodiment, is associated with messages for which records are maintained within the message table 314. Similarly, the image table 308 stores image data associated with messages for which message data is stored in the entity table 302. The entity table 302 may associate various annotations from the annotation table 312 with various images and videos stored in the image table 308 and the video table 310.
A story table 306 stores data regarding collections of messages and associated image, video, or audio data, which are compiled into a collection (e.g., a Story or a gallery). The creation of a particular collection may be initiated by a particular user (e.g., a user for whom a record is maintained in the entity table 302). A user may create a “personal story” in the form of a collection of content that has been created and sent/broadcast by that user. To this end, the user interface of the messaging client application 104 may include an icon that is user-selectable to enable a sending user to add specific content to his or her personal story.
A collection may also constitute a “live story,” which is a collection of content from multiple users that is created manually, automatically, or using a combination of manual and automatic techniques. For example, a “live story” may constitute a curated stream of user-submitted content from various locations and events. Users whose client devices have location services enabled and who are at a common location or event at a particular time may, for example, be presented with an option, via a user interface of the messaging client application 104, to contribute content to a particular live story. The live story may be identified to the user by the messaging client application 104, based on his or her location. The end result is a “live story” told from a community perspective.
A further type of content collection is known as a “location story,” which enables a user whose client device 102 is located within a specific geographic location (e.g., on a college or university campus) to contribute to a particular collection. In some embodiments, a contribution to a location story may require a second degree of authentication to verify that the end user belongs to a specific organization or other entity (e.g., is a student on the university campus).
Prior to launching a game (or third-party application) with in-application purchase capability, a game developer may register and configure goods or items available for purchase within the game using an Inventory Management System (IMS). Such information is stored as third-party application item data 307. For each sellable item, a developer may specify the following: a third-party application identifier; an enabled/disabled indication that controls whether the item is currently available for sale; an icon asset indication, which provides an icon to be used in-game and checkout flow; a title to be used in-game and checkout flow; a short description to be used in-game and checkout flow; an item identifier to be used in-game and checkout flow; a price tier indication, which defines a pricing tier or cost, with fixed localization of pricing by country; a countries enabled indication, which indicates which countries are enabled or disabled for the item; localized languages (per language): localization options for predefined list of supported languages; language specific title: this is a translated title for a selected language to be used in-game and checkout flow; a country specific description for a selected language to be used in-game and checkout flow; and an item version number, which increments with every update to a mutable field. For each item, third-party application item data 307 may store purchase information including: the identifier of the third-party application, user identifier, purchase transaction identifier, and a consumed or unconsumed status.
The messaging client application 104 may maintain a token wallet 309 for each user of the messaging client application 104. The token wallet 309 stores a table (shown in
To purchase tokens from a native storefront of the messaging client application 104, the user navigates to the storefront by entering their profile and selecting an option to access a storefront. After entering the storefront, the messaging client application 104 presents a GUI with several packages of tokens. Each package can be selected for purchase. Selecting any token package may immediately direct the user to a native checkout service of the messaging client application 104. Tokens purchased by the user via certain packages using the messaging client application 104 are associated with the paid tokens class in the token wallet 309.
To add purchased tokens to the wallet, the messaging client application 104 calls a CreditWallet API function. In the API function call, the messaging client application 104 includes the user identifier, credit amount, purchase value (in gross local currency), purchase value (in net local currency), purchase currency, purchase Value (in net U.S. dollars), transaction identifier (TransactionID), user locale, token Class (paid token (Token.P)/promotional token (Token.F)/earned token (Token.E)), and an expiration date (optionally) for free or earned tokens only. In response to receiving the request from the messaging client application 104, the wallet service of the application server creates and adds a new bundle entry into the wallet 309 which includes: BundleID: ID for the unique purchase OR for the unique class+value combination, Token Class, TransactionID, and user locale. In some embodiments, the user locale is derived from the operating system purchase locale. Local currency Value per Token (gross) is the gross amount charged in the store, in user locale currency; Local currency Value per Token (net) is the net amount payable which may be country dependent (e.g., generally 70% of gross, but may be less for countries that charge taxes (˜58%)); Local Currency is the transacting currency; USD Value per Token is Converted net amount per token, with currency conversion occurring at the time of bundle purchase; creation date is the bundle purchase/creation timestamp.
The third-party application may then retrieve a purchase transaction identifier information for the unconsumed items and provide the purchase transaction identifier to the server 112. In response to the server 112 determining that the purchase transaction identifier matches the purchase transaction identifier of the unconsumed item, the server 112 marks the item as consumed and enables the third-party application to consume and provide the item to the user. In some embodiments, any item identifier stored in item data 307 that has previously been purchased but not consumed will not be purchasable again even if the item is valid and live. These operations are outlined below in Step 6 and Step 7 of
The third-party application may also load into the storefront for purchasing other non-virtual currency-sellable items, such as previously purchased goods, gated/locked items, or tertiary items (purchasable with a secondary in-game currency). However, such assets (including title, description, icon) may be controlled and provided by the third-party application, and may not match anything actively available for sale (but can match an item in item data 307 that is marked as disabled).
To retrieve item details, a third-party application may request inventory detail from the messaging client application 104 through a GetItemDetails API function call. For each unique item, the messaging client application 104 may send one or more of ProjectID, ItemID, User_locale. An inventory endpoint receives a request. The messaging client application 104 verifies for each ItemID whether the item is valid for sale by checking the corresponding status in item data 307. For example, the status in item data 307 may indicate the itemID is enabled or disabled. A country status of the item may indicate the country is matched to the user_locale. The following is then retrieved for each ItemID: ItemID, Item_Version, Localized_Title, Localized_Description, Localized_Price, Icon Asset.
The third-party application receives the response from the messaging client application 104 and matches assets for display in the storefront.
In some embodiments, the messaging client application 104 or third-party application may check and display a user balance. In some implementations, only the messaging client application 104 may display the user balance by accessing the total amount of tokens available in the token wallet 309 for the user. The total amount of tokens may be an aggregated sum across all subsets of tokens irrespective of their corresponding class. In some embodiments, the class of tokens remains hidden from view for the user. In some cases, the balance of the token wallet 309 is always displayed when a user views a storefront but the balance is not revealed to the third-party application. Namely, a GUI of the messaging client application 104 that represents the wallet balance for the user may be overlaid automatically on top of a GUI of the third-party application which includes a storefront. For example, whenever the user accesses a storefront of the third-party application, the third-party application may generate and send a request to the messaging client application 104 to display the user balance of the token wallet 309. When the user exists the storefront, the third-party application may instruct the messaging client application 104 to remove the display of the user balance.
In some embodiments, after steps 1-4 are completed, the user may access a storefront in the web-based gaming application with sellable items. In some embodiments, the messaging client application 104 presents the balance of the token wallet 309 at the top. Below the balance of the token wallet 309, the third-party application presents items of the storefront together with their costs in the local currency of the user.
In some embodiments, the messaging client application 104 presents a token balance in the token wallet 309 for the user and determines whether any promotions are available. To determine if any promotions are available, the messaging client application 104 sends a user identifier to a promotion system and checks if any promotions are available to the user. The promotion system can check if any offers are available for the current date (e.g., whether an offer is associated with a start and end date within which the current date falls). The promotion system may check if the user has previously received or consumed the promotion that is available and if not, may update the wallet to add tokens associated with the promotion.
In response to determining that there is a promotion available, the messaging client application 104 retrieves graphical elements (e.g., animations, overlays, notifications) associated with the promotion that is available. The graphical elements are presented together with the token balance. The user can select or interact with the graphical elements to consume the promotion and in response, a new promotion token bundle or subset associated with the promotion that is available is added to the token wallet 309.
The messaging client application 104 may check to see if the user has sufficient tokens or currency in the token wallet to complete purchase. This may be performed before or after the purchase prompt is presented to the user in
To process payment for the item, the messaging client application 104 calls a DebitRequest API function with the following parameters: Transact, Transaction ID, user identifier, and price or cost (Debit Amount). A debit service then performs the following: verifies sufficient user balance in the token wallet 309 and determines the highest value bundles from which to deduct tokens. Namely, the debit service deducts values from the tokens available in the token wallet 309 based on token class and creation date. The debit system selects as many token bundles or subsets as needed to cover the total purchase price in tokens.
In some cases, the hierarchy of token subset selection is: paid tokens get deducted first, followed by promotional tokens, and then earned tokens. In particular, the token balance in the wallet 309 is deducted in a way that depletes paid tokens first, and then when all the paid tokens are depleted, depletes promotion tokens. After all the paid and promotion tokens are depleted, the earned tokens are depleted.
To deplete or deduct token values, the debit service starts depleting tokens associated with the paid class (the tokens associated with the highest value bundles or subsets) first, defined by USD (U.S. dollars) Value per Token. Within those bundles or subsets, the tokens with the oldest creation date (as indicated by the table shown in
In some cases, the price or cost of the item is less than the total number of tokens available in a given subset (e.g., the cost of the item is less than the total number of tokens purchased on a given date). In such cases, the debit service splits the given subset into two components, one of which is equal to the price or cost of the item. The component with the number of tokens equal to the price or cost of the item is depleted first, and the second component with the remaining number of tokens remains stored in the wallet.
If the purchase is successful, a successful indication is returned to the third-party application and may include: TransactionToken, TransactionTimestamp, ProjectID, user identifier, ItemID (item identifier), Item_Version, Price, and/or a Transaction Status.
Step 6 of
Step 7 of
In operation 1301, the messaging client application 104 launches a third-party application.
In operation 1302, the messaging client application 104 receives from the third-party application a request to perform an ecommerce transaction in relation to an item available for consumption on the third-party application.
In operation 1304, the messaging application determines an expected attribute for the item based on accessing a database that stores expected attribute information for multiple items.
In operation 1306, the messaging client application 104 verifies that an attribute of the item specified by the request corresponds to the expected attribute for the item.
In operation 1307, the messaging client application 104 processes the ecommerce transaction in response to successfully verifying that the attribute of the item satisfies a verification criterion based on the expected attribute of the item.
Software Architecture
As used herein, the term “component” may refer to a device, a physical entity, or logic having boundaries defined by function or subroutine calls, branch points, APIs, and/or other technologies that provide for the partitioning or modularization of particular processing or control functions. Components may be combined via their interfaces with other components to carry out a machine process. A component may be a packaged functional hardware unit designed for use with other components and a part of a program that usually performs a particular function of related functions.
Components may constitute either software components (e.g., code embodied on a machine-readable medium) or hardware components. A “hardware component” is a tangible unit capable of performing certain operations and may be configured or arranged in a certain physical manner. In various exemplary embodiments, one or more computer systems (e.g., a standalone computer system, a client computer system, or a server computer system) or one or more hardware components of a computer system (e.g., a processor or a group of processors) may be configured by software (e.g., an application or application portion) as a hardware component that operates to perform certain operations as described herein. A hardware component may also be implemented mechanically, electronically, or any suitable combination thereof. For example, a hardware component may include dedicated circuitry or logic that is permanently configured to perform certain operations.
A hardware component may be a special-purpose processor, such as a Field-Programmable Gate Array (FPGA) or an Application-Specific Integrated Circuit (ASIC). A hardware component may also include programmable logic or circuitry that is temporarily configured by software to perform certain operations. For example, a hardware component may include software executed by a general-purpose processor or other programmable processor. Once configured by such software, hardware components become specific machines (or specific components of a machine) uniquely tailored to perform the configured functions and are no longer general-purpose processors. It will be appreciated that the decision to implement a hardware component mechanically, in dedicated and permanently configured circuitry, or in temporarily configured circuitry (e.g., configured by software), may be driven by cost and time considerations.
A processor may be, or include, any circuit or virtual circuit (a physical circuit emulated by logic executing on an actual processor) that manipulates data values according to control signals (e.g., “commands,” “op codes,” “machine code,” etc.) and that produces corresponding output signals that are applied to operate a machine. A processor may, for example, be a Central Processing Unit (CPU), a Reduced Instruction Set Computing (RISC) processor, a Complex Instruction Set Computing (CISC) processor, a Graphics Processing Unit (GPU), a Digital Signal Processor (DSP), an ASIC, a Radio-Frequency Integrated Circuit (RFIC), or any combination thereof. A processor may further be a multi-core processor having two or more independent processors (sometimes referred to as “cores”) that may execute instructions contemporaneously.
Accordingly, the phrase “hardware component” (or “hardware-implemented component”) should be understood to encompass a tangible entity, be that an entity that is physically constructed, permanently configured (e.g., hardwired), or temporarily configured (e.g., programmed) to operate in a certain manner or to perform certain operations described herein. Considering embodiments in which hardware components are temporarily configured (e.g., programmed), each of the hardware components need not be configured or instantiated at any one instance in time. For example, where a hardware component comprises a general-purpose processor configured by software to become a special-purpose processor, the general-purpose processor may be configured as respectively different special-purpose processors (e.g., comprising different hardware components) at different times. Software accordingly configures a particular processor or processors, for example, to constitute a particular hardware component at one instance of time and to constitute a different hardware component at a different instance of time. Hardware components can provide information to, and receive information from, other hardware components. Accordingly, the described hardware components may be regarded as being communicatively coupled. Where multiple hardware components exist contemporaneously, communications may be achieved through signal transmission (e.g., over appropriate circuits and buses) between or among two or more of the hardware components. In embodiments in which multiple hardware components are configured or instantiated at different times, communications between or among such hardware components may be achieved, for example, through the storage and retrieval of information in memory structures to which the multiple hardware components have access.
For example, one hardware component may perform an operation and store the output of that operation in a memory device to which it is communicatively coupled. A further hardware component may then, at a later time, access the memory device to retrieve and process the stored output. Hardware components may also initiate communications with input or output devices, and can operate on a resource (e.g., a collection of information). The various operations of example methods described herein may be performed, at least partially, by one or more processors that are temporarily configured (e.g., by software) or permanently configured to perform the relevant operations. Whether temporarily or permanently configured, such processors may constitute processor-implemented components that operate to perform one or more operations or functions described herein. As used herein, “processor-implemented component” refers to a hardware component implemented using one or more processors. Similarly, the methods described herein may be at least partially processor-implemented, with a particular processor or processors being an example of hardware. For example, at least some of the operations of a method may be performed by one or more processors or processor-implemented components.
Moreover, the one or more processors may also operate to support performance of the relevant operations in a “cloud computing” environment or as a “software as a service” (SaaS). For example, at least some of the operations may be performed by a group of computers (as examples of machines including processors), with these operations being accessible via a network (e.g., the Internet) and via one or more appropriate interfaces (e.g., an API). The performance of certain of the operations may be distributed among the processors, not only residing within a single machine, but deployed across a number of machines. In some exemplary embodiments, the processors or processor-implemented components may be located in a single geographic location (e.g., within a home environment, an office environment, or a server farm). In other exemplary embodiments, the processors or processor-implemented components may be distributed across a number of geographic locations.
In the exemplary architecture of
The operating system 1402 may manage hardware resources and provide common services. The operating system 1402 may include, for example, a kernel 1422, services 1424, and drivers 1426. The kernel 1422 may act as an abstraction layer between the hardware and the other software layers. For example, the kernel 1422 may be responsible for memory management, processor management (e.g., scheduling), component management, networking, security settings, and so on. The services 1424 may provide other common services for the other software layers. The drivers 1426 are responsible for controlling or interfacing with the underlying hardware. For instance, the drivers 1426 include display drivers, camera drivers, Bluetooth® drivers, flash memory drivers, serial communication drivers (e.g., Universal Serial Bus (USB) drivers), Wi-Fi® drivers, audio drivers, power management drivers, and so forth depending on the hardware configuration.
The libraries 1420 provide a common infrastructure that is used by the applications 1416 and/or other components and/or layers. The libraries 1420 provide functionality that allows other software components to perform tasks in an easier fashion than by interfacing directly with the underlying operating system 1402 functionality (e.g., kernel 1422, services 1424, and/or drivers 1426). The libraries 1420 may include system libraries 1444 (e.g., C standard library) that may provide functions such as memory allocation functions, string manipulation functions, mathematical functions, and the like. In addition, the libraries 1420 may include API libraries 1446 such as media libraries (e.g., libraries to support presentation and manipulation of various media formats such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG), graphics libraries (e.g., an OpenGL framework that may be used to render 2D and 3D graphic content on a display), database libraries (e.g., SQLite that may provide various relational database functions), web libraries (e.g., WebKit that may provide web browsing functionality), and the like. The libraries 1420 may also include a wide variety of other libraries 1448 to provide many other APIs to the applications 1416 and other software components/modules.
The frameworks/middleware 1418 provide a higher-level common infrastructure that may be used by the applications 1416 and/or other software components/modules. For example, the frameworks/middleware 1418 may provide various GUI functions, high-level resource management, high-level location services, and so forth. The frameworks/middleware 1418 may provide a broad spectrum of other APIs that may be utilized by the applications 1416 and/or other software components/modules, some of which may be specific to a particular operating system 1402 or platform.
The applications 1416 include built-in applications 1438 and/or third-party applications 1440. Examples of representative built-in applications 1438 may include, but are not limited to, a contacts application, a browser application, a book reader application, a location application, a media application, a messaging application, and/or a game application. The third-party applications 1440 may include an application developed using the ANDROID™ or IOS™ SDK by an entity other than the vendor of the particular platform, and may be mobile software running on a mobile operating system such as IOS™, ANDROID™, WINDOWS® Phone, or other mobile operating systems. The third-party applications 1440 may invoke the API calls 1408 provided by the mobile operating system (such as the operating system 1402) to facilitate functionality described herein.
The applications 1416 may use built-in operating system functions (e.g., kernel 1422, services 1424, and/or drivers 1426), libraries 1420, and frameworks/middleware 1418 to create user interfaces to interact with users of the system. Alternatively, or additionally, in some systems interactions with a user may occur through a presentation layer, such as the presentation layer 1414. In these systems, the application/component “logic” can be separated from the aspects of the application/component that interact with a user.
Exemplary Machine
The machine 1500 may include processors 1504, memory/storage 1506, and I/O components 1518, which may be configured to communicate with each other such as via a bus 1502. The memory/storage 1506 may include a memory 1514, such as a main memory, or other memory storage, and a storage unit 1516, both accessible to the processors 1504 such as via the bus 1502. The storage unit 1516 and memory 1514 store the instructions 1510 embodying any one or more of the methodologies or functions described herein. The instructions 1510 may also reside, completely or partially, within the memory 1514, within the storage unit 1516, within at least one of the processors 1504 (e.g., within the processor's cache memory), or any suitable combination thereof, during execution thereof by the machine 1500. Accordingly, the memory 1514, the storage unit 1516, and the memory of the processors 1504 are examples of machine-readable media.
As used herein, the term “machine-readable medium,” “computer-readable medium,” or the like may refer to any component, device, or other tangible medium able to store instructions and data temporarily or permanently. Examples of such media may include, but are not limited to, random-access memory (RAM), read-only memory (ROM), buffer memory, flash memory, optical media, magnetic media, cache memory, other types of storage (e.g., Electrically Erasable Programmable Read-Only Memory (EEPROM)), and/or any suitable combination thereof. The term “machine-readable medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, or associated caches and servers) able to store instructions. The term “machine-readable medium” may also be taken to include any medium, or combination of multiple media, that is capable of storing instructions (e.g., code) for execution by a machine, such that the instructions, when executed by one or more processors of the machine, cause the machine to perform any one or more of the methodologies described herein. Accordingly, a “machine-readable medium” may refer to a single storage apparatus or device, as well as “cloud-based” storage systems or storage networks that include multiple storage apparatus or devices. The term “machine-readable medium” excludes signals per se.
The I/O components 1518 may include a wide variety of components to provide a user interface for receiving input, providing output, producing output, transmitting information, exchanging information, capturing measurements, and so on. The specific I/O components 1518 that are included in the user interface of a particular machine 1500 will depend on the type of machine. For example, portable machines such as mobile phones will likely include a touch input device or other such input mechanisms, while a headless server machine will likely not include such a touch input device. It will be appreciated that the I/O components 1518 may include many other components that are not shown in
In further exemplary embodiments, the I/O components 1518 may include biometric components 1530, motion components 1534, environment components 1536, or position components 1538, as well as a wide array of other components. For example, the biometric components 1530 may include components to detect expressions (e.g., hand expressions, facial expressions, vocal expressions, body gestures, or eye tracking), measure biosignals (e.g., blood pressure, heart rate, body temperature, perspiration, or brain waves), identify a person (e.g., voice identification, retinal identification, facial identification, fingerprint identification, or electroencephalogram-based identification), and the like. The motion components 1534 may include acceleration sensor components (e.g., accelerometer), gravitation sensor components, rotation sensor components (e.g., gyroscope), and so forth. The environment components 1536 may include, for example, illumination sensor components (e.g., photometer), temperature sensor components (e.g., one or more thermometers that detect ambient temperature), humidity sensor components, pressure sensor components (e.g., barometer), acoustic sensor components (e.g., one or more microphones that detect background noise), proximity sensor components (e.g., infrared sensors that detect nearby objects), gas sensors (e.g., gas detection sensors to detect concentrations of hazardous gases for safety or to measure pollutants in the atmosphere), or other components that may provide indications, measurements, or signals corresponding to a surrounding physical environment. The position components 1538 may include location sensor components (e.g., a GPS receiver component), altitude sensor components (e.g., altimeters or barometers that detect air pressure from which altitude may be derived), orientation sensor components (e.g., magnetometers), and the like.
Communication may be implemented using a wide variety of technologies. The I/O components 1518 may include communication components 1540 operable to couple the machine 1500 to a network 1532 or devices 1520 via a coupling 1524 and a coupling 1522, respectively. For example, the communication components 1540 may include a network interface component or other suitable device to interface with the network 1532. In further examples, the communication components 1540 may include wired communication components, wireless communication components, cellular communication components, Near Field Communication (NFC) components, Bluetooth® components (e.g., Bluetooth® Low Energy), Wi-Fi® components, and other communication components to provide communication via other modalities. The devices 1520 may be another machine or any of a wide variety of peripheral devices (e.g., a peripheral device coupled via a USB).
Moreover, the communication components 1540 may detect identifiers or include components operable to detect identifiers. For example, the communication components 1540 may include Radio Frequency Identification (RFID) tag reader components, NFC smart tag detection components, optical reader components (e.g., an optical sensor to detect one-dimensional bar codes such as Universal Product Code (UPC) bar code, multi-dimensional bar codes such as Quick Response (QR) code, Aztec code, Data Matrix, Dataglyph, MaxiCode, PDF4111, Ultra Code, UCC RSS-2D bar code, and other optical codes), or acoustic detection components (e.g., microphones to identify tagged audio signals). In addition, a variety of information may be derived via the communication components 1540, such as location via Internet Protocol (IP) geo-location, location via Wi-Fi® signal triangulation, location via detecting an NFC beacon signal that may indicate a particular location, and so forth.
Where a phrase similar to “at least one of A, B, or C,” “at least one of A, B, and C,” “one or more of A, B, or C,” or “one or more of A, B, and C” is used, it is intended that the phrase be interpreted to mean that A alone may be present in an embodiment, B alone may be present in an embodiment, C alone may be present in an embodiment, or any combination of the elements A, B, and C may be present in a single embodiment; for example, A and B, A and C, B and C, or A and B and C may be present.
Changes and modifications may be made to the disclosed embodiments without departing from the scope of the present disclosure. These and other changes or modifications are intended to be included within the scope of the present disclosure, as expressed in the following claims.
The present disclosure claims the benefit of U.S. Provisional Application No. 62/786,220, filed Dec. 28, 2018, which is hereby incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
8239487 | Hoffman et al. | Aug 2012 | B1 |
8707394 | Tam | Apr 2014 | B2 |
20130006736 | Bethke et al. | Jan 2013 | A1 |
20130344932 | Adams et al. | Dec 2013 | A1 |
20140141864 | Ward et al. | May 2014 | A1 |
20160035178 | Judkins et al. | Feb 2016 | A1 |
20160048250 | Thakkar et al. | Feb 2016 | A1 |
20170076262 | Mar 2017 | A1 | |
20170148267 | Parker | May 2017 | A1 |
20170316414 | Doran | Nov 2017 | A1 |
20180013765 | Brown et al. | Jan 2018 | A1 |
20180102018 | Cage et al. | Apr 2018 | A1 |
20180300050 | Mulcahy et al. | Oct 2018 | A1 |
20180350144 | Rathod | Dec 2018 | A1 |
20180367483 | Rodriguez et al. | Dec 2018 | A1 |
Number | Date | Country |
---|---|---|
WO-2011041467 | Apr 2011 | WO |
Entry |
---|
Chang, Tao-Ku. “A secure operational model for mobile payments.” TheScientificWorldJournal vol. 2014 (2014): 626243. doi: 10.1155/2014/626243 (Year: 2014). |
“U.S. Appl. No. 16/422,063, Advisory Action dated Mar. 16, 2022”, 3 pgs. |
“U.S. Appl. No. 16/422,063, Final Office Action dated Jan. 7, 2022”, 28 pgs. |
“U.S. Appl. No. 16/422,063, Non Final Office Action dated Jun. 9, 2022”, 29 pgs. |
“U.S. Appl. No. 16/422,063, Non Final Office Action dated Jul. 14, 2020”, 33 pgs. |
“U.S. Appl. No. 16/422,063, Response filed Feb. 16, 22 to Final Office Action dated Jan. 7, 2022”, 12 pgs. |
“U.S. Appl. No. 16/422,063, Response filed Oct. 12, 20 to Non Final Office Action dated Jul. 14, 2020”, 11 pgs. |
Sharp, C. E., et al., “online games and business: Architecture for integrating business models and services into online games”, IBM Systems Journal, vol. 45, Issue: 1, (Jan. 1, 2006), 161-179. |
“U.S. Appl. No. 16/422,063, Response filed Sep. 8, 2022 to Non Final Office Action dated Jun. 9, 2022”, 12 pgs. |
Number | Date | Country | |
---|---|---|---|
62786220 | Dec 2018 | US |