From 3d79706053fc720bfe9bab3967c4f9cd379c2a6c Mon Sep 17 00:00:00 2001 From: Sylvie Ye Date: Thu, 27 Aug 2020 16:00:44 +0200 Subject: [PATCH] [societegenerale] add condition in iter_recipient if statement in order to also retrieve recipient for PSD2 accounts. In PSD2, the account id is the "identifiantPrestation" when the account id is "codeGuichet+numeroCompte" in website --- modules/societegenerale/pages/transfer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/societegenerale/pages/transfer.py b/modules/societegenerale/pages/transfer.py index cb2c8232dc..569e804bd6 100644 --- a/modules/societegenerale/pages/transfer.py +++ b/modules/societegenerale/pages/transfer.py @@ -67,7 +67,10 @@ def on_load(self): def get_acc_transfer_id(self, account): for acc in self.doc['donnees']['listeEmetteursBeneficiaires']['listeDetailEmetteurs']: - if account.id == Format('%s%s', Dict('codeGuichet'), Dict('numeroCompte'))(acc): + if ( + account.id == Format('%s%s', Dict('codeGuichet'), Dict('numeroCompte'))(acc) + or account.id == Dict('identifiantPrestation', default=NotAvailable)(acc) + ): # return json_id to do transfer return acc['id'] return False -- GitLab