FMX.InAppPurchase.IFMXInAppPurchaseService.PurchaseProduct
Delphi
procedure PurchaseProduct(const ProductID: string);
C++
virtual void __fastcall PurchaseProduct(const System::UnicodeString ProductID) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.InAppPurchase.pas FMX.InAppPurchase.hpp |
FMX.InAppPurchase | IFMXInAppPurchaseService |
Description
Requests the purchase of the product with the specified ID from the in-app payment service.
This request eventually triggers an event:
- If the purchase is successful, TInAppPurchase.OnPurchaseCompleted is triggered instead.
- If there is an error, TInAppPurchase.OnError is triggered with Purchase as
FailureKind
.