summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-09-21 15:42:38 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2015-09-21 15:43:30 (GMT)
commitc48789dad1985bbdf248b5854c49f1c2d028136a (patch)
tree2ad83e694e6da022235bc3f1de56999c966cfad3
parent981f54526dbbfb2108566cdd95eae9b626bbfe7f (diff)
downloadeopayment-c48789dad1985bbdf248b5854c49f1c2d028136a.zip
eopayment-c48789dad1985bbdf248b5854c49f1c2d028136a.tar.gz
eopayment-c48789dad1985bbdf248b5854c49f1c2d028136a.tar.bz2
paybox: remove ERRORCODETEST
-rw-r--r--eopayment/paybox.py1
-rw-r--r--tests/paybox.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/eopayment/paybox.py b/eopayment/paybox.py
index acdf2bf..20e3b43 100644
--- a/eopayment/paybox.py
+++ b/eopayment/paybox.py
@@ -207,7 +207,6 @@ class Payment(PaymentCommon):
d['PBX_RETOUR'] = 'montant:M;reference:R;code_autorisation:A;erreur:E;signature:K'
d['PBX_HASH'] = 'SHA512'
d['PBX_TIME'] = kwargs.get('time') or (unicode(datetime.datetime.utcnow().isoformat('T')).split('.')[0]+'+00:00')
- d['PBX_ERRORCODETEST'] = '77777'
d['PBX_ARCHIVAGE'] = transaction_id
if self.callback:
d['PBX_REPONDRE_A'] = unicode(self.callback)
diff --git a/tests/paybox.py b/tests/paybox.py
index 9b76e99..54a422a 100644
--- a/tests/paybox.py
+++ b/tests/paybox.py
@@ -65,9 +65,8 @@ class PayboxTests(TestCase):
'PBX_TOTAL': '1999',
'PBX_DEVISE': '978',
'PBX_HASH': 'SHA512',
- 'PBX_HMAC': 'BA570AF3F5FBF741D3746A9778DB421A68A339669502E9FB2459D0B01EE9E9A88BD499300E6BCE99F729D8FEEE72BDC2F95521F06D2DA1C0924905D1244C6F17',
+ 'PBX_HMAC': '88CE727DAB03EB87DE1637AAE01C49A57566A932ABEEB7B788620665ADCA148B732BA8EC50866406ADF308CD78FCA683106041FFEFF1837181C03E784211A61A',
'PBX_ARCHIVAGE': '1234',
- 'PBX_ERRORCODETEST': '77777',
'PBX_REPONDRE_A': 'http://example.com/callback',
}
self.assertIn(name, values)