Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: ThomasDik at Synetic 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 CreditAttribution: ricovandevin at Finlet for Carwebs commented