Simple IAP System  5.0
Public Member Functions | List of all members
PlayFabPayPalStore

Store implementation for PayPal, based on the PlayFabStore class. More...

Inheritance diagram for PlayFabPayPalStore:
PlayFabStore PlayFabStore

Public Member Functions

void ConfirmPurchase ()
 
 PlayFabPayPalStore ()
 Setting this store reference on initialization. More...
 
override void Initialize (IStoreCallback callback)
 Overriding the initialization with setting the correct store. More...
 
override void RetrieveProducts (ReadOnlyCollection< ProductDefinition > products)
 Overriding the product retrieval process to allow for validation-only behavior. Even though validation is first happening on purchase, we still need to this as otherwise Unity IAP would not initialize correctly without any products. More...
 
override void Purchase (ProductDefinition product, string developerPayload)
 Overriding the purchase behavior to allow for validation-only behavior (products outside the app). More...
 
override void OnPurchaseResult (PayForPurchaseResult result)
 Overriding the payment request for opening the PayPal website in the browser. More...
 
void ConfirmPurchase ()
 Manually triggering purchase confirmation after a PayPal payment has been made. This is so that the transaction gets finished and PayPal actually substracts funds. More...
 
- Public Member Functions inherited from PlayFabStore
void FinishTransaction (ProductDefinition product, string transactionId)
 
void Initialize (IStoreCallback callback)
 
void Purchase (ProductDefinition product, string developerPayload)
 
void RetrieveProducts (ReadOnlyCollection< ProductDefinition > products)
 
 PlayFabStore ()
 Setting this store reference on initialization. More...
 
void Purchase (IAPProduct product)
 Purchase overload for virtual products, as they differ in their workflow. Virtual currency funds should be checked locally before creating the request. More...
 
virtual void OnPurchaseStarted (StartPurchaseResult result)
 Callback retrieved when an (real money) order on live servers has been initiated. Here the payment request for the order is being sent off, triggering native overlays. More...
 
void OnPurchaseSucceeded (ConfirmPurchaseResult result)
 Callback from the billing system when a (real money) purchase completes successfully. More...
 
void OnPurchaseSucceeded (PurchaseItemResult result)
 Callback from the billing system when a (virtual) purchase completes successfully. More...
 
void Consume (IAPProduct product, string itemInstanceID, int amount)
 
void OnConsumeSucceeded (IAPProduct product, int amount)
 Callback from the service provider when a consume action completes successfully. More...
 
void RedeemCoupon (string code)
 
virtual void FinishTransaction (ProductDefinition product, string transactionId)
 Called by Unity Purchasing when a transaction has been recorded. Store systems should perform any housekeeping here, such as closing transactions or consuming consumables. More...
 
void OnSetupFailed (PlayFabError error)
 Indicate that IAP is unavailable for a specific reason, such as IAP being disabled in device settings. More...
 
void OnPurchaseFailed (PlayFabError error)
 Method we are calling for any failed (real money) results in the billing interaction. More...
 
void OnVirtualPurchaseFailed (PlayFabError error)
 Method we are calling for any failed (virtual) results in the billing interaction. More...
 
void OnConsumeFailed (PlayFabError error)
 Method we are calling for any failed consume results in the billing interaction. More...
 

Additional Inherited Members

- Public Attributes inherited from PlayFabStore
IStoreCallback callback
 Callback for hooking into the native Unity IAP logic. More...
 
Dictionary< string, ProductDescription > products
 List of products which are declared and retrieved by the billing system. More...
 
string storeId = "StoreName"
 Declaring the store name used in Unity IAP for product store identifiers. More...
 
- Static Public Attributes inherited from PlayFabStore
static string orderId
 Keeping track of the order that is currently being processed, so we can confirm and finish it later on. More...
 
- Properties inherited from PlayFabStore
static PlayFabStore instance [get]
 Reference to this store class, since the user needs to confirm the purchase transaction manually in-game, thus calling the confirm method of this script. More...
 

Detailed Description

Store implementation for PayPal, based on the PlayFabStore class.

Constructor & Destructor Documentation

Setting this store reference on initialization.

Member Function Documentation

void ConfirmPurchase ( )
void ConfirmPurchase ( )

Manually triggering purchase confirmation after a PayPal payment has been made. This is so that the transaction gets finished and PayPal actually substracts funds.

override void Initialize ( IStoreCallback  callback)
virtual

Overriding the initialization with setting the correct store.

Reimplemented from PlayFabStore.

override void OnPurchaseResult ( PayForPurchaseResult  result)
virtual

Overriding the payment request for opening the PayPal website in the browser.

Reimplemented from PlayFabStore.

override void Purchase ( ProductDefinition  product,
string  developerPayload 
)
virtual

Overriding the purchase behavior to allow for validation-only behavior (products outside the app).

Reimplemented from PlayFabStore.

override void RetrieveProducts ( ReadOnlyCollection< ProductDefinition >  products)
virtual

Overriding the product retrieval process to allow for validation-only behavior. Even though validation is first happening on purchase, we still need to this as otherwise Unity IAP would not initialize correctly without any products.

Reimplemented from PlayFabStore.


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