Class CrossPlatformValidator
Stub cross-platform receipt validator class for platforms not supported by this feature. Will always throw exceptions if used.
Inherited Members
Namespace: UnityEngine.Purchasing.Security
Assembly: UnityEngine.Purchasing.SecurityStub.dll
Syntax
public class CrossPlatformValidator
Constructors
CrossPlatformValidator(byte[], byte[], string)
Constructs an instance and checks the validity of the certification keys which only takes input parameters for the supported platforms and uses a common bundle ID for Apple and GooglePlay.
Declaration
public CrossPlatformValidator(byte[] googlePublicKey, byte[] appleRootCert, string appBundleId)
Parameters
Type | Name | Description |
---|---|---|
byte[] | googlePublicKey | The GooglePlay public key. |
byte[] | appleRootCert | The Apple certification key. |
string | appBundleId | The bundle ID for all platforms. |
CrossPlatformValidator(byte[], byte[], string, string)
Constructs an instance and checks the validity of the certification keys which only takes input parameters for the supported platforms.
Declaration
public CrossPlatformValidator(byte[] googlePublicKey, byte[] appleRootCert, string googleBundleId, string appleBundleId)
Parameters
Type | Name | Description |
---|---|---|
byte[] | googlePublicKey | The GooglePlay public key. |
byte[] | appleRootCert | The Apple certification key. |
string | googleBundleId | The GooglePlay bundle ID. |
string | appleBundleId | The Apple bundle ID. |
Methods
Validate(string)
Validates a receipt.
Declaration
public IPurchaseReceipt[] Validate(string unityIAPReceipt)
Parameters
Type | Name | Description |
---|---|---|
string | unityIAPReceipt | The receipt to be validated. |
Returns
Type | Description |
---|---|
IPurchaseReceipt[] | An array of receipts parsed from the validation process |