Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cart): support for multiple shipping #280

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

ddeliziact
Copy link
Contributor

Add support for multiple shipping.

  • Sending shipping information as separate line items.
  • In case of multiple shipping addresses send only the first one of the list.

Order,
} from '@commercetools/connect-payments-sdk';
import {
getAllowedPaymentMethodsFromContext,
getCtSessionIdFromContext,
getProcessorUrlFromContext,
} from '../../libs/fastify/context/context';
import { NormalizedShipping } from '@commercetools/connect-payments-sdk/dist/commercetools/types/cart.type';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be imported like the others above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that is not automatically exported the type in the payment-sdk. That will require an update in the payment-sdk.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abreu-ct abreu-ct merged commit 59aa4bf into main Dec 30, 2024
2 checks passed
@abreu-ct abreu-ct deleted the ddeliziact/support-multiple-shipping branch December 30, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants