# @commercetools/connect-payments-sdk

## 0.27.2

### Patch Changes

- d66f007: fix(payments): correct retry mechanism and add exponential backoff to payment updates

## 0.27.1

### Patch Changes

- 7bfd391: Fix issue calling the recurring payment jobs API

## 0.27.0

### Minor Changes

- 9fe494b: feat(recurring-orders): added new recurring payment job service that allows connectors to create a recurring payment job instance in Checkout

## 0.26.0

### Minor Changes

- d6a10eb: feat(cart): added a new method to the cart service to check whether the cart is a recurring cart

## 0.25.1

### Patch Changes

- ad4c0d7: fix(payments): extract checkoutTransactionItemId from session

## 0.25.0

### Minor Changes

- 511fbef: - Add new api and service for interacting with CT custom-types APIs.
  - Add predefined Checkout custom-types.
- d28fe6d: support use of transaction interface id and checkoutTransactionItemsIds

### Patch Changes

- 5d0e4c2: chore(sdk): for CT API sdk mask sensitive data in error object

## 0.24.0

### Minor Changes

- bdd4f33: Add a new api and service for interacting with the CT payment-methods APIs.

## 0.23.1

### Patch Changes

- a26f6de: Added missing transition from Success to Failure that prevented to update the payment in some special cases

## 0.23.0

### Minor Changes

- 45ed8ad: Upgrade dependencies to latest versions

## 0.22.0

### Minor Changes

- 8a98393: Improve logic for managing payment updates

## 0.21.0

### Minor Changes

- 9946b9e: introduces hasTransactionInState method for checking if a payment has a transaction with some set filters, (type and state)

## 0.20.1

### Patch Changes

- 7fc7ae1: Fix UpdatePayment type. Use CustomFieldsDraft instead of CustomFields

## 0.20.0

### Minor Changes

- 772d5be: Add support for updating payment interface interactions. It introduces a breaking change, the CustomFieldsData type has been removed.

## 0.19.0

### Minor Changes

- 16d7341: feat(sdk): add and export function to convert coco line item tax rate into minor units

## 0.18.1

### Patch Changes

- 1ec3a60: Read logging correlation id from session

## 0.18.0

### Minor Changes

- 1bd159b: feat(currency): add more unit-tests for currency convertions. Improve conversion logic.

### Patch Changes

- 64ee10e: fix(dependency): explicitly add @eslint/js to devDependency to fix the lint related scripts

## 0.17.2

### Patch Changes

- e085f38: ci: create release using changeset

## 0.17.1

### Patch Changes

- 296e93f: ci: github workflow to create release in github

## 0.17.0

### Minor Changes

- 02d2994: creating getPlannedPaymentAmount which takes into account giftcard amount to create session

## 0.16.1

### Patch Changes

- 36f0d66: Fix the issue with rounding currency amounts

## 0.16.0

### Minor Changes

- 84c0cda: added new method to find payments by interfaceId

## 0.15.0

### Minor Changes

- 36738ad: subtract gift card planned amount from cart amount to compute required payment amount

## 0.14.0

### Minor Changes

- 012a346: Add currency conversion utility functions

## 0.13.1

### Patch Changes

- a3bbaab: exporting NormalizedShipping type

## 0.13.0

### Minor Changes

- 0e117d0: utilities to support multiple shipments

## 0.12.0

### Minor Changes

- 6201192: enable retries on commercetools SDK for 503 errors

## 0.11.0

### Minor Changes

- bb40dbd: Add support for retrieving the future order number from the session

## 0.10.1

### Patch Changes

- c93e2aa: Fixed issue retrieving error information from commercetools API errors

## 0.10.0

### Minor Changes

- 766ffd4: Accept manage_project permission when checking the status of the commercetools permissions

## 0.9.1

### Patch Changes

- 36e1a4b: Updated various dependencies to their latest versions for improved performance and security

## 0.9.0

### Minor Changes

- 673f3c0: Added support to update the payment custom fields

## 0.8.2

### Patch Changes

- c10522b: - Do not crash the commercetools permissions health check if the config is incorrect. Instead return a proper health check status.

## 0.8.1

### Patch Changes

- de97af3: Improve updatePayment for resolving conflicts updating the interfaceId

## 0.8.0

### Minor Changes

- ae4e53a: - Add and expose a new order-service and order-api
  - Add functionality to retrieve a order via a paymentId
  - Add functionality to retrieve a cart via a paymentId

## 0.7.0

### Minor Changes

- e471faf: Adding logs in the status handler

## 0.6.0

### Minor Changes

- 7c751f2: removed validations for payment modifications (capture, refund and cancel)

## 0.5.0

### Minor Changes

- 67c0581: added a common logger

## 0.4.4

### Patch Changes

- 062bbeb: Solved issue validating a payment refund as the code allowed to trigger a refund when the payment did not have a successful charge transaction

## 0.4.3

### Patch Changes

- f155772: fix payment modification validations by checking that a payment could contain a cancelAuthorization transaction

## 0.4.2

### Patch Changes

- 17b3982: export platform-sdk types

## 0.4.1

### Patch Changes

- 9991f6f: fix authentication error when the commercetools token had expired but the session Id provided was correct

## 0.4.0

### Minor Changes

- 4d1f363: export CoCo types from the commercetools/platform-sdk

## 0.3.0

### Minor Changes

- 45cf960: added a new hook for authenticating a query params based session

## 0.2.2

### Patch Changes

- b87b064: added support for retrieving the merchant return url from the session

## 0.2.1

### Patch Changes

- c5997cb: avoid counting reverted payments as paid amount during cart available amount calculation

## 0.2.0

### Minor Changes

- cdeb0af: allow to retrieve processor URL from the session

## 0.1.0

### Minor Changes

- f782132: Added validations for the different payment modification operations
  Improved logic for calculating the cart payment amount

## 0.0.7

### Patch Changes

- 8110cc2: Enable AuthorityAuthorizationHook in Payment SDK

## 0.0.6

### Patch Changes

- 11ae367: Export authorization hook AuthorityAuthorizationHook in the root path

## 0.0.5

### Patch Changes

- 22434c9: Enforce validation of projectkey on the jwt authentication.

## 0.0.4

### Patch Changes

- ab6200f: Support jwt, oauth2 authentication and support for authority based authorization

## 0.0.3

### Patch Changes

- f3f238f: Authentication and authorization layer via session API

## 0.0.1

### Patch Changes

- c489d1a: Initial commit
