Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. namespace UnityEngine.Purchasing
  3. {
  4. /// <summary>
  5. /// I can unpack JSON Product.receipt values.
  6. ///
  7. /// See also https://docs.unity3d.com/Manual/UnityIAPPurchaseReceipts.html
  8. /// <example>
  9. /// <code>
  10. /// var unifiedReceipt = JsonUtility.FromJson&lt;UnifiedReceipt&gt;(purchEvtArg.purchasedProduct.receipt)
  11. /// Debug.LogFormat("{0} {1} {2}", unifiedReceipt.Payload, unifiedReceipt.Store, unifiedReceipt.TransactionID);
  12. /// </code>
  13. /// </example>
  14. /// </summary>
  15. [Serializable]
  16. public class UnifiedReceipt
  17. {
  18. /// <summary>
  19. /// The platform-specific receipt.
  20. /// </summary>
  21. public string Payload;
  22. /// <summary>
  23. /// The name of the store making the receipt.
  24. /// </summary>
  25. public string Store;
  26. /// <summary>
  27. /// The unique identifier of the transaction.
  28. /// </summary>
  29. public string TransactionID;
  30. }
  31. }