summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2018-10-24 08:36:51 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2018-10-25 15:50:11 (GMT)
commit975bc95481c6ccde0c103fcab602adb73ebd07a9 (patch)
tree9ec97f95037a87e0bbaaedad612075d5068bb5fb
parent8df6db6fcd82794047646a15c71b71e2258485d7 (diff)
downloadeopayment-975bc95481c6ccde0c103fcab602adb73ebd07a9.zip
eopayment-975bc95481c6ccde0c103fcab602adb73ebd07a9.tar.gz
eopayment-975bc95481c6ccde0c103fcab602adb73ebd07a9.tar.bz2
paybox: fix DIRECT protocol version and operation codes (#27580)v1.30
-rw-r--r--eopayment/paybox.py4
-rw-r--r--tests/test_paybox.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/eopayment/paybox.py b/eopayment/paybox.py
index e52f203..ab77f83 100644
--- a/eopayment/paybox.py
+++ b/eopayment/paybox.py
@@ -106,10 +106,10 @@ PAYBOX_DIRECT_URLS = {
'backup': 'https://ppps1.paybox.com/PPPS.php'
}
-PAYBOX_DIRECT_CANCEL_OPERATION = '00005'
+PAYBOX_DIRECT_CANCEL_OPERATION = '00055'
PAYBOX_DIRECT_VALIDATE_OPERATION = '00002'
-PAYBOX_DIRECT_VERSION_NUMBER = '00104'
+PAYBOX_DIRECT_VERSION_NUMBER = '00103'
PAYBOX_DIRECT_SUCCESS_RESPONSE_CODE = '00000'
diff --git a/tests/test_paybox.py b/tests/test_paybox.py
index ccb0848..7045026 100644
--- a/tests/test_paybox.py
+++ b/tests/test_paybox.py
@@ -137,7 +137,7 @@ class PayboxTests(TestCase):
backend.response('foo=bar')
def test_perform_operations(self):
- operations = {'validate': '00002', 'cancel': '00005'}
+ operations = {'validate': '00002', 'cancel': '00055'}
for operation_name, operation_code in operations.items():
params = BACKEND_PARAMS.copy()
params['cle'] = 'cancelling_key'
@@ -169,7 +169,7 @@ class PayboxTests(TestCase):
# don't care about its value
params_sent.pop('DATEQ')
expected_params = {'CLE': 'cancelling_key',
- 'VERSION': '00104',
+ 'VERSION': '00103',
'TYPE': operation_code,
'MONTANT': Decimal('1000'),
'NUMAPPEL': '30310733',