Skip to main content
NorrNext Anniversary. We've been around for 10 years! Celebrate with us and get a 20% discount. Coupon code: ANNIVERSARY10

#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 Wednesday, 23 July 2025 10:41 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

Totoweb

Hi, Everything is with a . now but we still got the error. Can you please assist. It is a staging website so you can modify anything you want.

Thank you.

b2z

Hi,

Please post the error here.

 

Kind regards,

Dmitrijs

Totoweb

[2025-07-16T14:12:49+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.00","currency":"EUR"},"metadata":{"order_id":27},"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=27&pid=2","billingAddress":{"givenName":"rr","familyName":"rrr","streetAndNumber":"ddd","postalCode":"1234","city":"ddd","region":null,"country":"NL","email":"domains@ttwb.nl","phone":"","organizationName":"rrr"},"description":"Phoca Cart: 20250000000027"}. Field: amount.value

b2z

I see... Trying to understand why, because plugin just takes the amount from Phoca Cart order data and pass it to Mollie. At the moment cannot find anything in Phoca Cart settings that  can format thousands separator with comma.

Is it OK to install https://www.phoca.cz/phocacommander - I need to debug Phoca Card order data?

Kind regards,

Dmitrijs

Totoweb

Whatever we change in the settings it keeps adding a komma to the 1000 so it will stay at 1,000

Totoweb

Yes, you can install the phoca commander plugin.

Totoweb

If we test a product of € 100,00 it works. € 1000,- not.

b2z

> If we test a product of € 100,00 it works. € 1000,- not.

That is a thousand separator. Not sure from where it comes. Give me some time to debug :)

In any case we will implement the normalization of 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

b2z

OMG, it was an obvious bug in the plugin... Will be fixed in the next version. Meanwhile I have fixed it on your website.

Please try again.

Kind regards,

Dmitrijs

b2z

Hi Raoul,

Fixed in version 1.0.2. Please update and let us know - is it working as expected now?

Kind regards,

Dmitrijs

Totoweb

Yes it is working now

b2z

Thank you for confirmation.

If you are happy with our support, we would be grateful if you took the time for a small review or just a vote on Trustpilot.

https://www.trustpilot.com/review/norrnext.com

Or leave a review about our plugin at the JED.

https://extensions.joomla.org/extension/mollie-for-phoca-cart

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.