mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Payment availability-check: ignore country if no invoice address given (#2171)
This commit is contained in:
committed by
GitHub
parent
9c6a2eb85a
commit
4c3192f116
@@ -703,7 +703,7 @@ class BasePaymentProvider:
|
|||||||
try:
|
try:
|
||||||
ia = order.invoice_address
|
ia = order.invoice_address
|
||||||
except InvoiceAddress.DoesNotExist:
|
except InvoiceAddress.DoesNotExist:
|
||||||
return True
|
pass
|
||||||
else:
|
else:
|
||||||
if str(ia.country) not in restricted_countries:
|
if str(ia.country) not in restricted_countries:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user