Skip to content

Commit

Permalink
Fix discount line item
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrosa committed Jan 29, 2025
1 parent 2f5f10d commit 390fd06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/express-checkout/transformers/wc-to-stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ export const transformCartDataForDisplayItems = ( rawCartData ) => {
);
if ( discountAmount ) {
displayItems.push( {
key: 'total_discount',
amount: transformPrice( discountAmount, cartData.totals ),
amount: -transformPrice( discountAmount, cartData.totals ),
name: __( 'Discount', 'woocommerce-gateway-stripe' ),
} );
}
Expand Down

0 comments on commit 390fd06

Please sign in to comment.