cancel
Showing results for 
Search instead for 
Did you mean: 

Payment methods are missing after page refresh magento2

SOLVED

Payment methods are missing after page refresh magento2

I have added a custom checkout step following this link 

https://www.rakeshjesadiya.com/add-a-new-step-in-checkout-page-magento-2/ 

Everything works fine but when I reload the page from custom step, place order button doesnt work .Reason being after page reload from custom step the payment methods are disappearing.

checkout.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Payment methods are missing after page refresh magento2

Just add the following lines in custom step "navigate" function

define(
        [
            ....
            'Magento_Checkout/js/action/get-payment-information'
        ],
        function (
                ...
                getPaymentInformation
                ) {
            'use strict'; 
                .........
                ...........
                ..........
                ..........
            navigate: function () {
                    var self = this;
                    getPaymentInformation().done(function () {
                        self.isVisible(true);
                    });
                },

 

View solution in original post

3 REPLIES 3

Re: Payment methods are missing after page refresh magento2

I am having the same problem, please did you manage to fix it???

Re: Payment methods are missing after page refresh magento2

Just add the following lines in custom step "navigate" function

define(
        [
            ....
            'Magento_Checkout/js/action/get-payment-information'
        ],
        function (
                ...
                getPaymentInformation
                ) {
            'use strict'; 
                .........
                ...........
                ..........
                ..........
            navigate: function () {
                    var self = this;
                    getPaymentInformation().done(function () {
                        self.isVisible(true);
                    });
                },

 

Re: Payment methods are missing after page refresh magento2

I am facing a very serious issue with my Magento website. This has happened a couple of times. Customer places the order, they even get an SMS confirming the order (via MageSMS) but the order does not show in the Magento admin panel.

https://snaptube.cam/ , https://vidmate.bid/