Commit ca8168b7 authored by Jose Blaya's avatar Jose Blaya
Browse files

Retrieve eligibile_for_trial from the root of the json object

parent f79ed5da
......@@ -243,8 +243,7 @@ class PIAWebServices: WebServices, ConfigurationAccess {
return
}
let receipt = json["receipt"] as? [String: Any] ?? [:]
let eligibleForTrial = receipt["eligible_for_trial"] as? Bool ?? false
let eligibleForTrial = json["eligible_for_trial"] as? Bool ?? false
let info = AppStoreInformation(products: products,
eligibleForTrial: eligibleForTrial)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment