lib_unity_purchase/Runtime/Purchasing/Utilites/UnifiedReceiptFormatter.cs

17 lines
497 B
C#
Raw Normal View History

2024-01-29 18:49:33 +08:00
namespace UnityEngine.Purchasing
{
internal static class UnifiedReceiptFormatter
{
internal static string FormatUnifiedReceipt(string platformReceipt, string transactionId, string storeName)
{
var unifiedReceipt = new UnifiedReceipt()
{
Store = storeName,
TransactionID = transactionId,
Payload = platformReceipt
};
return JsonUtility.ToJson(unifiedReceipt);
}
}
}