UInAppPurchaseComponent::TryPurchaseItemAsync

This call instigates a purchase request which is handled on a separate thread. The result of this asynchronous operation is reported back to the calling blueprint via the [FPurchaseConfirmationSuccess](API\Plugins\MagicLeap\UInAppPurchaseComponent\FPurchaseConfirmationSuccess) or [FPurchaseConfirmationFailure](API\Plugins\MagicLeap\UInAppPurchaseComponent\FPurchaseConfirmationFailure) event handlers.

Windows
MacOS
Linux

References

Module

MagicLeap

Header

/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeap/Public/InAppPurchaseComponent.h

Include

#include "InAppPurchaseComponent.h"

Source

/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeap/Private/InAppPurchaseComponent.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="InAppPurchase|MagicLeap")
bool TryPurchaseItemAsync
(
    const FPurchaseItemDetails & ItemDetails
)

Remarks

Attempts to purchase the specified item.

Returns

False if a purchase confirmation is already running, true otherwise.

Parameters

Parameter

Description

ItemDetails

The details of the item to be purchased.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss