How can I get the data when I click the place order button on the checkout page of the magento 2? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Magento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”Magento2 weird checkout page issue on click of Proceed to Checkout buttonPlace order button in Magento 2 checkoutMagento2: Redirecting to Cart page from Checkout page after Place Order“Place Order” button on checkout page not working - Magento 2Place Order spinner stuck and not redirect to success page?Magento 2 how can to get bank details in order success pageValidate shipping address on place order button click in one page checkoutGetting error Maximum call stack size exceeded at place-order button clickMagento 2 : Custom payment on place order error “The authorize action is not available.”

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Relations between two reciprocal partial derivatives?

Does Parliament hold absolute power in the UK?

Sort a list of pairs representing an acyclic, partial automorphism

Didn't get enough time to take a Coding Test - what to do now?

What force causes entropy to increase?

How to test the equality of two Pearson correlation coefficients computed from the same sample?

Simulation of a banking system with an Account class in C++

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

"... to apply for a visa" or "... and applied for a visa"?

Keeping a retro style to sci-fi spaceships?

Semisimplicity of the category of coherent sheaves?

How to split my screen on my Macbook Air?

Netflix Recommendations?

What can I do if neighbor is blocking my solar panels intentionally?

Arduino Pro Micro - switch off LEDs

Did the new image of black hole confirm the general theory of relativity?

Problems with Ubuntu mount /tmp

Does Parliament need to approve the new Brexit delay to 31 October 2019?

Why does the Event Horizon Telescope (EHT) not include telescopes from Africa, Asia or Australia?

When did F become S in typeography, and why?

How is simplicity better than precision and clarity in prose?

How many people can fit inside Mordenkainen's Magnificent Mansion?

Why can't devices on different VLANs, but on the same subnet, communicate?



How can I get the data when I click the place order button on the checkout page of the magento 2?



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Magento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”Magento2 weird checkout page issue on click of Proceed to Checkout buttonPlace order button in Magento 2 checkoutMagento2: Redirecting to Cart page from Checkout page after Place Order“Place Order” button on checkout page not working - Magento 2Place Order spinner stuck and not redirect to success page?Magento 2 how can to get bank details in order success pageValidate shipping address on place order button click in one page checkoutGetting error Maximum call stack size exceeded at place-order button clickMagento 2 : Custom payment on place order error “The authorize action is not available.”



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















How can I get the data when I click the place order button on the checkout page of the Magento 2?
When clicking button place order, show the output data like var_dump ($data); die (); so as not to redirect to checkout success.
Thank you so much.
Checkout One Page










