We’re building a ChatGPT App (MCP) that uses external/redirect checkout: the user goes to Stripe’s hosted Checkout via the URL we return from our tool, then Stripe redirects to a success_url we set when creating the session.
We’d like the user to land back in the same ChatGPT conversation after payment, not just on the ChatGPT home page.
-
Is there a supported URL or query parameter (e.g. conversation id, session id, or deep link) we should use as success_url so the client opens that conversation again?
-
When the widget calls openExternal({ href: checkoutUrl }), the host may append ?redirectUrl=… to the link. Is that value available to the app/MCP server (e.g. in tool calls or metadata) so we can pass it as our Stripe success_url and then redirect the user there from our success page? If not, is there another supported way to obtain a “return to this conversation” URL for the redirect flow?
We’re using the Apps SDK with redirect checkout (Stripe Checkout Session URL). Thanks for any guidance.