When I have created a block to the show a custom success message on the checkout page. I have used
$this->messageManager->addSuccess(__('your' .$currencySymbol.$amount. ' amount' ));
But when I am running the code I got this type of error: Recoverable Error: Object of class Magento\Framework\Message\Manager could not be converted to string in "my file path".
Please help me. How to solve my error?
Thank you very much.