feat: add return_url for post-handoff buyer return#398
feat: add return_url for post-handoff buyer return#398sioked wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Adds return_url as an optional request field on checkout sessions, providing a platform-specified destination for the buyer after completing or exiting a hosted checkout UI (reached via continue_url). The redirecting party appends ?status=completed or ?status=canceled as a routing hint. Platforms should verify actual session state independently. Includes open redirect security guidance recommending businesses validate return_url against known platform origins before redirecting.
|
Thanks @sioked for raising the PR! Are there any linked issues/discussion threads that describe this issue a bit more? Personally I'm having some hard time gauging whether this concept of
Also a general callout - |
Summary
return_urlas an optional request field (create/update) on checkout sessionscontinue_url?status=completedor?status=canceledas a routing hint; platforms should verify actual session state independently via the checkout session APIreturn_urlagainst known platform origins before redirectingMotivation
continue_urlhandles the outbound handoff — business sends buyer to hosted UI.return_urlcloses the loop — business sends buyer back to the platform after the hosted experience ends. Without it, there is no standard mechanism for a platform to receive the buyer back after a hosted checkout or payment handler redirect.Category
Checklist