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
While using 21.2.0 I get this error. It shows this message: 'You passed an empty string for 'billing_details[address][country]' ... . Please, look at the screenshot.
When using 19.4.0 I didn't get this error and everything worked fine with the same logic, the code was changed only to make the project compile.
I set in App Delegate: STPPaymentConfiguration.shared.requiredBillingAddressFields = .none
Apart from that, I don't specify that any other billing details must be collected in any place in the app as far as I can see.
Code to reproduce
I initialize customer and payment contexts in this way not specifying anything extra.
How do I solve it? Should I set some properties somewhere?
I didn't change behavior in any way after installing 21.2.0. I just implemented necessary migration steps for the project to compile.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi, sorry for the delay! This is a combination of a bug on our end and an issue with the iOS Simulator.
The iOS Simulator sometimes returns nil as the current locale's country code. You can fix this by going into the Simulator's Settings -> General -> Language & Region -> Region and setting a country code (even if one is already set, just re-set the one that's selected).
Our SDK doesn't correctly handle a nil current locale in all situations. We'll fix that in an update soon. I don't think users would hit this in the wild, as real devices should always have a valid locale.
Summary
I migrated from SDK v.19.4.0 to 21.2.0.
While using 21.2.0 I get this error. It shows this message: 'You passed an empty string for 'billing_details[address][country]' ... . Please, look at the screenshot.
When using 19.4.0 I didn't get this error and everything worked fine with the same logic, the code was changed only to make the project compile.
I set in App Delegate:
STPPaymentConfiguration.shared.requiredBillingAddressFields = .none
Apart from that, I don't specify that any other billing details must be collected in any place in the app as far as I can see.
Code to reproduce
I initialize customer and payment contexts in this way not specifying anything extra.
iOS version
14.3
Installation method
Cocoapods, 1.10.1
SDK version
21.2.0
Question:
How do I solve it? Should I set some properties somewhere?
I didn't change behavior in any way after installing 21.2.0. I just implemented necessary migration steps for the project to compile.
Thanks in advance!
The text was updated successfully, but these errors were encountered: