Offsite: Unzer shopping basket does not allow negative amounts (e.g. coupons)

Created on 22 June 2023, over 1 year ago

Problem/Motivation

Commerce Unzer creates a shopping basket that displays the details of the purchase on the pay page. This works fine and also displays non-included adjustments as long as all the amounts are positive. It breaks when there is a negative amount.

Steps to reproduce

Check out a cart and apply a coupon with fixed amount off the subtotal

Proposed resolution

We can work around the issue by sending the absolute value and marking the item label in case the value needs to be subtracted instead of added. Not the nicest display but the alternative would be to do away with the detailed display altogether in order to prevent the crash without leaving out the offending items).

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany cspitzlay 🇩🇪🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024