Class AN_Purchase
Represents an in-app billing purchase.
Inheritance
Inherited Members
Namespace: SA.Android.Vending.BillingClient
Assembly: cs.temp.dll.dll
Syntax
public class AN_Purchase
Constructors
AN_Purchase(String, AN_BillingClient.SkuType)
Declaration
public AN_Purchase(string sku, AN_BillingClient.SkuType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | sku | |
AN_BillingClient.SkuType | type |
Properties
DeveloperPayload
Returns the payload specified when the purchase was acknowledged or consumed.
Declaration
public string DeveloperPayload { get; }
Property Value
Type | Description |
---|---|
System.String |
IsAcknowledged
Indicates whether the purchase has been acknowledged.
Declaration
public bool IsAcknowledged { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsAutoRenewing
Indicates whether the subscription renews automatically. If true, the subscription is active, and will automatically renew on the next billing date. If false, indicates that the user has canceled the subscription. The user has access to subscription content until the next billing date and will lose access at that time unless they re-enable automatic renewal (or manually renew, as described in Manual Renewal). If you offer a grace period, this value remains set to true for all subscriptions, as long as the grace period has not lapsed. The next billing date is extended dynamically every day until the end of the grace period or until the user fixes their payment method.
Declaration
public bool IsAutoRenewing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
OrderId
A unique order identifier for the transaction. This identifier corresponds to the Google payments order ID
Declaration
public string OrderId { get; }
Property Value
Type | Description |
---|---|
System.String |
OriginalJson
Original non modified google billing service response.
Declaration
public string OriginalJson { get; }
Property Value
Type | Description |
---|---|
System.String |
PackageName
The application package from which the purchase originated.
Declaration
public string PackageName { get; }
Property Value
Type | Description |
---|---|
System.String |
PurchaseState
The purchase state of the order.
Declaration
public AN_Purchase.State PurchaseState { get; }
Property Value
Type | Description |
---|---|
AN_Purchase.State |
PurchaseTime
The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
Declaration
public long PurchaseTime { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
PurchaseToken
A token that uniquely identifies a purchase for a given item and user pair.
Declaration
public string PurchaseToken { get; }
Property Value
Type | Description |
---|---|
System.String |
Signature
String containing the signature of the purchase data that was signed with the private key of the developer.
Declaration
public string Signature { get; }
Property Value
Type | Description |
---|---|
System.String |
Sku
Returns the product Id.
Declaration
public string Sku { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Type of the purchased product
Declaration
public AN_BillingClient.SkuType Type { get; }
Property Value
Type | Description |
---|---|
AN_BillingClient.SkuType |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |