Skip to main content

Transaction Object

  • transactionIdentifier string - A string that uniquely identifies a successful payment transaction.唯一标识成功支付交易的字符串。
  • transactionDate string - The date the transaction was added to the App Store’s payment queue.交易被添加到应用商店的支付队列的日期。
  • originalTransactionIdentifier string - The identifier of the restored transaction by the App Store.应用商店还原的事务的标识符。
  • transactionState string - The transaction state, can be purchasing, purchased, failed, restored or deferred.事务状态,可以是purchasingpurchasedfailedrestoreddeferred
  • errorCode Integer - The error code if an error occurred while processing the transaction.如果在处理事务时发生错误,则返回错误代码。
  • errorMessage string - The error message if an error occurred while processing the transaction.如果在处理事务时发生错误,则显示错误消息。
  • payment Object
    • productIdentifier string - The identifier of the purchased product.购买产品的标识符。
    • quantity Integer - The quantity purchased.购买的数量。
    • applicationUsername string - An opaque identifier for the user’s account on your system.系统上用户帐户的不透明标识符。
    • paymentDiscount PaymentDiscount (optional) - The details of the discount offer to apply to the payment.适用于付款的折扣优惠的详细信息。