Skip to content

Allow ReplaceCart endpoint to (re)create token (5866) - #4356

Merged
stracker-phil merged 2 commits into
dev/PCP-4891-agentic-commercefrom
dev/PCP-5866-update-ec_token
May 12, 2026
Merged

Allow ReplaceCart endpoint to (re)create token (5866)#4356
stracker-phil merged 2 commits into
dev/PCP-4891-agentic-commercefrom
dev/PCP-5866-update-ec_token

Conversation

@stracker-phil

@stracker-phil stracker-phil commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Replaces #4136

Description

Until now, only the "Create Cart" endpoint could create a new PayPal order to inject a ec_token into the API response.

Problems:

  • When order creation failed, the session was permanently left without a token
  • When the session expired in the DB, the next replace-cart call would have no token

Here we add a new mechanism, allowing the "Replace Cart" endpoint to generate a new PayPal order, in case the current session has no token yet/anymore.

@stracker-phil stracker-phil changed the title ✨ Allow ReplaceCart endpoint to (re)create token Allow ReplaceCart endpoint to (re)create token (5866) May 12, 2026
@stracker-phil
stracker-phil merged commit 921e99c into dev/PCP-4891-agentic-commerce May 12, 2026
9 of 10 checks passed
@stracker-phil
stracker-phil deleted the dev/PCP-5866-update-ec_token branch May 12, 2026 19:09
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.

1 participant