PicoIAPInterface class.
More...
#include <Pico_IAP.h>
|
| bool | ConsumePurchase (const FString &SKU, FConsumePurchaseDelegate InConsumePurchaseDelegate) |
| | Records the order fulfillment result for a consumable. More...
|
| |
| bool | GetProductsBySKU (TArray< FString > ProductSKUs, int32 Count, FGetProductsBySKUDelegate InGetProductsBySKUDelegate) |
| | Gets a list of purchasable add-ons in the current app. More...
|
| |
| bool | GetNextProductsArrayPage (UPico_ProductArray *InProductArray, FGetNextProductArrayPageDelegate InGetNextProductArrayPageDelegate) |
| | Gets the next page of purchasable add-ons. More...
|
| |
| bool | GetViewerPurchases (FGetViewerPurchasesDelegate InGetViewerPurchasesDelegate) |
| | Gets a list of purchased add-ons for a user. More...
|
| |
| bool | GetNextPurchaseArrayPage (UPico_PurchaseArray *InPurchaseArray, FGetNextPurchaseArrayPageDelegate InGetNextPurchaseArrayPageDelegate) |
| | Gets the next page of purchased add-ons. More...
|
| |
| bool | LaunchCheckoutFlow (const FString &SKU, const FString &Price, const FString &Currency, FLaunchCheckoutFlowDelegate InLaunchCheckoutFlowDelegate) |
| | Launches the checkout flow to purchase a durable or consumable. More...
|
| |
| bool | LaunchCheckoutFlowV2 (const FString &SKU, const FString &Price, const FString &Currency, const FString &OuterId, FLaunchCheckoutFlow_V2Delegate InLaunchCheckoutFlow_V2Delegate) |
| | Launches the checkout flow to purchase a subscription add-on. More...
|
| |
◆ ConsumePurchase()
| bool ConsumePurchase |
( |
const FString & |
SKU, |
|
|
FConsumePurchaseDelegate |
InConsumePurchaseDelegate |
|
) |
| |
Records the order fulfillment result for a consumable.
- Note
- Users are unable to repurchase the same consumable until the previous order is fulfilled.
- Parameters
-
| SKU | The unique identifier of the consumable. |
| InConsumePurchaseDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage). |
- Returns
- Bool:
-
true: success
-
false: failure
◆ GetNextProductsArrayPage()
| bool GetNextProductsArrayPage |
( |
UPico_ProductArray * |
InProductArray, |
|
|
FGetNextProductArrayPageDelegate |
InGetNextProductArrayPageDelegate |
|
) |
| |
Gets the next page of purchasable add-ons.
- Parameters
-
| InProductArray | The current object of product array. |
| InGetNextProductArrayPageDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_ProductArray *, ProductArray). |
- Returns
- Bool:
-
true: success
-
false: failure
◆ GetNextPurchaseArrayPage()
| bool GetNextPurchaseArrayPage |
( |
UPico_PurchaseArray * |
InPurchaseArray, |
|
|
FGetNextPurchaseArrayPageDelegate |
InGetNextPurchaseArrayPageDelegate |
|
) |
| |
Gets the next page of purchased add-ons.
- Parameters
-
| InPurchaseArray | The current object of purchase array. |
| InGetNextPurchaseArrayPageDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_PurchaseArray *, PurchaseArray). |
- Returns
- Bool:
-
true: success
-
false: failure
◆ GetProductsBySKU()
| bool GetProductsBySKU |
( |
TArray< FString > |
ProductSKUs, |
|
|
int32 |
Count, |
|
|
FGetProductsBySKUDelegate |
InGetProductsBySKUDelegate |
|
) |
| |
Gets a list of purchasable add-ons in the current app.
- Parameters
-
| ProductSKUs | The unique identifiers of add-ons. If this parameter is empty, all purchasable add-ons will be returned. If SKUs are specified, add-ons with corresponding SKUs will be returned. |
| Count | The number of 'ProductSKUs' arrays to return. |
| InGetProductsBySKUDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_ProductArray *, ProductArray). |
- Returns
- Bool:
-
true: success
-
false: failure
◆ GetViewerPurchases()
| bool GetViewerPurchases |
( |
FGetViewerPurchasesDelegate |
InGetViewerPurchasesDelegate | ) |
|
Gets a list of purchased add-ons for a user.
- Note
- This list includes durables and unfulfilled consumables.
- Parameters
-
| InGetViewerPurchasesDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_PurchaseArray *, PurchaseArray). |
- Returns
- Bool:
-
true: success
-
false: failure
◆ LaunchCheckoutFlow()
| bool LaunchCheckoutFlow |
( |
const FString & |
SKU, |
|
|
const FString & |
Price, |
|
|
const FString & |
Currency, |
|
|
FLaunchCheckoutFlowDelegate |
InLaunchCheckoutFlowDelegate |
|
) |
| |
Launches the checkout flow to purchase a durable or consumable.
- Parameters
-
| SKU | The unique identifier of the add-on the user wants to purchase. |
| Price | The price for the add-on. |
| Currency | The currency of the payment. |
| InLaunchCheckoutFlowDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_Purchase *, Purchase). |
- Returns
- Bool:
-
true: success
-
false: failure
◆ LaunchCheckoutFlowV2()
| bool LaunchCheckoutFlowV2 |
( |
const FString & |
SKU, |
|
|
const FString & |
Price, |
|
|
const FString & |
Currency, |
|
|
const FString & |
OuterId, |
|
|
FLaunchCheckoutFlow_V2Delegate |
InLaunchCheckoutFlow_V2Delegate |
|
) |
| |
Launches the checkout flow to purchase a subscription add-on.
- Parameters
-
| SKU | The unique identifier of the subscription add-on the user wants to purchase. |
| Price | The price for the subscription add-on. |
| Currency | The currency of the payment. |
| OuterId | The unique identifier of the subscription period in the subscription add-on. |
| InLaunchCheckoutFlow_V2Delegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_Purchase *, Purchase). |
- Returns
- Bool:
-
true: success
-
false: failure