暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnifiedReceiptFormatter.cs 497B

12345678910111213141516
  1. namespace UnityEngine.Purchasing
  2. {
  3. internal static class UnifiedReceiptFormatter
  4. {
  5. internal static string FormatUnifiedReceipt(string platformReceipt, string transactionId, string storeName)
  6. {
  7. var unifiedReceipt = new UnifiedReceipt()
  8. {
  9. Store = storeName,
  10. TransactionID = transactionId,
  11. Payload = platformReceipt
  12. };
  13. return JsonUtility.ToJson(unifiedReceipt);
  14. }
  15. }
  16. }