|
PICO Unreal Platform SDK
|
PicoIAPInterface class. More...
#include <Pico_IAP.h>
Public Member Functions | |
| 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, including durables and unfulfilled consumables. 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... | |
| bool | GetSubscriptionStatus (const FString &SKU, FGetSubscriptionStatusDelegate InGetSubscriptionStatusDelegate) |
| Gets the subscription status of an add-on. More... | |
| bool | LaunchCheckoutFlowV3 (const FString &SKU, const FString &Price, const FString &Currency, const FString &OuterId, const FString &OrderComment, FLaunchCheckoutFlow_V3Delegate InLaunchCheckoutFlow_V3Delegate) |
| Launches the checkout flow to purchase a subscription add-on. More... | |
PicoIAPInterface class.
| bool ConsumePurchase | ( | const FString & | SKU, |
| FConsumePurchaseDelegate | InConsumePurchaseDelegate | ||
| ) |
Records the order fulfillment result for a consumable.
| 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). |
true: Send request successful false: Send request failure | bool GetNextProductsArrayPage | ( | UPico_ProductArray * | InProductArray, |
| FGetNextProductArrayPageDelegate | InGetNextProductArrayPageDelegate | ||
| ) |
Gets the next page of purchasable add-ons.
| 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). |
true: Send request successful false: Send request failure | bool GetNextPurchaseArrayPage | ( | UPico_PurchaseArray * | InPurchaseArray, |
| FGetNextPurchaseArrayPageDelegate | InGetNextPurchaseArrayPageDelegate | ||
| ) |
Gets the next page of purchased add-ons.
| 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). |
true: Send request successful false: Send request failure | bool GetProductsBySKU | ( | TArray< FString > | ProductSKUs, |
| int32 | Count, | ||
| FGetProductsBySKUDelegate | InGetProductsBySKUDelegate | ||
| ) |
Gets a list of purchasable add-ons in the current app.
| 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). |
true: Send request successful false: Send request failure | bool GetSubscriptionStatus | ( | const FString & | SKU, |
| FGetSubscriptionStatusDelegate | InGetSubscriptionStatusDelegate | ||
| ) |
Gets the subscription status of an add-on.
| SKU | The SKU of the add-on. |
| InGetSubscriptionStatusDelegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_SubscriptionStatus *, Purchase). |
true: Send request successful false: Send request failure | bool GetViewerPurchases | ( | FGetViewerPurchasesDelegate | InGetViewerPurchasesDelegate | ) |
Gets a list of purchased add-ons for a user, including durables and unfulfilled consumables.
| 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). |
true: Send request successful false: Send request failure | bool LaunchCheckoutFlow | ( | const FString & | SKU, |
| const FString & | Price, | ||
| const FString & | Currency, | ||
| FLaunchCheckoutFlowDelegate | InLaunchCheckoutFlowDelegate | ||
| ) |
Launches the checkout flow to purchase a durable or consumable.
| 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). |
true: Send request successful false: Send request failure | 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.
| 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). |
true: Send request successful false: Send request failure | bool LaunchCheckoutFlowV3 | ( | const FString & | SKU, |
| const FString & | Price, | ||
| const FString & | Currency, | ||
| const FString & | OuterId, | ||
| const FString & | OrderComment, | ||
| FLaunchCheckoutFlow_V3Delegate | InLaunchCheckoutFlow_V3Delegate | ||
| ) |
Launches the checkout flow to purchase a subscription add-on.
| 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. |
| OrderComment | Extended comment field for a purchase and you can input any necessary information. |
| InLaunchCheckoutFlow_V3Delegate | Will be executed when the request has been completed. Delegate will contain the requested object class (bool, bIsError, const FString&, ErrorMessage, UPico_Purchase *, Purchase). |
true: Send request successful false: Send request failure