|
|
|
|
- Special cases
- Application in the background: Specific case from Android 10
inAppPurchaseProduct (Function) In french: inAppAchèteProduit Sends: - a request for purchasing an "In-App" product associated with the application.
- a request for purchasing a subscription.
Remark: The purchase request is asynchronous. A "Callback" procedure is run when receiving the response to the purchase request. MyProduct is inAppProduct = arrProduct[nIndex] inAppPurchaseProduct(MyProduct, ValidateProductPurchase) PROCÉDURE ValidateProductPurchase(bSuccess is boolean, Product is inAppProduct, Receipt)  IF NOT bSuccess THEN ToastDisplay(ErrorInfo()) RETURN ELSE // Android case IF InAndroidMode() THEN // Consume the product (optional) inAppConsumeProduct(Product, Receipt, ConsumeProduct) END // iOS case IF IniOSMode() THEN // Activate the product in the application EnableProduct(Product) // Save the purchase in the application preferences SaveParameter(Product.Identifier, 1) END END Component: wd290android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|