diff --git a/modules/paypal/pages.py b/modules/paypal/pages.py index 0b08b813cc65b339ab0a0a3a11ddcf5ddd84e443..2fa8c8c78659eb1fb6621d5109abca59f56cda2c 100644 --- a/modules/paypal/pages.py +++ b/modules/paypal/pages.py @@ -270,7 +270,7 @@ def parse_transaction(self, transaction, account): return [] cc = [tr['grossAmount']['amountUnformatted'] for tr in transaction['secondaryTransactions'] \ if account.currency == tr['grossAmount']['currency'] \ - and (tr['grossAmount']['amountUnformatted'] < 0) == (transaction['grossAmount']['amountUnformatted'] < 0) \ + and (int(tr['grossAmount']['amountUnformatted']) < 0) == (int(transaction['grossAmount']['amountUnformatted']) < 0) \ and tr['transactionDescription']['description'].startswith('Conversion de devise')] if not cc: return []