[cmcic] fix response and request translation tables
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 01 Jul 2010 17:07:35 +0200
changeset 15 c6477e1537bf
parent 14 1ab89b184151
child 16 8b25be0693f8
[cmcic] fix response and request translation tables
cmcic.py
--- a/cmcic.py	Thu Jul 01 17:07:08 2010 +0200
+++ b/cmcic.py	Thu Jul 01 17:07:35 2010 +0200
@@ -160,17 +160,18 @@
                  'brand status3ds numauto motifrefus originecb bincb hpancb '
                  'ipclient originetr veres pares montantech').split()
 
+# same order as in CM-CIC_paiement_documentation_technique_v3_0.pdf
 RESPONSE_TRANSLATION = dict([
-    ('MAC','mac'), ('montant','amount'), ('texte-libre','description'),
+    ('MAC','mac'), ('TPE', None), ('montant','amount'), ('texte-libre','description'),
     ('code-retour','return_code'),
     ])
 
 REQUEST_TRANSLATION = dict([
-    ('MAC','mac'), ('montant', 'amount'), ('lgue','lang'),
-    ('url_retour', 'url_root'), ('texte-libre', 'description'),
-    ('url_retour_err', 'url_err'), ('url_retour_ok', 'url_ok'),
-    ('version', None), ('societe', None), ('TPE', None), ('bouton', None),
-    ('mail', 'email'),
+    ('version', None), ('TPE', None), ('montant', 'amount'),
+    ('texte-libre', 'description'), ('mail', 'email'),
+    ('lgue','lang'), ('societe', None), ('url_retour', 'url_root'),
+    ('url_retour_ok', 'url_ok'), ('url_retour_err', 'url_err'),
+    ('MAC','mac'), ('bouton', None),
     ])
 
 class PaymentProtocol(object):