Beamable SDK
Public Member Functions | List of all members
Core.Platform.SDK.Payments.PaymentDelegate Interface Reference

Public Member Functions

Promise< UnitInitialize ()
 
string GetLocalizedPrice (string purchaseSymbol)
 Fetches the localized string from the provider

Parameters
purchaseSymbolThe purchase symbol for the item. This will end up being the skuSymbol for the offer.
More...
 
void startPurchase (string listingSymbol, string skuSymbol, Action< CompletedTransaction > success, Action< ErrorCode > fail, Action cancelled)
 Start the Purchase process This makes a call to platform to start the transaction process. Then it passes off to provider to do the purchase. Note: This method will always assume success in the Unity Editor with NO actual payment occuring. More...
 
Promise< CompletedTransactionStartPurchase (string listingSymbol, string skuSymbol)
 

Member Function Documentation

◆ GetLocalizedPrice()

string Core.Platform.SDK.Payments.PaymentDelegate.GetLocalizedPrice ( string  purchaseSymbol)

Fetches the localized string from the provider

Parameters
purchaseSymbolThe purchase symbol for the item. This will end up being the skuSymbol for the offer.

◆ startPurchase()

void Core.Platform.SDK.Payments.PaymentDelegate.startPurchase ( string  listingSymbol,
string  skuSymbol,
Action< CompletedTransaction success,
Action< ErrorCode fail,
Action  cancelled 
)

Start the Purchase process This makes a call to platform to start the transaction process. Then it passes off to provider to do the purchase. Note: This method will always assume success in the Unity Editor with NO actual payment occuring.

Parameters
listingSymbolSymbol of the listing the offer is a part of.
skuSymbolThe SKU we should use as the price for the offer.
successAction to take if the payment is successful.
failAction to take if the payment fails.
cancelledAction to take if the payment is cancelled.

DEPRECATED: Use StartPurchase


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