Dear all,
I’m testing credit card payments via payPal plugin.
When paying the test amount of €0.01 we’re getting the error message below as email, but the payment is processed and the registration is showing up as paid.
The received and the expected amount are the same, even in the error message. So why is there an error message?
“It appears that the payment of the registration with ID 37 has an incorrect
amount of money (received €0.01 while expecting €0.01). Please, check with the
registrant to see if there was some misunderstanding.”
Thank you very much and best regards.
I recommend to check the server log, as in the mail the output is formatted, possibly truncating some digits. (if paypal really sends 0.010001 or 0.0099 this could happen)
note: even in the log not the raw representation received from paypal is show, but the result of the float conversion.
payment_paypal/indico_payment_paypal/controllers.py: in verify_amount()
currency = request.form['mc_currency']
if expected_amount == amount and expected_currency == currency:
return True
Thank you for your answer.
The log says:
WARNING f76648d7d3ff4cae - indico.plugin.payment_paypal Payment doesn't match event's fee: 0.01 EUR != 0.01 EUR
The payment shows up in our PayPal-Account just fine.
So you’d say, as long as the amount is correct, it’s safe to ignore the warning?