ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / In-App Purchase functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Restores the purchases of non-consumable products previously performed by the user in an iOS application.
Note: This function is particularly useful if the user has reinstalled the. We advise you to place the call to this function in a button accessible to the user.
Example
ArrayDeleteAll(gtabRecu_iOS)
HourglassNetwork(True)
inAppRestorePurchases(ProcRestauration)
// -----------------------------------------
PROCEDURE ProcRestauration(bSuccès is boolean, ...
		ProduitAcheté is inAppProduct, nQuantité is int)
IF bSuccès THEN
	stRecu is ST_Recu_iOS
	stRecu.nQuantité = nQuantité
	stRecu.prodProduit = ProduitAcheté
	ArrayAdd(gtabRecu_iOS, stRecu)
	// Rafraîchissement du champ Zone répétée
	ZRAfficheRecu_iOS()
	HourglassNetwork(False)
ELSE
	Error("Erreur lors de la restauration des achats : " + ErrorInfo())
END
Syntax
inAppRestorePurchases(<WLanguage procedure>)
<WLanguage procedure>: Procedure name
Name of WLanguage procedure (also called "callback") executed when a purchase is restored by the store. For more details on this procedure, see Parameters of the procedure used by inAppRestorePurchases.
Minimum version required
  • Version 19
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help