First visit to checkout-completion redirects to shop.app remember-me and returns 400

Hi,

Store: Shopify Plus, Shop Pay enabled, new customer accounts.
Payment: PayPay via SBPS (offsite).

Our mobile app shows the checkout in a WebView. The buyer choose PayPay and pays in the PayPay app. The payment goes through and the order is created. After that, the PayPay app opens the device’s external browser (Safari or Chrome) on SBPS’s completion page, and SBPS then redirects the buyer to:

{store}/checkouts/sessions/checkout-completion/redirect?_t=...

Here’s what we see, and it’s reproducible:

  • First visit: checkout-completion/redirect returns a 302 to shop.app/pay/remember-me?..., and that page returns a 400.
  • Second visit (same URL, opened again right after): checkout-completion/redirect returns a 302 to /checkouts/cn/{token}/processing, and the thank you page loads fine.
  • After about 5 minutes with no access: it behaves like a first visit again. It redirects to remember-me and returns a 400.

The second visit works even from a fresh browser with no cookies, a different IP, or a different User-Agent. So it looks like the state is kept server-side, per checkout, for a few minutes.

The result is that buyers see a 400 error even though their order is already completed.

Questions:

  1. Is this expected? What triggers the redirect to remember-me on the first visit?
  2. Why does remember-me return 400 here, and could it fall back to the thank you page instead?

Thanks!

Hi @vy_duong1

To understand why the first visit returns a 400 while the next succeeds, we’ll need to look at an affected checkout. The best next step is to contact Shopify Support while signed in to your Partner account.

Please link this thread so we have the details of what you’ve already tested, and include the affected store, an example order, and when it happened. If you have captures of the failed and successful redirects, those would be helpful too.

That will let us investigate the specific checkout privately. Make sure to keep any full checkout URLs and network captures in the Support conversation.

Hi @Yoni-Shopify, following up here as my new topic was closed and I was asked to continue in this thread.

I re-tested the same flow (Shopify Plus, Shop Pay + new customer accounts, PayPay via SBPS offsite, return URL opened in the PayPay app WebView) and can still reproduce it:

  1. 1st visit to /checkouts/sessions/checkout-completion/redirect → 302 to shop.app/pay/remember-me → 400 in the WebView.
  2. 2nd visit to the same URL right after → 302 to /checkouts/cn/{token}/processing?completed=true → Thank you page loads.
  3. Opening the same URL again after ~3 minutes → back to shop.app/pay/remember-me.

New question:
1. Is this redirect to shop.app/pay/remember-me on checkout-completion intended Shopify behavior? If so, what triggers it, and why does an immediate 2nd visit skip it while it comes back after a few minutes?

2. If it is intended, is there a store setting or checkout parameter to disable the remember-me step after an offsite payment (while keeping Shop Pay as a payment method), so checkout-completion always goes straight to the processing / Thank you page?

Thanks!

Hi @vy_duong1

The redirect is part of saving a buyer’s information with Shop Pay, which can also happen when they pay through another method such as PayPay. It should then return them to checkout. Ending on a 400 page isn’t the intended outcome.

Shopify temporarily records that the redirect was attempted for that checkout, even if the next page fails. That matches the roughly three-minute retry behavior you described: an immediate retry can skip the step until that record expires.

There’s no merchant-facing toggle for this, and I haven’t found a supported checkout parameter that always bypasses it while keeping Shop Pay enabled. Support can review disabling automatic opt-in, but that wouldn’t prevent the flow when a buyer explicitly chooses to save their information.

For the 400, does the failing redirect include an authorization parameter alongside client_id and state? Your shortened example only showed the latter two, and a missing authorization parameter could explain the error. Please only confirm whether it’s present; keep its value and the full URL private.

Thanks for the explanation

For the 400, does the failing redirect include an authorization parameter alongside client_id and state? Your shortened example only showed the latter two, and a missing authorization parameter could explain the error. Please only confirm whether it’s present; keep its value and the full URL private.

To confirm: the failing redirect does not include an authorization parameter, only client_id and state.

And i have a few follow-up questions:

  1. What determines whether authorization is added to the remember-me redirect? Could it be missing because the return URL is opened in a third-party app WebView (PayPay) instead of the browser where checkout started, so there is no checkout/Shop session there?

2. Do you know when this “Save my information for next time” block appears (screenshot attached)? With the same account, we sometimes see it and sometimes don’t.

The authorization parameter depends on the Shop Pay session information available when the buyer returns to Shopify. PayPay’s WebView may have different session information from the browser where checkout started, but I haven’t confirmed whether that explains the missing parameter here.

The “Save my information for next time” block can be hidden when checkout has already identified the buyer as a Shop Pay user. That identification and other checkout conditions can vary between sessions, even when the same store customer account is used.

Thank you very much for your help and clarification!

Regarding your previous point about disabling automatic opt-in, I have a few questions I’d like to confirm:

  1. If automatic opt-in is disabled for our store’s checkout, will this only prevent the automatic opt-in prompt from appearing during checkout, while keeping Shop Pay enabled?

  2. Can customers still create a Shop account and save their information directly through the Shop app (shop.app), independently of our store’s checkout? If so, could you please clarify how customers can opt in and save their information through the Shop app after automatic opt-in is disabled?

Our goal is to prevent the automatic opt-in prompt during checkout so that customers are not redirected to shop.app/pay/remember-me from the /checkout-completion page after completing their payment. At the same time, we’d like to keep Shop Pay enabled and allow customers to save their information if they choose to.

Disabling automatic opt-in would keep Shop Pay enabled, but it wouldn’t remove the “Save my information” option. Customers would need to select Save to opt in. Choosing to save their information at checkout can still trigger the Remember Me redirect after payment.

Yes, customers can also set up Shop Pay separately in the Shop mobile app, regardless of your store’s automatic opt-in setting. They can create a Shop account using their email, then go to Account → Set up Shop Pay, verify their mobile number, and save their shipping address and card details. The full steps are in Set up Shop Pay.