System, method, device and equipment for purchasing commodities in application and storage medium
By introducing a transaction data verification mechanism into the in-app purchase system, the data interaction between the terminal, platform server and application provider server solves the problem of insufficient transaction security in the existing technology and achieves higher transaction security and Legality guarantee.
Patent Information
- Application Number
- CN202410823124.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-08
AI Technical Summary
Existing in-app purchase systems have deficiencies in transaction security, making it difficult to effectively ensure the legality and security of transactions.
Send a purchase request to the platform server through the terminal, and after receiving the transaction data, send it to the application provider server. The application provider server sends the transaction data to the platform server for verification. The platform server feeds back the verification result to the application provider server. The application When the verification is successful, the merchant server issues the target product to the user account.
Improves the security of purchase transactions, ensures the legality and security of transactions, and prevents fraud.
Smart Images

Figure CN118747673A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software application technology, and in particular to a system, method, device, equipment and storage medium for purchasing goods within an application. Background Art
[0002] With the rapid development of mobile Internet, mobile applications have become an indispensable part of people's daily lives. Among them, the in-app purchase function supports users to purchase virtual items and services within the application, which greatly improves the profitability of the application and the convenience of user use. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a system, method, device, equipment and storage medium for purchasing goods in an application to improve the security of purchase transactions. The specific technical solution is as follows:
[0004] In a first aspect, a system for purchasing goods within an application is provided, comprising: a terminal, a platform server and an application provider server;
[0005] The terminal is used to send a purchase request to the platform server, wherein the purchase request carries an identifier of the target product and a payment order number;
[0006] The platform server is used to respond to the purchase request and feed back transaction data to the terminal;
[0007] The terminal is used to send the transaction data to the application provider server;
[0008] The application business server is used to send the received transaction data to the platform server;
[0009] The platform server is used to verify the transaction based on the received transaction data and feed back the verification result to the application provider server;
[0010] The application provider server is used to send the target product to the user account when the received verification result is successful.
[0011] Optionally, the terminal is specifically configured to monitor the in-app purchase result callback through a preset in-app purchase result callback method, and when transaction data is monitored, send the transaction data to the application provider server.
[0012] Optionally, the application merchant server is further used to record the identifier of the target product, the payment order number and the transaction data in correspondence.
[0013] Optionally, the terminal is specifically configured to call an in-app purchase method in an in-app purchase plug-in to send a purchase request to the platform server.
[0014] Optionally, the terminal is further used to determine the target product selected by the user; send a payment order number creation request for the target product to the application provider server, wherein the payment order number creation request carries an identifier of the target product;
[0015] The application merchant server is further configured to, after receiving a payment order number creation request for the target product sent by the terminal, create a payment order number for the target product and send the payment order number to the terminal.
[0016] Optionally, the terminal is further used to create an in-app purchase object and initialize the in-app purchase object after the application is started;
[0017] The terminal is specifically used to call a preset in-app purchase method through the in-app purchase object to send a purchase request to the platform server, and send the transaction data to the application provider server through the in-app purchase object.
[0018] In a second aspect, a method for purchasing goods within an application is provided, which is applied to a terminal and includes:
[0019] Sending a purchase request to the platform server, wherein the purchase request carries the identifier of the target product and the payment order number;
[0020] Receiving transaction data fed back by the platform server in response to the purchase request;
[0021] The transaction data is sent to the application vendor server, so that the application vendor server can send the target product to the user account if the received verification result is successful. The verification result is that the application vendor server sends the received transaction data to the platform server, and the platform server verifies the transaction based on the received transaction data and feeds back to the application vendor server.
[0022] In a third aspect, a method for purchasing goods within an application is provided, which is applied to an application provider server and includes:
[0023] Receiving transaction data sent by the terminal, wherein the transaction data is fed back by the platform server to the terminal in response to a purchase request, the purchase request is sent by the terminal to the platform server, and the purchase request carries an identifier of the target product and a payment order number;
[0024] Sending the received transaction data to the platform server, so that the platform server verifies the transaction based on the received transaction data and feeds back the verification result to the application provider server;
[0025] When the received verification result is successful, the target product is sent to the user account.
[0026] In a fourth aspect, a device for purchasing goods within an application is provided, which is applied to a terminal and includes:
[0027] A first sending module, configured to send a purchase request to the platform server, wherein the purchase request carries an identifier of a target commodity and a payment order number;
[0028] A first receiving module, configured to receive transaction data fed back by the platform server in response to the purchase request;
[0029] The second sending module is used to send the transaction data to the application provider server, so that the application provider server can send the target product to the user account when the received verification result is successful. The verification result is that the application provider server sends the received transaction data to the platform server, and the platform server verifies the transaction based on the received transaction data and feeds back to the application provider server.
[0030] In a fifth aspect, a device for purchasing goods within an application is provided, which is applied to an application provider server, and includes:
[0031] A receiving module, configured to receive transaction data sent by a terminal, wherein the transaction data is fed back by a platform server to the terminal in response to a purchase request, the purchase request is sent by the terminal to the platform server, and the purchase request carries an identifier of a target product and a payment order number;
[0032] A sending module, used to send the received transaction data to the platform server, so that the platform server verifies the transaction based on the received transaction data and feeds back the verification result to the application provider server;
[0033] The sending module is used to send the target product to the user account when the received verification result is successful.
[0034] In a sixth aspect, an electronic device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0035] Memory, used to store computer programs;
[0036] The processor is used to implement the method steps described in any one of the second aspect or the third aspect when executing the program stored in the memory.
[0037] In a seventh aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps described in any one of the second aspect or the third aspect are implemented.
[0038] An embodiment of the present invention further provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any of the above-mentioned methods for purchasing goods within an application.
[0039] Beneficial effects of the embodiments of the present invention:
[0040] In an embodiment of the present invention, after the terminal sends a purchase request to the platform server and obtains transaction data fed back by the platform server, the terminal sends the transaction data to the application merchant server, and the application merchant server sends the received transaction data to the platform server. The platform server verifies the transaction based on the received transaction data and feeds back the verification result to the application merchant server. The application merchant server sends the target product to the user account if the received verification result is successful. In this way, the security of the purchase transaction can be improved.
[0041] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0043] Figure 1 A schematic diagram of providing an in-app purchase function for an application in an embodiment of the present invention;
[0044] Figure 2 A schematic diagram of the structure of a system for purchasing goods within an application provided by an embodiment of the present invention;
[0045] Figure 3 An interactive schematic diagram of a system for purchasing goods within an application provided by an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of triggering a purchase request in an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of a specific embodiment of the present invention;
[0048] Figure 6 Flow chart of a method for purchasing goods within an application of a terminal according to an embodiment of the present invention;
[0049] Figure 7 Flow chart of a method for purchasing goods within an application applied to an application merchant server in an embodiment of the present invention;
[0050] Figure 8 This is a schematic diagram of the structure of an apparatus for purchasing goods within an application of a terminal according to an embodiment of the present invention;
[0051] Fig. 9 This is a schematic diagram of the structure of in-application purchase of goods applied to an application merchant server in an embodiment of the present invention;
[0052] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on the present invention belong to the scope of protection of the present invention.
[0054] Currently, not all apps offer in-app purchases. Before purchasing or downloading an app, you can check whether the app offers in-app purchases. Generally, you can check whether there is a "In-App Purchase" near the price or "Get" button of the app. If there is, it means that the app offers in-app purchases. Figure 1 As shown, it includes application icon 1 and application icon 2. There is a "Get" button corresponding to application icon 1 with the words "In-App Purchase" below, which means that the application provides an in-app purchase function. In the process of using the application, the system, method, device, equipment and storage medium for purchasing goods in the application provided by the embodiments of the present invention can be used.
[0055] The following first describes in detail the system for purchasing goods within an application provided by an embodiment of the present invention.
[0056] refer to Figure 2 , an embodiment of the present invention provides a system for purchasing goods in an application, including: a terminal 21, a platform server 22 and an application provider server 23;
[0057] The terminal 21 is used to send a purchase request to the platform server 22, wherein the purchase request carries the identifier of the target product and the payment order number;
[0058] The platform server 22 is used to respond to the purchase request and feedback the transaction data to the terminal 21;
[0059] Terminal 21, used to send transaction data to application provider server 23;
[0060] The application business server 23 is used to send the received transaction data to the platform server 22;
[0061] The platform server 22 is used to verify the transaction based on the received transaction data and feedback the verification result to the application provider server 23;
[0062] The application business server 23 is used to send the target product to the user account when the received verification result is successful.
[0063] Among them, the terminal 21 can specifically be a mobile phone, a tablet computer, etc., the platform server 22 can be understood as a server that provides a purchasing platform, such as a server that provides an application store, and the application vendor server 23 can be understood as a server of an application provider, for example, a server for applications such as music player software and video player software.
[0064] In the system for purchasing goods within an application provided by an embodiment of the present invention, after the terminal 21 sends a purchase request to the platform server 22 and obtains the transaction data fed back by the platform server 22, the terminal 21 sends the transaction data to the application merchant server 23, and the application merchant server 23 sends the received transaction data to the platform server 22. The platform server 22 verifies the transaction based on the received transaction data and feeds back the verification result to the application merchant server 23. When the received verification result is a successful verification, the application merchant server 23 sends the target product to the user account. In this way, the security of the purchase transaction can be improved.
[0065] refer to Figure 3 , the process of interaction between various parts of the system for purchasing goods in an application provided by an embodiment of the present invention is described in detail.
[0066] S31: The terminal 21 sends a purchase request to the platform server 22, wherein the purchase request carries the identifier of the target product and the payment order number.
[0067] The terminal 21 may call a preset in-app purchase method to send a purchase request to the platform server 22 .
[0068] The preset in-app purchase method may be an in-app purchase method in an in-app purchase plug-in, that is, the terminal 21 calls the in-app purchase method in the in-app purchase plug-in to send a purchase request to the platform server 22, such as the in-app purchase plug-in.
[0069] The preset in-app purchase method may be added during the process of initializing the in-app purchase, and the process of initializing the in-app purchase may be executed after the application is started.
[0070] The target product can be understood as the product selected by the user. The product here can include virtual items or services in the application, such as game coins, game props, etc.
[0071] The terminal 21 is also used to determine the target product selected by the user.
[0072] Specifically, the terminal 21 can send a product information request to the application merchant server 23; after receiving the product information request, the application merchant server 23 feeds back the product information of at least one product to the terminal 21; the product information of at least one product is pre-entered by the application merchant server 23 based on the product information configured by the platform server 22; after receiving the product information of at least one product, the terminal 21 displays the product information of at least one product and determines the target product selected by the user based on the product information of at least one product.
[0073] Alternatively, the terminal 21 may obtain product information from the platform server 22, display product information of at least one product, and determine a target product selected by the user based on the product information of the at least one product.
[0074] In one possible implementation, after the terminal 21 determines the target product selected by the user, it can provide the user with a purchase confirmation interface for the target product, such as Figure 4 As shown, when the user clicks the “Buy” button, it can be understood as triggering a purchase request to be sent to the platform server 22 .
[0075] In one possible implementation, after the terminal 21 determines the target product selected by the user, a payment order number may be created through the application provider server 23 .
[0076] The terminal 21 sends a payment order number creation request for the target product to the application provider server 23, wherein the payment order number creation request carries the identifier of the target product. After receiving the payment order number creation request for the target product sent by the terminal 21, the application provider server 23 creates a payment order number for the target product and sends the payment order number to the terminal 21.
[0077] The identifier of the target product may be a product identifier (ID) included in the product information of the target product.
[0078] After obtaining the payment order number, the terminal 21 sends a purchase request carrying the identification of the target product and the payment order number to the platform server 22 .
[0079] The terminal 21 can call the in-app purchase method in the in-app purchase plug-in to send a product information request and initiate a purchase request to the application provider server 23. The in-app purchase method can specifically be the requestPurchase method in the in-app purchase plug-in (such as the in_app_purchase plug-in).
[0080] S32: The platform server 22 responds to the purchase request and feeds back transaction data to the terminal 21.
[0081] After receiving the purchase request from the terminal 21, the platform server 22 responds to the purchase request, which can also be understood as feeding back the response request to the terminal 21. After receiving the response request from the platform server 22, the terminal 21 provides a payment interface and receives the payment information entered by the user in the payment interface; the terminal 21 sends the payment information to the platform server 22; after receiving the payment information, the platform server 22 feeds back an in-app purchase result callback to the terminal 21; the in-app purchase result callback can also be called a payment result callback, and the callback data of the callback can specifically include transaction data, such as a transaction identifier (transactionId) and a transaction receipt (transactionReceipt), etc.
[0082] Payment information may include payment password, etc.
[0083] S33: The terminal 21 sends the transaction data to the application provider server 23.
[0084] The target product identification, payment order number and transaction data are sent to the application merchant server 23.
[0085] The terminal 21 is specifically used to monitor the in-app purchase result callback through a preset in-app purchase result callback method, and when transaction data is monitored, send the transaction data to the application provider server 23.
[0086] The terminal 21 may call a preset verification order interface to send the target product identifier, payment order number and transaction data to the application server 23. For example, if the operating system of the terminal 21 is an iOS system, the preset verification order interface may be a verification order interface validateReceipt interface or the like.
[0087] The preset in-app purchase result callback method may be added during the process of initializing the in-app purchase, and the process of initializing the in-app purchase may be executed after the application is started.
[0088] S34: the application business server 23 sends the received transaction data to the platform server 22;
[0089] S35: The platform server 22 verifies the transaction based on the received transaction data;
[0090] S36: The platform server 22 feeds back the verification result to the application provider server 23.
[0091] Among them, conducting a transaction means verifying the validity of the transaction.
[0092] Specifically, while the platform server 22 responds to the purchase request of the terminal 21 and feeds back the transaction data to the terminal 21, it can also record the transaction data corresponding to the purchase request itself. In this way, when receiving the transaction data corresponding to the payment order number of the target product identified by the application merchant server 23, the transaction data corresponding to the payment order number of the target product identified by the application merchant server 23 is compared with the payment order number of the target product identified by the platform server 22 itself. If the two are consistent, the verification is successful, and the verification result of successful verification is fed back to the application merchant server 23; if the two are inconsistent, the verification fails, and the verification result of failed verification is fed back to the application merchant server 23.
[0093] S37: When the received verification result is successful, the application provider server 23 sends the target product to the user account.
[0094] Specifically, the application provider server 23 sends the target product to the device that logs into the user account, such as the terminal 21 mentioned above.
[0095] The device that logs into the user account can display the target product that the user has purchased to the user. Alternatively, the user's purchased history products can be obtained from the application provider server 23, and the history products and the currently purchased target product can be displayed to the user at the same time.
[0096] In an optional embodiment, in addition to sending the transaction data received from the terminal 21 to the platform server 22 so that the platform server 22 can verify the validity of the transaction, the application merchant server 23 is also used to record the corresponding identification of the target product, the payment order number and the transaction data.
[0097] In this way, the application provider server 23 records the user's purchase record in the application, and even if the user subsequently changes to a terminal 21 that supports the platform server 22 and uses the application with another terminal 21 that does not support the platform server 22, the user can still query his or her purchase record from the application provider server 23. For example, the platform server 22 is a server for a terminal 21 of an iOS system, but the user subsequently changes to a terminal 21 of an Android system to use the application.
[0098] In an optional embodiment, the terminal 21 is also used to create an in-app purchase object and initialize the in-app purchase object after the application is started; the terminal 21 is specifically used to call a preset in-app purchase method through the in-app purchase object to send a purchase request to the platform server 22, and send the transaction data to the application vendor server 23 through the in-app purchase object.
[0099] Specifically, the initInAppPurchase method may be called to initialize the in-app purchase. Initializing the in-app purchase may include adding a preset in-app purchase result callback method, etc.
[0100] After the in-app purchase object is created, the interaction between the terminal 21 and the platform server 22 and the application server is specifically the interaction between the terminal 21 and the platform server 22 and the application server through the in-app purchase object.
[0101] Figure 5 A schematic diagram of a specific embodiment provided for an embodiment of the present invention includes:
[0102] When the user opens the application and the application is started, the terminal 21 used by the user can create an in-app purchase object and initialize the in-app purchase, wherein initializing the in-app purchase may include adding an in-app purchase result callback method and the like.
[0103] Listen to the in-app purchase update (purchaseUpdated) property of the in-app purchase object to listen to the in-app purchase result callback.
[0104] Get product information;
[0105] Select the item you want to purchase.
[0106] The terminal 21 can send a product information request to the application merchant server 23; after receiving the product information request, the application merchant server 23 feeds back the product information of at least one product to the terminal 21; the product information of at least one product is pre-entered by the application merchant server 23 based on the product information configured by the platform server 22; after receiving the product information of at least one product, the terminal 21 displays the product information of at least one product.
[0107] The user can select the product to be purchased based on the product information of the displayed products, and the selected product can be understood as the above-mentioned target product.
[0108] Alternatively, the terminal 21 may obtain product information from the platform server 22, display product information of at least one product, and determine a target product selected by the user based on the product information of the at least one product.
[0109] Request the server to create a payment order number and initiate a purchase.
[0110] After the user selects a product, the terminal 21 can create a payment order number through the application server, and then call the in-app purchase method and pass in the payment order number and the product ID in the product information to initiate the purchase.
[0111] For example, the terminal 21 calls the requestPurchase method to request the application server to create a payment order number and initiate the purchase of goods. At the same time, when calling the requestPurchase method, the productId parameter (the product ID corresponding to each product) in the product information obtained by the application server needs to be passed in.
[0112] Determine whether the purchase is successful;
[0113] The terminal 21 initiates a purchase to the platform server 22 , and the platform server 22 returns to the terminal whether the purchase is successful or failed, that is, the platform server 22 informs the terminal of the result of the purchase success or failure.
[0114] Among them, the reasons for purchase failure may include insufficient bank card balance or non-existence of the product.
[0115] If the purchase fails, a prompt may be given indicating the purchase failure, and the user may return to the step of selecting the item to be purchased.
[0116] After returning to the step of selecting the product to be purchased, the user can reselect the product or other products to re-initiate the purchase.
[0117] If the purchase is successful, the terminal 21 can receive the in-app purchase result callback data.
[0118] The in-app purchase result callback data includes transaction data. The terminal 21 uploads the transaction data to the application server, and the application server sends the received transaction data to the platform server 22 for verification.
[0119] Determine whether the verification is successful;
[0120] If the verification is successful, the application server sends the item or service to the user account.
[0121] In addition to sending the transaction data received from the terminal 21 to the platform server 22 so that the platform server 22 can verify the validity of the transaction, the application server 23 is also used to record the corresponding identification of the target product, the payment order number and the transaction data.
[0122] Taking the iOS side as an example, after the payment is completed, the terminal 21 receives the payment result callback (that is, the above-mentioned in-app purchase result callback), calls the validateReceipt interface to verify the order, and sends the transaction data returned in the payment result callback, such as transactionId and transactionReceipt, plus the product ID and payment order number to the application server so that the application server can record the data. At the same time, the application server sends the transaction data just transmitted to the Apple server (platform server 22) to verify the validity of the transaction. After the verification is completed, the application server sends the relevant items or services to the user.
[0123] If the verification fails, the application server may return to the step of sending the received data to the platform server 22 for verification.
[0124] It is understandable that if the verification fails, the application server will not send the item or service to the user account.
[0125] The terminal 21 can also display the target product that the user has purchased to the user. Alternatively, the terminal 21 can obtain the user's purchase history and the virtual items or services that the user has purchased through the application server and display them to the user, that is, the terminal 21 obtains the historical products purchased by the user from the application server 23, and displays the historical products and the currently purchased target product to the user at the same time.
[0126] In the embodiment of the present invention, the application provider can integrate the Flutter framework (a software development kit (SDK) for building cross-platform mobile phone apps), add the in_app_purchase dependency library to the Flutter project, and support the cross-platform in-app purchase function by integrating the in_app_purchase plug-in. The Flutter framework and the mobile application in-app purchase function are combined to realize the purchase of virtual items and services in the application using Flutter, providing an easy-to-use and reliable solution. The development process can be simplified, the learning and implementation costs of developers are reduced, and developers can quickly access the in-app purchase function in the application, reduce development costs, and improve development efficiency.
[0127] In the embodiment of the present invention, the terminal 21, the application server and the platform server 22 can interact to implement the in-app purchase process, improve the user experience and optimize it, and ensure a smooth experience for users when performing in-app purchase operations.
[0128] In addition, in the embodiment of the present invention, after the terminal 21 sends a purchase request to the platform server 22 and obtains the transaction data fed back by the platform server 22, the terminal 21 sends the transaction data to the application provider server 23, and the application provider server 23 sends the received transaction data to the platform server 22. The platform server 22 verifies the transaction based on the received transaction data and feeds back the verification result to the application provider server 23. When the received verification result is a successful verification, the application provider server 23 sends the target product to the user account. In this way, the security of the purchase transaction can be improved.
[0129] It can be understood that in the embodiment of the present invention, based on determining whether the purchase is successful, the application server also sends the received data to the platform server 22 for verification, introducing a server-side secondary verification mechanism to ensure the legitimacy and security of the transaction and prevent fraud.
[0130] like Figure 6 As shown, an embodiment of the present invention provides a method for purchasing goods within an application, which is applied to a terminal and includes:
[0131] S601, sending a purchase request to the platform server, wherein the purchase request carries the identifier of the target product and the payment order number;
[0132] S602, receiving transaction data fed back by the platform server in response to the purchase request;
[0133] S603, the transaction data is sent to the application vendor server, so that the application vendor server can send the target product to the user account when the received verification result is successful. The verification result is that the application vendor server sends the received transaction data to the platform server, and the platform server verifies the transaction based on the received transaction data and feeds back to the application vendor server.
[0134] Optionally, S603 includes:
[0135] The in-app purchase result callback is monitored through the preset in-app purchase result callback method, and when transaction data is detected, the transaction data is sent to the application provider's server.
[0136] Optionally, S601 includes:
[0137] Call the in-app purchase method in the in-app purchase plug-in to send a purchase request to the platform server.
[0138] Optionally, before S601, the method for purchasing goods within an application applied to a terminal further includes:
[0139] Determine the target product selected by the user; send a payment order number creation request for the target product to the application merchant server, so that the application merchant server creates a payment order number for the target product after receiving the payment order number creation request for the target product sent by the terminal; receive the payment order number issued by the application merchant server.
[0140] Optionally, before S601, the method for purchasing goods within an application applied to a terminal further includes:
[0141] After the app starts, create an in-app purchase object and initialize it.
[0142] like Figure 7 As shown, an embodiment of the present invention provides a method for purchasing goods within an application, which is applied to an application provider server, and includes:
[0143] S701, receiving transaction data sent by the terminal, wherein the transaction data is fed back by the platform server to the terminal in response to a purchase request, the purchase request is sent by the terminal to the platform server, and the purchase request carries the identifier of the target product and the payment order number;
[0144] S702, sending the received transaction data to the platform server, so that the platform server verifies the transaction based on the received transaction data and feeds back the verification result to the application provider server;
[0145] S703: When the received verification result is successful, the target product is sent to the user account.
[0146] Optionally, after S701, the method for purchasing goods within an application applied to the application provider server further includes:
[0147] The target product's ID, payment order number, and transaction data are recorded accordingly.
[0148] Optionally, before S701, the method for purchasing goods within an application applied to the application provider server further includes:
[0149] After receiving the payment order number creation request for the target product sent by the terminal, a payment order number for the target product is created and sent to the terminal.
[0150] like Figure 8 As shown, an embodiment of the present invention provides a device for purchasing goods in an application, which is applied to a terminal and includes:
[0151] The first sending module 801 is used to send a purchase request to the platform server, wherein the purchase request carries the identifier of the target product and the payment order number;
[0152] The first receiving module 802 is used to receive transaction data fed back by the platform server in response to the purchase request;
[0153] The second sending module 803 is used to send the transaction data to the application provider server, so that the application provider server can send the target product to the user account when the received verification result is successful. The verification result is that the application provider server sends the received transaction data to the platform server, and the platform server verifies the transaction based on the received transaction data and feeds back to the application provider server.
[0154] Optionally, the second sending module 803 is specifically configured to monitor the in-app purchase result callback through a preset in-app purchase result callback method, and when transaction data is monitored, send the transaction data to the application provider server.
[0155] Optionally, the first sending module 801 is specifically configured to call an in-app purchase method in an in-app purchase plug-in to send a purchase request to a platform server.
[0156] Optionally, the device for purchasing goods in an application of a terminal further includes:
[0157] A determination module, used to determine the target product selected by the user before calling the preset in-app purchase method to send a purchase request to the platform server;
[0158] The third sending module is used to send a payment order number creation request for the target product to the application provider server, so that the application provider server creates a payment order number for the target product after receiving the payment order number creation request for the target product sent by the terminal;
[0159] The second receiving module is used to receive the payment order number sent by the application provider server.
[0160] Optionally, the device for purchasing goods in an application of a terminal further includes:
[0161] The initialization module is used to create and initialize the in-app purchase object after the application is started before calling the preset in-app purchase method to send a purchase request to the platform server.
[0162] like Fig. 9 As shown, an embodiment of the present invention provides a device for purchasing goods within an application, which is applied to an application provider server, including:
[0163] The receiving module 901 is used to receive transaction data sent by the terminal, wherein the transaction data is the platform server responding to the purchase request and feeding back to the terminal, the purchase request is sent by the terminal to the platform server, and the purchase request carries the identifier of the target product and the payment order number;
[0164] The sending module 902 is used to send the received transaction data to the platform server, so that the platform server verifies the transaction based on the received transaction data and feeds back the verification result to the application provider server;
[0165] The sending module 903 is used to send the target product to the user account when the received verification result is successful.
[0166] Optionally, the device for purchasing goods in an application applied to the application provider server further includes:
[0167] The recording module is used to record the target commodity identifier, payment order number and transaction data accordingly after receiving the transaction data sent by the terminal.
[0168] Optionally, the device for purchasing goods in an application applied to the application provider server further includes:
[0169] The creation module is used to create a payment order number for the target product after receiving a payment order number creation request for the target product sent by the terminal, and send the payment order number to the terminal.
[0170] The embodiment of the present invention further provides an electronic device, such as Fig.10As shown, it includes a processor 1001 , a communication interface 1002 , a memory 1003 and a communication bus 1004 , wherein the processor 1001 , the communication interface 1002 , and the memory 1003 communicate with each other via the communication bus 1004 .
[0171] Memory 1003, used for storing computer programs;
[0172] The processor 1001 is configured to implement the method steps of the method for purchasing goods within an application in a terminal or the method for purchasing goods within an application in an application provider server in the above-mentioned embodiment when executing the program stored in the memory 1003 .
[0173] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0174] The communication interface is used for communication between the above electronic device and other devices.
[0175] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0176] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0177] In another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the method for purchasing goods within an application applied to a terminal or the method for purchasing goods within an application applied to an application merchant server in any of the above embodiments are implemented.
[0178] In another embodiment provided by the present invention, a computer program product including instructions is also provided. When the computer program product is executed on a computer, the computer executes the method for purchasing goods within an application applied to a terminal or the method for purchasing goods within an application applied to an application merchant server in any of the above embodiments.
[0179] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0180] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0181] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the method, device, equipment, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the system embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0182] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A system for purchasing in-app products. It is characterized in that include: Terminals, platform servers and application vendor servers; The terminal is used to send a purchase request to the platform server, wherein the purchase request carries an identifier of the target product and a payment order number; The platform server is used to respond to the purchase request and feed back transaction data to the terminal; The terminal is used to send the transaction data to the application provider server; The application business server is used to send the received transaction data to the platform server; The platform server is used to verify the transaction based on the received transaction data and feed back the verification result to the application provider server; The application provider server is used to send the target product to the user account when the received verification result is successful.
2. The system according to claim 1, It is characterized in that The terminal is specifically used to monitor the in-app purchase result callback through a preset in-app purchase result callback method, and when transaction data is monitored, send the transaction data to the application provider server.
3. The system according to claim 2, It is characterized in that The application merchant server is further used to record the identifier of the target product, the payment order number and the transaction data in correspondence.
4. The system according to claim 1, It is characterized in that The terminal is specifically used to call the in-app purchase method in the in-app purchase plug-in to send a purchase request to the platform server.
5. The system according to claim 1, It is characterized in that The terminal is further used to determine the target product selected by the user; send a payment order number creation request for the target product to the application provider server, wherein the payment order number creation request carries the identifier of the target product; The application merchant server is further configured to, after receiving a payment order number creation request for the target product sent by the terminal, create a payment order number for the target product and send the payment order number to the terminal.
6. The system according to any one of claims 1 to 5, It is characterized in that The terminal is further used to create an in-app purchase object and initialize the in-app purchase object after the application is started; The terminal is specifically used to call a preset in-app purchase method through the in-app purchase object to send a purchase request to the platform server, and send the transaction data to the application provider server through the in-app purchase object.
7. A method for purchasing goods within an application, It is characterized in that Applied to terminals, including: Sending a purchase request to the platform server, wherein the purchase request carries the identifier of the target product and the payment order number; Receiving transaction data fed back by the platform server in response to the purchase request; The transaction data is sent to the application vendor server, so that the application vendor server can send the target product to the user account if the received verification result is successful. The verification result is that the application vendor server sends the received transaction data to the platform server, and the platform server verifies the transaction based on the received transaction data and feeds back to the application vendor server.
8. A method for purchasing goods within an application, It is characterized in that Applied to application vendor servers, including: Receiving transaction data sent by the terminal, wherein the transaction data is fed back by the platform server to the terminal in response to a purchase request, the purchase request is sent by the terminal to the platform server, and the purchase request carries an identifier of the target product and a payment order number; Sending the received transaction data to the platform server, so that the platform server verifies the transaction based on the received transaction data and feeds back the verification result to the application provider server; When the received verification result is successful, the target product is sent to the user account.
9. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor is used to implement the method steps described in any one of claims 7-8 when executing a program stored in a memory.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 7-8 are implemented.
Citation Information
Cited By
Interface display method and apparatus
WO2026179047A1
