How does the Chrome SameSite cookie policy affect my Magento 2 integration?

Overview

With the recent release of Google Chrome's SameSite Cookie Policy, the newest version of Chrome updated how it handles cookies. As a result, Affirm will stop working for Chrome users without updating your integration. This guide explains how this new policy affects your Affirm integration with Magento and how to resolve any related issues.

How does the SameSite Cookie policy affect my integration?

Chrome’s SameSite Cookie Policy changes the redirect payment method and causes the Magento 2 sessions to reset when redirecting back to your site from the Affirm checkout. As a result, the session redirects back to an empty cart page and the authorization process fails.

When will Magento implement a fix for this?

Although there aren't any clear timelines established by Magento, there's an active GitHub issue on the topic. In short, the fix would take setting their SESSION cookie as SameSite=None; Secure to ensure POST requests from outside the website domain are successfully transferring the session information.

How do I fix this?

To fix this issue, you’ll need to go to your Magento admin panel and set the Affirm Checkout Flow Type field Modal.

🚧

We strongly recommend making these updates in a staging environment before pushing them to production. If you encounter any issues related to the Affirm plugin, please let us know and we’d be happy to assist.


Related topics
Did this page help you?