Payment availability-check: ignore country if no invoice address given (#2171)

This commit is contained in:
Richard Schreiber
2021-08-09 15:11:49 +02:00
committed by GitHub
parent 9c6a2eb85a
commit 4c3192f116

View File

@@ -703,7 +703,7 @@ class BasePaymentProvider:
try:
ia = order.invoice_address
except InvoiceAddress.DoesNotExist:
return True
pass
else:
if str(ia.country) not in restricted_countries:
return False