|
|
|
|
|
WLanguage procedure called by inAppListPurchase Procedure ("Callback") called by inAppListPurchase when the list of purchases made is received. This procedure can be a local, global or internal procedure.
inAppListPurchase(ListeAchat, inAppPurchaseID)
PROCEDURE ListeAchat(bSuccès is boolean, sListeAchat is string)
IF NOT bSuccès THEN
ToastDisplay(ErrorInfo())
ELSE
FOR EACH STRING sInfoAchat OF sListeAchat SEPARATED BY CR
sIDProduit is string = ExtractString(sInfoAchat, 1, TAB)
sIDAchat is string = ExtractString(sInfoAchat, 2, TAB)
IF sIDProduit = "ID_PRODUIT" THEN
inAppConsumeProduct(sIDProduit, ConsommationProduit)
END
END
END
END
PROCEDURE ConsommationProduit(nSuccès is boolean)
IF NOT bSuccès THEN
ToastDisplay(ErrorInfo())
ELSE
...
END
END
Syntax
inAppListPurchase_Callback(<Success> , <PurchaseList>)
<Success>: Boolean - True if the list of purchases performed by the user was retrieved,
- False otherwise. To get more details on the error, use ErrorInfo before any other call to a WLanguage function (this would reinitialize the error).
<PurchaseList>: Character string Details of each purchase made by the user. The information returned for each purchase has the following format (according to the requested information):
<Product identifier> + TAB + <Order number> + TAB + <Purchase date> + TAB + <Purchase identifier> + TAB + <Automatic renewal> + TAB + <End date of subscription> If several purchases are listed, they are separated by CR characters (Carriage Return).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|