getSubscriptionExpiryTimeFormatted

Gets the subscription expiry time as a formatted string.

Return

Formatted expiry date, or "Not verified" if not available.

Parameters

subscriptionId

The subscription product ID.


open fun getSubscriptionExpiryTimeFormatted(subscriptionId: String, pattern: String): String

Gets the subscription expiry time as a formatted string with custom pattern.

Return

Formatted expiry date, or "Not verified" if not available.

Parameters

subscriptionId

The subscription product ID.

pattern

The date format pattern (e.g., "yyyy-MM-dd").