diff --git a/eopayment/payfip_ws.py b/eopayment/payfip_ws.py index 4d2b72b..11e9a7e 100644 --- a/eopayment/payfip_ws.py +++ b/eopayment/payfip_ws.py @@ -213,6 +213,8 @@ class Payment(PaymentCommon): ], } + min_time_between_transactions = 60 * 20 # 20 minutes + def __init__(self, *args, **kwargs): super(Payment, self).__init__(*args, **kwargs) wsdl_url = self.wsdl_url diff --git a/tests/test_payfip_ws.py b/tests/test_payfip_ws.py index dfc1671..5479c39 100644 --- a/tests/test_payfip_ws.py +++ b/tests/test_payfip_ws.py @@ -480,3 +480,7 @@ def test_invalid_transaction_id_invalid_orderid(get_idop, backend): 'url_notification': NOTIF_URL, 'url_redirect': REDIRECT_URL, } + + +def test_get_min_time_between_transactions(backend): + assert backend.get_min_time_between_transactions() == 20 * 60