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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ThomasDik’s picture

Added a small change to this patch as there were two places where this type of number formatting was performed.

sjerdo’s picture

Status: Active » Reviewed & tested by the community

Looks good to me!

  • ricovandevin committed 0bc8e98 on 7.x-2.x
    Issue #3052203 by david.duymelinck_mia.be, ThomasDik: Mollie API REST...
ricovandevin’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.