Improvement
Jul 2, 2025

Enhanced Paytrail integration: Support for order line items and discount handling

Enhanced Paytrail integration: Support for order line items and discount handling

AI Commerce Cloud has introduced an enhancement to its Paytrail payment integration: order line items can now be included in payment requests. This improvement provides greater transparency for both merchants and customers by reflecting each product line in the payment data sent to Paytrail.

Previously, this feature was disabled due to Paytrail’s limitation that did not allow negative line item values — a key challenge for supporting discount codes. With Paytrail’s recent update to accept negative amounts, it is now possible to include discounted product lines in all payment requests.

To ensure complete accuracy, Paytrail requires that the total order amount matches the combined sum of all order lines down to the cent. When a payment request is sent, AI Commerce Cloud automatically checks that these totals match. If they do, product details are included; if not, the line items are omitted, and the payment proceeds as before. This safeguard prevents disruptions in payment processing and ensures that no transactions fail due to rounding inconsistencies.

Any discrepancies are recorded in the error log for developers to review and resolve potential rounding or price calculation issues. This is particularly important given that different ERP systems handle rounding and pricing logic in varying ways, which has been carefully considered to maintain maximum compatibility.

The update also includes additional safeguards implemented during Paytrail onboarding, and continuous improvements are planned to support an even broader range of shopping cart scenarios in the future.

By offering more granular data in payment requests and better handling of discounts, this update further strengthens the reliability and transparency of the AI Commerce Cloud payment experience.

GDPR

COMPLIANT

Future-proof eCommerce built in the EU

AI Commerce Cloud is developed and hosted within the EU, fully compliant with GDPR and all relevant regulations.

English
AI Commerce Cloud

FI3180370-3

Ranta-Tampellan Katu 17 33180 Tampere, Finland

info@aicommerce.fi

© 2025 AI Commerce Cloud. All rights reserved.

GDPR

COMPLIANT

Future-proof eCommerce built in the EU

AI Commerce Cloud is developed and hosted within the EU, fully compliant with GDPR and all relevant regulations.

English
AI Commerce Cloud

FI3180370-3

Ranta-Tampellan Katu 17 33180 Tampere, Finland

info@aicommerce.fi

© 2025 AI Commerce Cloud. All rights reserved.

GDPR

COMPLIANT

Future-proof eCommerce built in the EU

AI Commerce Cloud is developed and hosted within the EU, fully compliant with GDPR and all relevant regulations.

English
AI Commerce Cloud

FI3180370-3

Ranta-Tampellan Katu 17 33180 Tampere, Finland

info@aicommerce.fi

© 2025 AI Commerce Cloud. All rights reserved.