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

U01G4K5E0J2
U01G4K5E0J2 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?

Comments

  • Stanislav Matveyev
    Stanislav Matveyev Sprykee Posts: 211 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - 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.

  • U01G4K5E0J2
    U01G4K5E0J2 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?
    
  • Stanislav Matveyev
    Stanislav Matveyev Sprykee Posts: 211 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    looks like true, no aternative currently