cancel
Showing results for 
Search instead for 
Did you mean: 

Error with mobile app : addToCart

Error with mobile app : addToCart

I am trying to develop a mobile app for my web site created in magento 2.
 
While adding a product into the cart (addToCart), i am getting following error in the logs:
 
Fatal error: Declaration of Magento\Checkout\Helper\Data\Proxy::sendPaymentFailedEmail(Magento\Quote\Model\Quote $checkout, string $message, string $checkoutType = 'onepage') must be compatible with Magento\Checkout\Helper\Data::sendPaymentFailedEmail(Magento\Quote\Model\Quote $checkout, string $message, string $checkoutType = 'onepage'): Magento\Checkout\Helper\Data in /public_html/generated/code/Magento/Checkout/Helper/Data/Proxy.php on line 7
 
Can someone help me to understand what does it means and how to resolve this error.