What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

CheckoutResponseTransfer's method getSaveOrder is marked as deprecated with annotation ```@deprecate

Posts: 194 πŸ§‘πŸ»β€πŸš€ - Cadet

CheckoutResponseTransfer's method getSaveOrder is marked as deprecated with annotation

@deprecated Use SaveOrderTransfer directly/decoupled from the checkout response

how am I supposed to use SaveOrderTransfer directly with checkout facade?

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Application Architect @ Spryker Sprykee Posts: 212 πŸ§‘πŸ»β€πŸš€ - Cadet

    It is mostly about Checkout plugins, new CheckoutPostSave plugins don't use this Response in method signature, but use SaveOrderTransfer instead, because response should not be modified in that moment.

  • Posts: 194 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited April 2021

    ok, understood, but what if I want to get newly created order id?

    $responseTransfer = $checkoutFacadeInterface->placeOrder($quoteTransfer);
    $salesOrderId = $responseTransfer->getSaveOrder()->getIdSalesORder(); // deprecated, but there seems to be no alternative?
    
  • Application Architect @ Spryker Sprykee Posts: 212 πŸ§‘πŸ»β€πŸš€ - Cadet

    looks like true, no aternative currently

Welcome!

It looks like you're new here. Sign in or register to get started.