FMX.InAppPurchase.TCustomInAppPurchase.PurchaseProduct
Delphi
procedure PurchaseProduct(const ProductID: string);
C++
void __fastcall PurchaseProduct(const System::UnicodeString ProductID);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.InAppPurchase.pas FMX.InAppPurchase.hpp |
FMX.InAppPurchase | TCustomInAppPurchase |
Description
Requests the purchase of the product with the specified ID to 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
.
This method raises an EIAPNotSetup exception if you use it before you establish a connection to the in-app payment service.