# Changelog (@vsf-enterprise/paypal-commercetools)

# 1.4.1 - 18.12.2023

  • [FIXED] There are different kinds of discounts in commercetools - discount for product, discount from coupon code, discount for cart. Previous version (1.4.0) accidently dropped support for coupon codes and added for discounted items and cart discounts. This version adds support for each of these.

# 1.4.0 - 12.10.2023

  • Added a new feature - "discountedPricePerQuantity" - enabling users to calculate the total price of items with discounts applied based on the quantity purchased, enhancing pricing accuracy and flexibility.

# 1.3.0 - 27.09.2023

  • Added Partial Refund Functionality for PayPal Payments: Users can now process partial refunds directly for PayPal payments, offering greater flexibility in managing transactions.

# 1.2.1 - 14.06.2022

  • Fix: validatePaypalCartPrice works correctly while working with cases like 69.99 * 100

# 1.2.0 - 03.06.2022

  • Set required Node's engine to ^14 || ^16.13

# 1.1.2 - 18.05.2022

  • Fix: PayPal Buttons not loading after malformed price error throwed in express checkotu flow using confirmation page

# 1.1.1 - 12.05.2022

  • Fix: Calculating discounted totals

# 1.1.0 - 11.05.2022

  • Fix: Finding matching zone (PayPal express checkout)
  • Feature: beforePay hook can prevent payment's authorizarion by returning false or Promise<false>

# 1.0.10 - 07.04.2022

  • Fix: Loading component from a few places

# 1.0.9 - 06.04.2022

  • Fix: Zolgo promise bugfix

# 1.0.8 - 05.04.2022

  • Fix: loadScript method crashed website in certain scenario.

# 1.0.7 - 01.04.2022

  • Refactor: Better handling of onError property in PaymentPaypalProvider and PaymentPaypalExpressProvider

# 1.0.6 - 01.04.2022

  • Fix: onError property in PaymentPaypalProvider and PaymentPaypalExpressProvider

# 1.0.5 - 29.03.2022

  • Feat: useConfirmationPage property for PaymentPaypalExpressProvider

# 1.0.4 - 21.03.2022

  • Feat: beforeLoad props in components

# 1.0.3 - 18.03.2022

  • Feat: Providing locale via props to PayPal components

# 1.0.2 - 17.03.2022

  • Fix: Using Live environment correctly

# 1.0.1 - 17.03.2022

  • Feat: Sending Paypal Partner ID attribute in requests
  • Refactor: Removed redundant console logs

# 1.0.0 - 11.03.2022

  • Refactor: Unit tests
  • Refactor: Removed redundant loadCart calls from usePaypal composable

# 0.1.0-beta.3 - 08.03.2022

  • Feat: Using fractionDigits field from commercetools to set precision in prices
  • Bugfix(express checkout): Fixed field name - fullname to full_name
  • Refactor: Strong types
  • Refactor: getLocaleCookies helper
  • Refactor: More smaller files instead of big ones, for readbility and easier testing

# 0.1.0-beta.2 - 01.03.2022

  • Bugfix: Modifying price while in Express Checkout process

# 0.1.0-beta.1 - 25.02.2022

  • First version's release