17 lines
497 B
C#
17 lines
497 B
C#
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);
|
|
}
|
|
}
|
|
}
|