saltedge / saltedge-ios

A handful of classes to help you interact with the Salt Edge API from your iOS app
https://www.saltedge.com
MIT License
1 stars 4 forks source link

country_code vs allowed_countries #74

Closed idanci closed 7 years ago

idanci commented 7 years ago

Recently SE removed country_code option support and introduced allowed_countries. Update SDK considering changes.

idanci commented 7 years ago

Initial report:

I’d like to let you know that we have made some changes to the API and added the possibility to filter the countries available to the customer through Salt Edge Connect.

For more information, please check the “allowed_countries” parameter upon token creation. With Salt Edge Connect we strongly suggest using this parameter instead of “country_code”.

Should you have any further questions, feel free to reach out to our support team.

I checked the code and I noticed that the SE SDK will assert false if we don't send the country_code parameter.

NSAssert(parameters[kCountryCodeKey] != nil, @"Country code cannot be nil.");
nemesis commented 7 years ago

3.1.3 removed presence validation for country_code, provider_code, and return_to.