Skip to content

OCC-221: Fix unnecessary payment intent creation and fix new obsoletes#730

Open
sarahelsaig wants to merge 42 commits intomainfrom
issue/OCC-221
Open

OCC-221: Fix unnecessary payment intent creation and fix new obsoletes#730
sarahelsaig wants to merge 42 commits intomainfrom
issue/OCC-221

Conversation

@sarahelsaig
Copy link
Copy Markdown
Contributor

@sarahelsaig sarahelsaig commented Apr 29, 2026

OCC-221
They are created in the background while you edit the addresses during checkout. It's because calls ~/checkout/price in case the prices need to be updated, which implicitly requests the payment provider data. The solution is to check if the price hasn't changed and the status is requires_payment_method (this is the status before you click on the payment provider button) then just use the stored payment intent instead.
Fixes #407

@sarahelsaig sarahelsaig changed the title OCC-221: Fix unnecessary payment intent creation OCC-221: Fix unnecessary payment intent creation and fix new obsoletes Apr 29, 2026
@Skrypt
Copy link
Copy Markdown
Contributor

Skrypt commented Apr 30, 2026

Just a quick comment. I think I needed to fix the fact that shopping cart cookies are not tenant aware. Maybe you will want to take a look if not already fixed.

@sarahelsaig
Copy link
Copy Markdown
Contributor Author

Just a quick comment. I think I needed to fix the fact that shopping cart cookies are not tenant aware. Maybe you will want to take a look if not already fixed.

This PR didn't touch the shopping cart cookies so it's probably not fixed yet. Could you please open a new issue and elaborate on what kind of tenant awareness was necessary? If you can include a snippet or description of your fix that'd be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple payment intents are created during a single session (OCC-221)

4 participants