Commit 8498f8b7 authored by Jose Blaya's avatar Jose Blaya

Merge branch '55-trial-accounts-are-not-handled-correctly-when-expired' into 'develop'

Resolve "Trial accounts are not handled correctly when expired"

See merge request ios/client-library-apple!111
parents 22273c11 9994abaf
......@@ -285,7 +285,13 @@ class DefaultAccountProvider: AccountProvider, ConfigurationAccess, DatabaseAcce
guard info.isRenewable else {
callback?(nil, ClientError.renewingNonRenewable)
//We need to check if the plan is a trial even when the plan is not renewable, as the
//error message should be different for each scenario
if info.plan == .trial {
callback?(nil, ClientError.renewingTrial)
} else {
callback?(nil, ClientError.renewingNonRenewable)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment