Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PurchaseFailureDescription

class in UnityEngine.Purchasing.Extension

Description

Represents a failed purchase as described by a purchasing service.

Is sent by a store implementation to IAP which forwards this message on to the user.
See Also: IStoreCallback.OnPurchaseFailed.

Properties

messageMore information about the purchase failure from Unity IAP or the platform store, if available.
productIdThe store-specific product ID which failed to purchase.
reasonThe reason for the purchase failure.

Constructors

PurchaseFailureDescriptionCreates a PurchaseFailureDescription.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答