跳至主要內容

Transaction 物件

  • transactionIdentifier 字串 - 一個唯一識別成功付款交易的字串。
  • transactionDate 字串 - 交易被加入 App Store 付款佇列的日期。
  • originalTransactionIdentifier 字串 - App Store 還原交易的識別碼。
  • transactionState 字串 - 交易狀態,可以是 purchasingpurchasedfailedrestoreddeferred
  • errorCode 整數 - 如果在處理交易時發生錯誤,則為錯誤代碼。
  • errorMessage 字串 - 如果在處理交易時發生錯誤,則為錯誤訊息。
  • payment 物件
    • productIdentifier 字串 - 已購買產品的識別碼。
    • quantity 整數 - 購買的數量。
    • applicationUsername 字串 - 用於您系統上使用者帳戶的不透明識別碼。
    • paymentDiscount PaymentDiscount (選用) - 適用於付款的折扣優惠詳細資訊。