IOnlinePurchase

[IOnlinePurchase](API\Plugins\OnlineSubsystem\Interfaces\IOnlinePurchase) - Interface for IAP (In App Purchases) services

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlinePurchaseInterface.h

Include

#include "Interfaces/OnlinePurchaseInterface.h"

Syntax

class IOnlinePurchase

Remarks

IOnlinePurchase - Interface for IAP (In App Purchases) services

Variables

Name Description

Public variable

FOnUnexpectedPu...

 

OnUnexpectedPurchaseReceiptDelegates

Delegate fired when the local system tells us of a new completed purchase we may not have initiated in-game.

Destructors

Name Description

Public function Virtual

~IOnlinePurchase()

Functions

Name Description

Public function Virtual

FDelegateHan...

 

AddOnUnexpectedPurchaseReceiptDelegate_Handle

(
    const FOnUnexpectedPurchaseReceiptD...
)

Public function

void

 

Checkout

(
    const FUniqueNetId& UserId,
    const FPurchaseCheckoutRequest& Ch...,
    const FOnPurchaseCheckoutComplete&...
)

Initiate the checkout process for purchasing offers via payment

Public function Virtual

void

 

ClearOnUnexpectedPurchaseReceiptDelegate_Handle

(
    FDelegateHandle& Handle
)

Public function Virtual

void

 

ClearOnUnexpectedPurchaseReceiptDelegates

(
    void* Object
)

Public function

void

 

FinalizePurchase

(
    const FUniqueNetId& UserId,
    const FString& ReceiptId
)

Finalizes a purchase with the supporting platform Acknowledges that the purchase has been properly redeemed by the application

Public function Virtual

void

 

FinalizePurchase

(
    const FUniqueNetId& UserId,
    const FString& ReceiptId,
    const FString& ReceiptInfo
)

Finalizes a purchase with the supporting platform Acknowledges that the purchase has been properly redeemed by the application.

Public function

void

 

FinalizeReceiptValidationInfo

(
    const FUniqueNetId& UserId,
    FString& InReceiptValidationInfo,
    const FOnFinalizeReceiptValidationI...
)

Public function Const

void

 

GetReceipts

(
    const FUniqueNetId& UserId,
    TArray< FPurchaseReceipt >& OutRec...
)

Get list of cached receipts for user (includes transactions currently being processed)

Public function

bool

 

IsAllowedToPurchase

(
    const FUniqueNetId& UserId
)

Determine if user is allowed to purchase from store

Public function

void

 

QueryReceipts

(
    const FUniqueNetId& UserId,
    bool bRestoreReceipts,
    const FOnQueryReceiptsComplete& De...
)

Query for all of the user's receipts from prior purchases

Public function

void

 

RedeemCode

(
    const FUniqueNetId& UserId,
    const FRedeemCodeRequest& RedeemCo...,
    const FOnPurchaseRedeemCodeComplete...
)

Initiate the checkout process for obtaining offers via code redemption

Public function Virtual

void

 

TriggerOnUnexpectedPurchaseReceiptDelegates

(
    const FUniqueNetId& Param1
)

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