Beamable SDK
Public Member Functions | List of all members
Beamable.Purchasing.UnityBeamablePurchaser Class Reference

Implementation of Unity IAP for Beamable purchasing. More...

Inheritance diagram for Beamable.Purchasing.UnityBeamablePurchaser:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Purchasing.UnityBeamablePurchaser:
Collaboration graph
[legend]

Public Member Functions

Promise< UnitInitialize ()
 Begin initialization of Beamable purchasing. More...
 
string GetLocalizedPrice (string skuSymbol)
 Get the localized price string for a given SKU. More...
 
Promise< CompletedTransactionStartPurchase (string listingSymbol, string skuSymbol)
 Start a purchase for the given listing using the given SKU. More...
 
void RestorePurchases ()
 Initiate transaction restoration if needed. More...
 
void OnInitialized (IStoreController controller, IExtensionProvider extensions)
 React to successful Unity IAP initialization. More...
 
void OnInitializeFailed (InitializationFailureReason error)
 Handle failed initialization by logging the error. More...
 
PurchaseProcessingResult ProcessPurchase (PurchaseEventArgs args)
 Process a completed purchase by fulfilling it. More...
 
void OnPurchaseFailed (Product product, PurchaseFailureReason failureReason)
 Handle a purchase failure event from Unity IAP. More...
 

Detailed Description

Implementation of Unity IAP for Beamable purchasing.

Member Function Documentation

◆ GetLocalizedPrice()

string Beamable.Purchasing.UnityBeamablePurchaser.GetLocalizedPrice ( string  skuSymbol)
inline

Get the localized price string for a given SKU.

Implements Beamable.Api.Payments.IBeamablePurchaser.

◆ Initialize()

Promise<Unit> Beamable.Purchasing.UnityBeamablePurchaser.Initialize ( )
inline

Begin initialization of Beamable purchasing.

Implements Beamable.Api.Payments.IBeamablePurchaser.

◆ OnInitialized()

void Beamable.Purchasing.UnityBeamablePurchaser.OnInitialized ( IStoreController  controller,
IExtensionProvider  extensions 
)
inline

React to successful Unity IAP initialization.

Parameters
controller
extensions

◆ OnInitializeFailed()

void Beamable.Purchasing.UnityBeamablePurchaser.OnInitializeFailed ( InitializationFailureReason  error)
inline

Handle failed initialization by logging the error.

◆ OnPurchaseFailed()

void Beamable.Purchasing.UnityBeamablePurchaser.OnPurchaseFailed ( Product  product,
PurchaseFailureReason  failureReason 
)
inline

Handle a purchase failure event from Unity IAP.

Parameters
productThe product whose purchase was attempted
failureReasonInformation about why the purchase failed

◆ ProcessPurchase()

PurchaseProcessingResult Beamable.Purchasing.UnityBeamablePurchaser.ProcessPurchase ( PurchaseEventArgs  args)
inline

Process a completed purchase by fulfilling it.

Parameters
argsPurchase event information from Unity IAP
Returns
Successful or failed result of processing this purchase

◆ RestorePurchases()

void Beamable.Purchasing.UnityBeamablePurchaser.RestorePurchases ( )
inline

Initiate transaction restoration if needed.

◆ StartPurchase()

Promise<CompletedTransaction> Beamable.Purchasing.UnityBeamablePurchaser.StartPurchase ( string  listingSymbol,
string  skuSymbol 
)
inline

Start a purchase for the given listing using the given SKU.

Parameters
listingSymbolStore listing that should be purchased.
skuSymbolPlatform specific SKU of the item being purchased.
Returns
Promise containing completed transaction.

Implements Beamable.Api.Payments.IBeamablePurchaser.


The documentation for this class was generated from the following file: