From 842eeaacf0b32cd47fe5870362bc730c452869fb Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 11 Mar 2021 12:59:22 +0100 Subject: [PATCH] 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 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