Depending on your version of Hyvä, the PayPal Express button on product pages may not work. The error message is We can’t initialize Express Checkout bzw. We could not initialize the express checkout .

To fix this, override vendor/hyva-themes/magento2-default-theme/Magento_Paypal/templates/express/shortcut_button.phtml in your Hyvä child theme and remove the following code from the template:

The code may occur more than once. After removing it and redeploying, the PayPal Express button should work correctly.

Hinweis: As of February 21, 2025, the Hyvä team is aware of the bug and plans to include a fix in a future Hyvä release. If you do not want to wait, the change above provides a workaround.

PayPal Express button not working on Hyvä product pages
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: