StoreTransaction

data class StoreTransaction(    val orderId: String?,     val skus: List<String>,     val type: ProductType,     val purchaseTime: Long,     val purchaseToken: String,     val purchaseState: PurchaseState,     val isAutoRenewing: Boolean?,     val signature: String?,     val originalJson: JSONObject,     val presentedOfferingIdentifier: String?,     val storeUserID: String?,     val purchaseType: PurchaseType,     val marketplace: String?) : 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,     marketplace: String?)

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 marketplace: String?

Amazon's marketplace. Null for Google

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?

Amazon's store user id. Null for Google

Link copied to clipboard
val type: ProductType

Type of the product associated with the purchase.

Sources

Link copied to clipboard