StoreTransaction

data class StoreTransaction(orderId: String?, skus: List<String>, type: ProductType, purchaseTime: Long, purchaseToken: String, purchaseState: PurchaseState, isAutoRenewing: Boolean?, signature: String?, originalJson: JSONObject, presentedOfferingIdentifier: String?, storeUserID: String?, purchaseType: PurchaseType) : Parcelable

Represents an in-app billing purchase.

Constructors

Link copied to clipboard
fun StoreTransaction(orderId: String?, skus: List<String>, type: ProductType, purchaseTime: Long, purchaseToken: String, purchaseState: PurchaseState, isAutoRenewing: Boolean?, signature: String?, originalJson: JSONObject, presentedOfferingIdentifier: String?, storeUserID: String?, purchaseType: PurchaseType)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val isAutoRenewing: Boolean?

Whether the subscription renews automatically.

Link copied to clipboard
val orderId: String?

Unique Google order identifier for the purchased transaction.

Link copied to clipboard
val originalJson: JSONObject

Returns a JSONObject format that contains details about the purchase.

Link copied to clipboard
val presentedOfferingIdentifier: String?

Offering that was presented when making the purchase. Always null for restored purchases.

Link copied to clipboard
val purchaseState: PurchaseState

State of the purchase.

Link copied to clipboard
val purchaseTime: Long

Time the product was purchased, in milliseconds since the epoch.

Link copied to clipboard
val purchaseToken: String

Token that uniquely identifies a purchase.

Link copied to clipboard
val purchaseType: PurchaseType

One of PurchaseType indicating the type of purchase.

Link copied to clipboard
val signature: String?

String containing the signature of the Google purchase data that was signed with the private key of the developer. Always null for Amazon.

Link copied to clipboard
val skus: List<String>

Product Ids.

Link copied to clipboard
val storeUserID: String?

Null for Google

Link copied to clipboard
val type: ProductType

Type of the product associated with the purchase.

Sources

Link copied to clipboard