paybox: fix DIRECT protocol version and operation codes (#27580)
This commit is contained in:
parent
8df6db6fcd
commit
975bc95481
|
@ -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'
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue