You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app receipt contains is_trial_period and original_purchase_date fields for each receipt field.
These should be made available by SwiftyStoreKit as follows:
// Result for Consumable and NonConsumable
public enum VerifyPurchaseResult {
case purchased(originalPurchaseDate: Date)
case notPurchased
}
// Verify subscription result
public enum VerifySubscriptionResult {
case purchased(expiryDate: Date, originalPurchaseDate: Date, isTrialPeriod: Bool)
case expired(expiryDate: Date, originalPurchaseDate: Date, isTrialPeriod: Bool)
case notPurchased
}
In order to simplify parsing of the original_purchase_date and for consistency with the current implementation in InAppReceipt.swift, the original_purchase_date_ms field should be used and converted to Date in the same fashion of the InAppReceipt.getReceiptRequestDate(:) method.
This is a beginner task well suited for first time contributors. Pull requests are welcome.
The text was updated successfully, but these errors were encountered:
Platform
In app purchase type
Environment
Version
0.8.5
Report
The app receipt contains
is_trial_period
andoriginal_purchase_date
fields for each receipt field.These should be made available by SwiftyStoreKit as follows:
In order to simplify parsing of the
original_purchase_date
and for consistency with the current implementation inInAppReceipt.swift
, theoriginal_purchase_date_ms
field should be used and converted toDate
in the same fashion of theInAppReceipt.getReceiptRequestDate(:)
method.This is a beginner task well suited for first time contributors. Pull requests are welcome.
The text was updated successfully, but these errors were encountered: