0

Paypal Express checkout not working, it says "Exception message: We can't save the address: Email has a wrong format". However payments are being successful but Magento order isn't creating. Anyone?

Exception message: We can't save the address:
Email has a wrong format
Trace: <pre>#1 Magento\Framework\Model\ResourceModel\Db\AbstractDb->save() called at [vendor/magento/framework/Model/AbstractModel.php:655]

enter image description here

I checked in this file vendor/magento/module-sales/Model/Order/Address/Validator.php and $address->getEmail() is coming NULL/empty.

1 Answer 1

1

Issue resolved with this patch https://nimb.ws/gFA06i

enter image description here

Here is the code in non-image format:

    /* set customer email if email is found empty (bug) */
    if ($this->_quote->getCustomerEmail() === null && $this->_quote->getBillingAddress()->getEmail() !== null) {
        $this->_quote->setCustomerEmail($this->_quote->getBillingAddress()->getEmail());
    }
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.