Class FakeGooglePlayStoreExtensions
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Access GooglePlay store specific functionality.
Inherited Members
Namespace: UnityEngine.Purchasing
Syntax
public class FakeGooglePlayStoreExtensions : IGooglePlayStoreExtensions, IStoreExtension
Methods
ConfirmSubscriptionPriceChange(String, Action<Boolean>)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Initiate a flow to confirm the change of price for an item subscribed by the user.
Declaration
public void ConfirmSubscriptionPriceChange(string productId, Action<bool> callback)
Parameters
Type | Name | Description |
---|---|---|
String | productId | Product id |
Action<Boolean> | callback | Price changed event finished successfully |
Implements
GetPurchaseState(Product)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Determines the purchase state of a product in the Google Play Store based on its receipt.
Declaration
public GooglePurchaseState GetPurchaseState(Product product)
Parameters
Type | Name | Description |
---|---|---|
Product | product | Product |
Returns
Type | Description |
---|---|
GooglePurchaseState | Returns the purchase state when successful, otherwise an exception is thrown. |
Implements
IsPurchasedProductDeferred(Product)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Determines if the purchase of a product in the Google Play Store is deferred based on its receipt. This indicates if there is an additional step to complete a transaction in between when a user initiates a purchase and when the payment method for the purchase is processed. Handling pending transactions
Declaration
public bool IsPurchasedProductDeferred(Product product)
Parameters
Type | Name | Description |
---|---|---|
Product | product | Product |
Returns
Type | Description |
---|---|
Boolean |
|
Implements
RestoreTransactions(Action<Boolean, String>)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Async call to the google store to queryPurchases
using all the different support sku types.
Declaration
public void RestoreTransactions(Action<bool, string> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<Boolean, String> | callback | Will be called as often as many purchases the queryPurchases finds. (the IStoreCallback will be called as well) |
Implements
RestoreTransactions(Action<Boolean>)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Async call to the google store to queryPurchases
using all the different support sku types.
Declaration
[Obsolete("RestoreTransactions(Action<bool> callback) is deprecated, please use RestoreTransactions(Action<bool, string> callback) instead.")]
public void RestoreTransactions(Action<bool> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<Boolean> | callback | Will be called as often as many purchases the queryPurchases finds. (the IStoreCallback will be called as well) |
Implements
UpgradeDowngradeSubscription(String, String)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Upgrade or downgrade subscriptions, with proration mode IMMEDIATE_WITHOUT_PRORATION
by default
See more
Declaration
public void UpgradeDowngradeSubscription(string oldSku, string newSku)
Parameters
Type | Name | Description |
---|---|---|
String | oldSku | current subscription |
String | newSku | new subscription to subscribe |
Implements
UpgradeDowngradeSubscription(String, String, Int32)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Upgrade or downgrade subscriptions
Declaration
public void UpgradeDowngradeSubscription(string oldSku, string newSku, int desiredProrationMode)
Parameters
Type | Name | Description |
---|---|---|
String | oldSku | current subscription |
String | newSku | new subscription to subscribe |
Int32 | desiredProrationMode | Specifies the mode of proration. See more |
Implements
UpgradeDowngradeSubscription(String, String, GooglePlayProrationMode)
THIS IS A FAKE, NO CODE WILL BE EXECUTED!
Upgrade or downgrade subscriptions
Declaration
public void UpgradeDowngradeSubscription(string oldSku, string newSku, GooglePlayProrationMode desiredProrationMode)
Parameters
Type | Name | Description |
---|---|---|
String | oldSku | current subscription |
String | newSku | new subscription to subscribe |
GooglePlayProrationMode | desiredProrationMode | Specifies the mode of proration. See more |