Troubleshooting

After checkout the buyer’s system shows a login page

The shopper clicks to return the cart, your form posts, and instead of the requisition they see their own procurement system’s sign-in page or a session-expired message. The cart is lost.

Short answer

The form post did arrive; the buyer’s system just did not recognise the shopper. The return is a cross-site POST from your domain to theirs, and browsers withhold cookies marked SameSite=Lax or Strict on cross-site POSTs. Check two things on your side first — that you post to the exact HTTPS BrowserFormPost URL, and that the form targets the window the buyer opened you in — then raise the cookie question with the buyer.

Causes, most likely first

Ordered by how often each one turns out to be the culprit, not by how interesting it is. Work down the list.

  1. The form posts inside your frame instead of the buyer’s window

    How to confirm: The buyer’s login page appears inside the area where your catalogue was, rather than replacing the whole screen. Their page is now loading as a third-party frame, so their own cookies are withheld.

    Fix: Set the form target to _top when you were framed, or to the opener window when you were launched in a new one. Their requisition page needs to load in their own top-level context.

  2. The return URL was changed from HTTPS to HTTP, or otherwise rewritten

    How to confirm: Compare the action attribute on your form with the BrowserFormPost URL in the setup request, character by character. An HTTP version gets redirected to HTTPS, and browsers follow a 301 or 302 on a POST by switching to GET, which drops the cart body.

    Fix: Post to the URL exactly as received. Do not normalise the scheme, host or query string.

  3. The buyer’s session cookie is not sent on a cross-site POST

    How to confirm: In the browser’s developer tools, inspect the POST to the buyer domain and look at which cookies were attached. Chrome treats cookies with no SameSite attribute as Lax, which keeps them off cross-site POSTs. If the buyer’s session cookie is missing from that request, this is the cause.

    Fix: This is the buyer’s configuration, not yours. Their platform team needs the session cookie on the return path to be SameSite=None; Secure, or a return endpoint that does not depend on it. Send them the evidence from developer tools.

  4. The buyer’s session genuinely expired

    How to confirm: The failure only happens after long shopping sessions and the shopper sees an explicit session-expired message rather than a plain login form.

    Fix: Nothing to change on your side. Warn shoppers on long sessions, and keep the basket so they can return it after signing back in.

If it is not on your side

Send the buyer a capture of the return POST from browser developer tools: the request URL, the cookies attached, and the response. Whether their session cookie was present on that request answers the question in one screen.

Check the document itself

Before chasing “After checkout the buyer’s system shows a login page” further, paste the cXML or OCI payload into our free tester. It runs in your browser and reports the structural problems buyers reject on. The interactive demo plays the whole round trip from the buyer's seat.

Open the tester Play the demo

Related questions

Why does it work when the shopper is quick?

Browsers have at times made short-lived exceptions for very new cookies, which can let a quick test pass where a real shopping session fails. Do not rely on them: cookies that must survive the cross-site return need SameSite=None; Secure.

Can we keep the cart if the return fails?

Yes, and you should. Keep the basket against the session until the buyer’s system has had it, so the shopper can sign back in and return it without starting again.

Rather not be the one debugging this?

A free PunchOut shop runs the PunchOut round trip for you: upload from Excel, test it, invite your buyer.

Start free Send us the error