AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones de compras dentro de la aplicación
  • Overview
  • Registering the application in the Google Play Developer console
  • Creating an "In-App" product
  • Testing an "In-App" product
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Overview
A specific configuration is required to manage the In-App purchases in an Android application.
This help page presents the different operations to perform.
The different steps are as follows:
Registering the application in the Google Play Developer console
To register the application:
  1. Connect to the Google Play developer console.
    Caution: A Google developer account is required as well as a Google Wallet account in order to sell products.
  2. Add the application and fill in the required information (title, description, etc.).
  3. Display (if necessary) the characteristics of the application and select "Services & API".
  4. Write down the public license key of the application. This key must be copied into the wizard for generating the Android application if your application is using the inAppXXX functions of WLanguage.
Creating an "In-App" product
To create an "In-App" product:
  1. Generate the Android application in WINDEV Mobile. The generated application must be signed with your key file (don't use a generic signature).
  2. In the Google Play developer console, select the application that was added beforehand and select "APK file".
  3. Click "Import a new APK file" and select the APK file generated by WINDEV Mobile (this file is located in the Exe directory of the project).
  4. In "Products integrated to the application", click "Add a new product". Choose the type of product to add: Product managed or subscription
  5. Type the product identifier: any identifier can be used. This identifier will be used in the WLanguage code of the application in order to retrieve information about the product (inAppListProductInfo).
  6. Specify the other information about the product: title, description, pricing, recurring billing for subscriptions, etc.
  7. Save the created product and enable this product so that it can be sold.
Remark: A few hours can pass between the time when the APK file of the application is imported and the time when the Google Play service takes the new version of the application into account.
Testing an "In-App" product
The test of "In-App" products can be run in your application without having to perform any financial transaction. To do so, the application must be published on Google Play Store in alpha version or in beta version.
In this case, you must add the Gmail accounts of the users allowed to run the application test.
Caution:
  • This account must be saved on the device on which the application to test will be installed. If several accounts are saved on the device, the account used will be the one that downloaded the application. If the application was not downloaded, the first account of the list will be used.
  • The account used for the tests MUST NOT be the one used to connect to the Google Play developer console.
To run the application test:
  1. Install the application on your device (the emulator cannot be used).
    Important: The application installed must have:
    • a version identical to the one whose APK was imported into the developer console (same version numbers and same code version),
    • the same signature as the APK imported into the developer console.
      Import the new version of the application in the developer console if necessary.
  2. Run the application test.
Versión mínima requerida
  • Versión 19
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/04/2024

Señalar un error o enviar una sugerencia | Ayuda local