Simple IAP System  5.0
Static Public Member Functions | Public Attributes | List of all members
UIShopFeedback

Presents UI feedback to the user for various purchase states, e.g. failed or successful purchases. Also handles showing a transaction confirmation popup where necessary, e.g. for PayPal transactions. More...

Inheritance diagram for UIShopFeedback:

Static Public Member Functions

static UIShopFeedback GetInstance ()
 Returns a static reference to this script. More...
 
static void ShowMessage (string text)
 Show feedback/error window with text received. This gets called in IAPListener's HandleSuccessfulPurchase method with some custom text, or from the IAPManager with the error message when a purchase failed at billing. More...
 
static void ShowConfirmation ()
 Shows window waiting for transaction confirmation. This gets called by the store when waiting for the user to confirm his purchase payment with the third party service. More...
 
static void ShowRewardPreview (List< KeyValuePairStringInt > items)
 

Public Attributes

GameObject errorWindow
 Main window for showing feedback on purchase events to the user. More...
 
GameObject confirmWindow
 Confirmation window for refreshing transactions. Only required when using third party services, e.g. PayPal and Xsolla. More...
 
UIWindowShowReward previewWindow
 
Text messageLabel
 Text component of the errorWindow gameobject. More...
 

Detailed Description

Presents UI feedback to the user for various purchase states, e.g. failed or successful purchases. Also handles showing a transaction confirmation popup where necessary, e.g. for PayPal transactions.

Member Function Documentation

static UIShopFeedback GetInstance ( )
static

Returns a static reference to this script.

static void ShowConfirmation ( )
static

Shows window waiting for transaction confirmation. This gets called by the store when waiting for the user to confirm his purchase payment with the third party service.

static void ShowMessage ( string  text)
static

Show feedback/error window with text received. This gets called in IAPListener's HandleSuccessfulPurchase method with some custom text, or from the IAPManager with the error message when a purchase failed at billing.

static void ShowRewardPreview ( List< KeyValuePairStringInt items)
static

Member Data Documentation

GameObject confirmWindow

Confirmation window for refreshing transactions. Only required when using third party services, e.g. PayPal and Xsolla.

GameObject errorWindow

Main window for showing feedback on purchase events to the user.

Text messageLabel

Text component of the errorWindow gameobject.

UIWindowShowReward previewWindow


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