cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2 after plugin afterSaveAddressInformation redirect payment

SOLVED

magento 2 after plugin afterSaveAddressInformation redirect payment

Hi all 

I build the modules with plugin. now stop redirect to payment page   afterSaveAddressInformation next button click.  it was the same page not going to payment pages. 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: magento 2 after plugin afterSaveAddressInformation redirect payment

Here is the code i am able to resolved. 

just need to result 

 

  public function afterSaveAddressInformation(
        \Magento\Checkout\Model\ShippingInformationManagement $subject, $result, $cartId, 
        \Magento\Checkout\Api\Data\ShippingInformationInterface $addressInformation
     ) {
        
        $emailAddress = $this->cartHelper->getQuote()->getCustomerEmail();
       
        $quote = $this->cartHelper->getQuote();
        // echo "<pre>";
        echo $firstName . $emailAddress;       
                       
            return $result;           
        
    }

View solution in original post

1 REPLY 1

Re: magento 2 after plugin afterSaveAddressInformation redirect payment

Here is the code i am able to resolved. 

just need to result 

 

  public function afterSaveAddressInformation(
        \Magento\Checkout\Model\ShippingInformationManagement $subject, $result, $cartId, 
        \Magento\Checkout\Api\Data\ShippingInformationInterface $addressInformation
     ) {
        
        $emailAddress = $this->cartHelper->getQuote()->getCustomerEmail();
       
        $quote = $this->cartHelper->getQuote();
        // echo "<pre>";
        echo $firstName . $emailAddress;       
                       
            return $result;           
        
    }