From b4779ba14857ada40066afc398c325b5b6d0ce86 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 11 Mar 2021 12:59:22 +0100 Subject: [PATCH 2/2] payfip: set min_time_between_transactions to 20 minutes (#49144) --- eopayment/payfip_ws.py | 2 ++ tests/test_payfip_ws.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/eopayment/payfip_ws.py b/eopayment/payfip_ws.py index a7754bd..b294ea6 100644 --- a/eopayment/payfip_ws.py +++ b/eopayment/payfip_ws.py @@ -202,6 +202,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 -- 2.30.1