Implementation of Unity IAP for Beamable purchasing.
More...
Implementation of Unity IAP for Beamable purchasing.
◆ GetLocalizedPrice()
string Beamable.Purchasing.UnityBeamablePurchaser.GetLocalizedPrice |
( |
string |
skuSymbol | ) |
|
|
inline |
◆ Initialize()
Promise<Unit> Beamable.Purchasing.UnityBeamablePurchaser.Initialize |
( |
| ) |
|
|
inline |
◆ OnInitialized()
void Beamable.Purchasing.UnityBeamablePurchaser.OnInitialized |
( |
IStoreController |
controller, |
|
|
IExtensionProvider |
extensions |
|
) |
| |
|
inline |
React to successful Unity IAP initialization.
- Parameters
-
◆ 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
-
product | The product whose purchase was attempted |
failureReason | Information about why the purchase failed |
◆ ProcessPurchase()
PurchaseProcessingResult Beamable.Purchasing.UnityBeamablePurchaser.ProcessPurchase |
( |
PurchaseEventArgs |
args | ) |
|
|
inline |
Process a completed purchase by fulfilling it.
- Parameters
-
args | Purchase 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()
Start a purchase for the given listing using the given SKU.
- Parameters
-
listingSymbol | Store listing that should be purchased. |
skuSymbol | Platform 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:
- client/Packages/com.beamable/Runtime/Modules/Purchasing/UnityBeamablePurchaser.cs