using System; namespace UnityEngine.Purchasing { /// /// Access Google Play store specific configurations. /// public class FakeGooglePlayStoreConfiguration : IGooglePlayConfiguration { /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Set an optional listener for failures when connecting to the base Google Play Billing service. /// /// Will never be called because this is a fake. public void SetServiceDisconnectAtInitializeListener(Action action) { } /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Set an optional listener for failures when querying product details. /// /// Will never be called because this is a fake. public void SetQueryProductDetailsFailedListener(Action action) { } /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Set listener for deferred purchasing events. /// Deferred purchasing is enabled by default and cannot be changed. /// /// Deferred purchasing successful events. Do not grant the item here. Instead, record the purchase and remind the user to complete the transaction in the Play Store. public void SetDeferredPurchaseListener(Action action) { } /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Set listener for deferred subscription change events. /// Deferred subscription changes only take effect at the renewal cycle and no transaction is done immediately, therefore there is no receipt nor token. /// /// Deferred subscription change event. No payout is granted here. Instead, notify the user that the subscription change will take effect at the next renewal cycle. public void SetDeferredProrationUpgradeDowngradeSubscriptionListener(Action action) { } /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Optional obfuscation string to detect irregular activities when making a purchase. /// For more information please visit https://developer.android.com/google/play/billing/security /// /// The obfuscated account id public void SetObfuscatedAccountId(string accountId) { } /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Optional obfuscation string to detect irregular activities when making a purchase /// For more information please visit https://developer.android.com/google/play/billing/security /// /// The obfuscated profile id public void SetObfuscatedProfileId(string profileId) { } /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Set behavior at initialization of fetching purchase data. Use before calling . /// /// Disable to prevent from automatically returning entitled purchases at initialization. /// This allows greater control when tracking the origin of purchases. /// Then use to fetch as-yet unseen entitled purchases. /// /// Default is true. /// /// public void SetFetchPurchasesAtInitialize(bool enable) { } /// /// THIS IS A FAKE, NO CODE WILL BE EXECUTED! /// /// Set behavior when fetching deferred purchases. Use before calling . /// /// Exclude to prevent deferred purchases from being fetched and processed by at initialization. /// When false, deferred purchases need to be handled in to prevent granting unpaid purchases. /// /// Default is true. /// /// public void SetFetchPurchasesExcludeDeferred(bool exclude) { } } }