Commit 14c05557 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[bnp] 'ibanCompteCrediteur' key in init transfer response is empty

if it's empty, avoid check recipient_iban
parent 309ae667
......@@ -424,7 +424,7 @@ class ValidateTransferPage(BNPPage):
if 'idBeneficiaire' in transfer_data and transfer_data['idBeneficiaire'] is not None:
assert transfer_data['idBeneficiaire'] == recipient.id
elif 'ibanCompteCrediteur' in transfer_data and transfer_data['ibanCompteCrediteur'] is not None:
elif transfer_data.get('ibanCompteCrediteur'):
assert transfer_data['ibanCompteCrediteur'] == recipient.iban
transfer = Transfer()
......
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