If you encounter a payment error on PrestaShop where the amount paid differs from the order total, this may be due to:
- The buyer using the “Back” button in their browser.
- The number of decimal places configured in the PrestaShop Back Office.
Buyer using the backspace key in their browser:
This error occurs if the merchant has configured the following setting in the payment module:
- Payment data entry mode To: Card data entry on payment gateway.
- Cart Management set to Keep Cart (PrestaShop’s default behavior).
And if the buyer performs the following steps:
- They confirm their order and are redirected to the payment page.
- They use the back button in their browser to return to the cart page.
- They modify their cart.
- They return directly to the payment page.
- They finalize their payment.
Number of decimal places configured in PrestaShop
To avoid rounding discrepancies, verify that the number of decimal places matches the primary currency of your store.
To verify this information:
- Sign in to your PrestaShop Back Office.
- Go to the Preferences menu and click on General.
- Locate the Decimal Places setting and enter the expected value.Example: 2 for the Euro.