FMX.InAppPurchase.IFMXInAppPurchaseService.PurchaseProduct
Delphi
procedure PurchaseProduct(const ProductID: string);
C++
virtual void __fastcall PurchaseProduct(const System::UnicodeString ProductID) = 0 ;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | FMX.InAppPurchase.pas FMX.InAppPurchase.hpp |
FMX.InAppPurchase | IFMXInAppPurchaseService |
Beschreibung
Fordert das Kaufen des Produkts mit der angegebenen ID aus dem In-App-Bezahldienst an.
Diese Anforderung löst schließlich ein Ereignis aus:
- Wenn das Kaufen erfolgreich ist, wird TInAppPurchase.OnPurchaseCompleted ausgelöst.
- Falls ein Fehler auftritt, wird TInAppPurchase.OnError mit Purchase als
FailureKind
ausgelöst.