Commit 3d797060 authored by Sylvie Ye's avatar Sylvie Ye Committed by Vincent A

[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
parent 79ef0b8c
......@@ -67,7 +67,10 @@ class TransferJson(LoggedPage, JsonPage):
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
......
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