Skip to main content

#177 Error on payment

Posted in ‘Mollie for Phoca Cart’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information (available for public)

PHP version
n/a

Latest post by b2z on Thursday, 10 July 2025 14:19 EEST

Totoweb

Hi Norrnext,

We got this error when we test the payment. It is a staging website so you can modify anything you want.

https://dev3ttwb.nl/shop

Also we don't see the Mollie/Ideal logo on the cart page.

Kind regards,

Raoul

 

[2025-07-10T11:10:27+0200] Error executing API call (422: Unprocessable Entity): The amount contains an invalid value. Documentation: https://docs.mollie.com/overview/handling-errors. Request body: {"amount":{"value":"1,500.25","currency":"EUR"},"metadata":{"order_id":7},"locale":"nl_NL","redirectUrl":"https:\/\/dev3ttwb.nl\/index.php?option=com_phocacart&view=response&task=response.paymentrecieve&type=mollie&tmpl=component&pid=2","webhookUrl":"https:\/\/dev3ttwb.nl\/index.php?option=com_phocacart&view=response&task=response.paymentwebhook&type=mollie&tmpl=component&pid=2","cancelUrl":"https:\/\/dev3ttwb.nl\/index.php?option=com_phocacart&view=response&task=response.paymentcancel&type=mollie&tmpl=component&oid=7&pid=2","billingAddress":{"givenName":"Raoul","familyName":"Alderse Baas","streetAndNumber":"Leidsevaartweg 1","postalCode":"2106NA","city":"Heemstede","region":null,"country":null,"email":"mijnagenda@icloud.com","phone":"","organizationName":"Totoweb"},"description":"Phoca Cart: 20250000000007"}. Field: amount.value

b2z

Hi Raoul,

1) Regarding error.

I think Mollie does not like the number format with comma inside. From their docs:

> A string containing an exact monetary amount in the given currency.

So there is no requirements or any restrictions, but in their example they use 1000.00

> The amount that you want to charge, e.g. {currency:"EUR", value:"1000.00"} if you would want to charge €1000.00.

Can you change from 1,500 to 1500 please and try again.

2) Mollie/Ideal logo on the cart page - do you mean Phoca Cart checkout page or Mollie Payment page?

Kind regards,

Dmitrijs

b2z

Additionally we can try to normalize the amount string in our plugin code to avoid such errors and handle numbers like 1,500.25 or 1.500,25 or 1500,25.

Kind regards,

Dmitrijs

Support information

Support hours: You can get our help: Monday - Friday / 09:00 to 17:00 (GMT+3), but not limited. Our staff is pleased to provide Premium support to every paid subscriber asap, but sometimes you should be ready to wait for our reply for up to 3 days.


Our time: / Your time:

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. We also ask you to remove temporary credentials at your site after the problem is resolved. Thank you.

Support of free extensions is not provided on this forum. Please submit your questions or report issues via Github tracker. See link on the product page.