Commit 6cefbf58 authored by Célande Adrien's avatar Célande Adrien Committed by Vincent A

[societegenerale] 'pass securite' needed for foreign recipients

Bank error telling the user that he needs to use the 'pass securite' to
add a foreign recipient.

Closes: 36501@sibi
parent b0edfb31
...@@ -175,6 +175,8 @@ class SignRecipientPage(LoggedPage, JsonPage): ...@@ -175,6 +175,8 @@ class SignRecipientPage(LoggedPage, JsonPage):
'Something went wrong on sign recipient page: %s' % Dict('commun/raison')(self.doc) 'Something went wrong on sign recipient page: %s' % Dict('commun/raison')(self.doc)
def get_sign_method(self): def get_sign_method(self):
if Dict('donnees/unavailibility_reason', default='')(self.doc) == 'oob_non_enrole':
raise AddRecipientBankError(message="Pour réaliser cette opération il est nécessaire d'utiliser le PASS SECURITE") # message from the website
return Dict('donnees/sign_proc')(self.doc).upper() return Dict('donnees/sign_proc')(self.doc).upper()
def check_recipient_status(self): def check_recipient_status(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment