Simple IAP System  4.3
Public Member Functions | List of all members
ReceiptValidatorService

Remote IAP receipt verification on PlayFab's servers. Only supported on purchase. More...

Inheritance diagram for ReceiptValidatorService:
ReceiptValidator

Public Member Functions

 ReceiptValidatorService ()
 Constructor for setting a default value. More...
 
override bool shouldValidate (VerificationType verificationType)
 Overriding the base method to only trigger on PlayFab supported platforms. More...
 
override void Validate (Product p=null)
 Overriding the base method for calling a web request and passing in the product purchased. Since PlayFab needs a user for validating receipts, it is also checked if the user is logged in already. If not, device login is called as well. More...
 
void OnValidationResult (PlayFabResultCommon result)
 Callback from PlayFab when the receipt validation has been successful. Products will be granted and transactions confirmed. More...
 
void OnValidationError (PlayFabError error)
 Callback from PlayFab when the receipt validation has failed. The transaction will be confirmed, altough no products will be granted. More...
 
- Public Member Functions inherited from ReceiptValidator
virtual void Validate (string receipt)
 Verification for unified receipts i.e. Apple App Store. More...
 

Additional Inherited Members

- Public Attributes inherited from ReceiptValidator
VerificationType verificationType = VerificationType.none
 Selected type for IAP verification. More...
 

Detailed Description

Remote IAP receipt verification on PlayFab's servers. Only supported on purchase.

Constructor & Destructor Documentation

Constructor for setting a default value.

Member Function Documentation

void OnValidationError ( PlayFabError  error)

Callback from PlayFab when the receipt validation has failed. The transaction will be confirmed, altough no products will be granted.

void OnValidationResult ( PlayFabResultCommon  result)

Callback from PlayFab when the receipt validation has been successful. Products will be granted and transactions confirmed.

override bool shouldValidate ( VerificationType  verificationType)
virtual

Overriding the base method to only trigger on PlayFab supported platforms.

Reimplemented from ReceiptValidator.

override void Validate ( Product  p = null)
virtual

Overriding the base method for calling a web request and passing in the product purchased. Since PlayFab needs a user for validating receipts, it is also checked if the user is logged in already. If not, device login is called as well.

Reimplemented from ReceiptValidator.


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