forked from CGM_Public/pretix_original
BasePaymentProvider: skip country check if ia.country == '' (Z#23143749) (#3859)
This commit is contained in:
@@ -849,7 +849,7 @@ class BasePaymentProvider:
|
|||||||
except InvoiceAddress.DoesNotExist:
|
except InvoiceAddress.DoesNotExist:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if str(ia.country) not in restricted_countries:
|
if str(ia.country) != '' and str(ia.country) not in restricted_countries:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if order.sales_channel not in self.settings.get('_restrict_to_sales_channels', as_type=list, default=['web']):
|
if order.sales_channel not in self.settings.get('_restrict_to_sales_channels', as_type=list, default=['web']):
|
||||||
|
|||||||
Reference in New Issue
Block a user