misc: add empty_response flag (#61241)

This commit is contained in:
Benjamin Dauvergne 2022-01-29 09:11:38 +01:00
parent 0608e27dfe
commit ae14959c2a
2 changed files with 5 additions and 0 deletions

View File

@ -266,6 +266,10 @@ class Payment:
def has_free_transaction_id(self):
return self.backend.has_free_transaction_id
@property
def has_empty_response(self):
return self.backend.has_free_transaction_id
def payment_status(self, transaction_id, **kwargs):
if not self.backend.payment_status:
raise NotImplementedError('payment_status is not implemented on this backend')

View File

@ -150,6 +150,7 @@ class PaymentResponse:
class PaymentCommon:
has_free_transaction_id = False
has_empty_response = False
PATH = '/tmp'
BANK_ID = '__bank_id'