share|improve this question






























    1















    How can I get the data when I click the place order button on the checkout page of the Magento 2?
    When clicking button place order, show the output data like var_dump ($data); die (); so as not to redirect to checkout success.
    Thank you so much.
    Checkout One Page










    share|improve this question


























      1












      1








      1








      How can I get the data when I click the place order button on the checkout page of the Magento 2?
      When clicking button place order, show the output data like var_dump ($data); die (); so as not to redirect to checkout success.
      Thank you so much.
      Checkout One Page










      share|improve this question
















      How can I get the data when I click the place order button on the checkout page of the Magento 2?
      When clicking button place order, show the output data like var_dump ($data); die (); so as not to redirect to checkout success.
      Thank you so much.
      Checkout One Page







      magento2






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 10 at 7:24









      Raj Mohan R

      5209




      5209










      asked Apr 10 at 6:39









      DreamsDreams

      415




      415




















          2 Answers
          2






          active

          oldest

          votes


















          1














          Following class is responsible for placing the order.




          vendor/magento/module-checkout/Model/PaymentInformationManagement.php




          And method:




          savePaymentInformationAndPlaceOrder




          You can debug here. This is api class and you can't get data as $data. All data are passes here as an object.



          Also, you can throw an exception here for avoiding success page.






          share|improve this answer






























            0














            Use this extension and modify as per your requirement.

            1 https://github.com/navinbhudiya/magento2-order-details-on-success-page

            2 https://bsscommerce.com/magento-2-order-details-on-success-page.html






            share|improve this answer








            New contributor




            Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




















            • Hi Biren Patel, I want var_dump data immediately after submitting, and the data show shows that current checkout page. Thank you for your support

              – Dreams
              Apr 10 at 6:54











            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269459%2fhow-can-i-get-the-data-when-i-click-the-place-order-button-on-the-checkout-page%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Following class is responsible for placing the order.




            vendor/magento/module-checkout/Model/PaymentInformationManagement.php




            And method:




            savePaymentInformationAndPlaceOrder




            You can debug here. This is api class and you can't get data as $data. All data are passes here as an object.



            Also, you can throw an exception here for avoiding success page.






            share|improve this answer



























              1














              Following class is responsible for placing the order.




              vendor/magento/module-checkout/Model/PaymentInformationManagement.php




              And method:




              savePaymentInformationAndPlaceOrder




              You can debug here. This is api class and you can't get data as $data. All data are passes here as an object.



              Also, you can throw an exception here for avoiding success page.






              share|improve this answer

























                1












                1








                1







                Following class is responsible for placing the order.




                vendor/magento/module-checkout/Model/PaymentInformationManagement.php




                And method:




                savePaymentInformationAndPlaceOrder




                You can debug here. This is api class and you can't get data as $data. All data are passes here as an object.



                Also, you can throw an exception here for avoiding success page.






                share|improve this answer













                Following class is responsible for placing the order.




                vendor/magento/module-checkout/Model/PaymentInformationManagement.php




                And method:




                savePaymentInformationAndPlaceOrder




                You can debug here. This is api class and you can't get data as $data. All data are passes here as an object.



                Also, you can throw an exception here for avoiding success page.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 10 at 7:26









                Sohel RanaSohel Rana

                23.3k34461




                23.3k34461























                    0














                    Use this extension and modify as per your requirement.

                    1 https://github.com/navinbhudiya/magento2-order-details-on-success-page

                    2 https://bsscommerce.com/magento-2-order-details-on-success-page.html






                    share|improve this answer








                    New contributor




                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.




















                    • Hi Biren Patel, I want var_dump data immediately after submitting, and the data show shows that current checkout page. Thank you for your support

                      – Dreams
                      Apr 10 at 6:54















                    0














                    Use this extension and modify as per your requirement.

                    1 https://github.com/navinbhudiya/magento2-order-details-on-success-page

                    2 https://bsscommerce.com/magento-2-order-details-on-success-page.html






                    share|improve this answer








                    New contributor




                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.




















                    • Hi Biren Patel, I want var_dump data immediately after submitting, and the data show shows that current checkout page. Thank you for your support

                      – Dreams
                      Apr 10 at 6:54













                    0












                    0








                    0







                    Use this extension and modify as per your requirement.

                    1 https://github.com/navinbhudiya/magento2-order-details-on-success-page

                    2 https://bsscommerce.com/magento-2-order-details-on-success-page.html






                    share|improve this answer








                    New contributor




                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.










                    Use this extension and modify as per your requirement.

                    1 https://github.com/navinbhudiya/magento2-order-details-on-success-page

                    2 https://bsscommerce.com/magento-2-order-details-on-success-page.html







                    share|improve this answer








                    New contributor




                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    share|improve this answer



                    share|improve this answer






                    New contributor




                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    answered Apr 10 at 6:47









                    Biren PatelBiren Patel

                    365




                    365




                    New contributor




                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





                    New contributor





                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






                    Biren Patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.












                    • Hi Biren Patel, I want var_dump data immediately after submitting, and the data show shows that current checkout page. Thank you for your support

                      – Dreams
                      Apr 10 at 6:54

















                    • Hi Biren Patel, I want var_dump data immediately after submitting, and the data show shows that current checkout page. Thank you for your support

                      – Dreams
                      Apr 10 at 6:54
















                    Hi Biren Patel, I want var_dump data immediately after submitting, and the data show shows that current checkout page. Thank you for your support

                    – Dreams
                    Apr 10 at 6:54





                    Hi Biren Patel, I want var_dump data immediately after submitting, and the data show shows that current checkout page. Thank you for your support

                    – Dreams
                    Apr 10 at 6:54

















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269459%2fhow-can-i-get-the-data-when-i-click-the-place-order-button-on-the-checkout-page%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Sum ergo cogito? 1 nng

                    419 nièngy_Soadمي 19bal1.5o_g

                    Queiggey Chernihivv 9NnOo i Zw X QqKk LpB