I was getting an error when I tested with amounts above 1000. So I did some debugging and I found out that the amount is formatted with number_format.
https://git.drupalcode.org/project/mollie_payment/blob/7.x-2.x/includes/...
The default thousands separator of the function is a comma. The Mollie API expects no separator for thousands.
So my fix is to change the number_format function to get the format the Mollie API expects.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mollie-payment-patch-3052203-1.patch | 1.23 KB | thomasdik |
Comments
Comment #2
thomasdik commentedAdded a small change to this patch as there were two places where this type of number formatting was performed.
Comment #3
sjerdoLooks good to me!
Comment #5
ricovandevin commented