Hi Shopify Support team,
We are seeing unexpected behavior after a PayPay payment on our store and would like to understand whether it is intended, and if it can be turned off.
Payment method: PayPay via SBPS (SoftBank Payment Service) offsite payment app
Steps to reproduce
- Customer goes to checkout in the mobile browser and selects PayPay, then Pay
- Customer is sent to the PayPay app and completes the payment.
- After payment, the PayPay app opens a webview. SBPS redirects back to Shopify:
/checkouts/sessions/checkout-completion/redirect?_t=…
Observed behavior
- 1st request to checkout-completion/redirect: Shopify returns a 302 redirect to https://shop.app/pay/remember-me?client_id=...&state=… and that page returns a 400 error in the PayPay webview.
- 2nd request to the same checkout-completion/redirect URL right after: the customer is redirected correctly to /checkouts/cn/{token}/ja-jp/processing?completed=true and then to the Thank you page.
- About 3 minutes later, opening the same checkout-completion/redirect URL again redirects to shop.app/pay/remember-me again.
Expected behavior
After a successful payment, checkout-completion/redirect should always send the customer to the processing / Thank you page, without going through shop.app/pay/remember-me.
Questions
- Is the redirect to shop.app/pay/remember-me on checkout-completion/redirect intended behavior? Under what conditions is it triggered?
- Why does the 1st request go to remember-me while an immediate 2nd request goes to processing? Is there a session or cookie set by the 1st request that expires after a few minutes?
- Is there a store setting or checkout parameter to disable the Shop Pay remember-me step for this flow (or for all checkouts)?
- If it cannot be disabled, what is the recommended way to handle this when the return URL opens in a third-party app webview (PayPay), where shop.app returns 400?
Thank you for your help.