Skip to main content

Transaction 对象

🌐 Transaction Object

  • transactionIdentifier string - 唯一标识一次成功支付事务的字符串。
  • transactionDate string - 事务被添加到 App Store 支付队列的日期。
  • originalTransactionIdentifier string - App Store 恢复的事务的标识符。
  • transactionState string - 事务状态可以是 purchasing、purchased、failed、restored 或 deferred。
  • errorCode Integer - 如果在处理事务时发生错误,将显示错误代码。
  • errorMessage string - 如果在处理事务时发生错误,将显示错误消息。
  • payment 对象
    • productIdentifier string - 所购买产品的标识符。
    • quantity Integer - 购买的数量。
    • applicationUsername string - 你系统中用户账户的一个不透明标识符。
    • paymentDiscount PaymentDiscount(optional)- 适用于支付的折扣优惠详情。