BasePaymentProvider: skip country check if ia.country == '' (Z#23143749) (#3859)

This commit is contained in:
Martin Gross
2024-02-05 16:51:04 +01:00
committed by GitHub
parent fed5097708
commit 45ac391998

View File

@@ -849,7 +849,7 @@ class BasePaymentProvider:
except InvoiceAddress.DoesNotExist:
pass
else:
if str(ia.country) not in restricted_countries:
if str(ia.country) != '' and str(ia.country) not in restricted_countries:
return False
if order.sales_channel not in self.settings.get('_restrict_to_sales_channels', as_type=list, default=['web']):