API reference
API reference
Select your platform
No SDKs available
No versions available

PurchaseHistoryRecord

Updated: May 13, 2025

PurchaseHistoryRecord

data class PurchaseHistoryRecord(val purchaseTime: Long, val purchaseToken: String, val products: List<String>, val developerPayload: String? = "", val originalJson: String? = "", val quantity: Int = 1, val signature: String = "")
Represents an in-app billing purchase history record.
This class includes a subset of fields in Purchase.
The equivalent Google Play Billing Library class can be found at the Android developer documentation for PurchaseHistoryRecord.

Constructors

NameSummary
PurchaseHistoryRecord
constructor(jsonPurchaseInfo: String, signature: String)constructor(purchaseTime: Long, purchaseToken: String, products: List<String>, developerPayload: String? = "", originalJson: String? = "", quantity: Int = 1, signature: String = "")

Types

NameSummary
Companion
object Companion

Properties

NameSummary
developerPayload
val developerPayload: String?
Returns the payload specified when the purchase was acknowledged or consumed.
originalJson
val originalJson: String?
Returns a String in JSON format that contains details about the purchase order.
products
val products: List<String>
Returns the product Ids.
purchaseTime
val purchaseTime: Long
Returns the time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
purchaseToken
val purchaseToken: String
Returns a token that uniquely identifies a purchase for a given item and user pair.
quantity
val quantity: Int = 1
Returns the quantity of the purchased product.
signature
val signature: String
String containing the signature of the purchase data that was signed with the private key of the developer.

Functions

NameSummary
getSkus
fun getSkus(): <Error class: unknown class><String>
Returns the product Ids.

Companion

object Companion
Did you find this page helpful?
Thumbs up icon
Thumbs down icon