#.ishkanan

1 messages · Page 1 of 1 (latest)

oblique tendonBOT
strange zenith
#

@vital prawn what's your question?

vital prawn
#

Hello! My team was looking for a way to tell the iOS SDK which API version to communicate with but what we found was that each iOS SDK version seems to lock to a specific API version.

#

It's a bit different to the web SDKs where you can specify the API version. Was just wondering if that's correct or did we miss something in the iOS documentation.

strange zenith
#

Could you share which version of the iOS SDK you're using?

vital prawn
#

Yep one moment

strange zenith
vital prawn
#

Oh OK hmm. We found an apiVersion field but it was marked as a static let so it wouldn't allow assignment. The value was already set at 2020-08-27 from memory

#

Would there be another field somewhere we could use to set the version?

strange zenith
#

Give me a few minutes please!

vital prawn
#

No worries!

strange zenith
#

Okay, I mistyped. So yes, there is a hardcoded API version with the iOS SDK but this can't be edited on a per-request basis. For example, looks like version 23.3.1 uses API version 2020-08-27. It's not currently possible to change the API version on the iOS SDK per request but this shouldn't be necessary. If there's a mismatch between your server and client side code, there shouldn't be any issues on the PaymentSheet side since the PaymentSheet just requires things that are kind of angnostic to API versions (ephemeral keys, client secret, etc.)

vital prawn
#

We are in the process of getting server and client code to match, some maintenance for us to do. Good to know the mismatches won't cause issues (we don't use PaymentSheet though).

#

So basically when we want to change the default API version in the dashboard, it will only impact web SDKs?

strange zenith
#

It'll only impact places where an API version wasn't explicitly set