Interface IapticVerifiedPurchase

Purchase verified by the receipt validator.

interface IapticVerifiedPurchase {
    cancelationReason?: IapticCancelationReason;
    discountId?: string;
    expiryDate?: number;
    id: string;
    isAcknowledged?: boolean;
    isBillingRetryPeriod?: boolean;
    isExpired?: boolean;
    isIntroPeriod?: boolean;
    isTrialPeriod?: boolean;
    lastRenewalDate?: number;
    platform?: IapticPurchasePlatform;
    priceConsentStatus?: IapticPriceConsentStatus;
    productId: string;
    purchaseDate?: number;
    purchaseId?: string;
    renewalIntent?: "Renew" | "Lapse";
    renewalIntentChangeDate?: number;
    transactionId?: string;
}

Properties

cancelationReason?: IapticCancelationReason

The reason a subscription or purchase was cancelled.

discountId?: string

Identifier of the discount currently applied to a purchase.

Correspond to the product's offerId. When undefined it means there is only one offer for the given product.

expiryDate?: number

Date of expiry for a subscription.

id: string

Product identifier

Use productId instead

isAcknowledged?: boolean

True when a purchase has been acknowledged

isBillingRetryPeriod?: boolean

True when a subscription a subscription is in the grace period after a failed attempt to collect payment

isExpired?: boolean

True when a subscription is expired.

isIntroPeriod?: boolean

True when a subscription is in introductory pricing period

isTrialPeriod?: boolean

True when a subscription is in trial period

lastRenewalDate?: number

Last time a subscription was renewed.

Platform this purchase was made on

priceConsentStatus?: IapticPriceConsentStatus

Whether or not the user agreed or has been notified of a price change.

productId: string

Product identifier

purchaseDate?: number

Date of first purchase (timestamp).

purchaseId?: string

Purchase identifier (optional)

renewalIntent?: "Renew" | "Lapse"

Whether or not the user intends to let the subscription auto-renew.

Possible values:

  • "Renew" - The user intends to renew the subscription.
  • "Lapse" - The user intends to let the subscription expire without renewing.
renewalIntentChangeDate?: number

Date the renewal intent was updated by the user.

transactionId?: string

Identifier of the last transaction (optional)