How to trigger an expired order status page?

We have a user who said our payment customization doesn’t work properly on the order status page when the order is expired.

It seems when a pending payment is expired, Shopify sends an email to the user, and he can pay in a separate checkout where he’s logged in.

I’ve tried to replicate these conditions, with Bogus Payment Method, but I’m not sure if this test payment ever expires.

Hi @David_Arbias

You’re right that the Bogus Gateway won’t help here, it processes payments immediately, so it never enters a “pending” state that could expire.

The “expired order status page” flow you’re describing happens specifically when a payment is marked as pending (via a payments app using the paymentSessionPending mutation) and then that pending payment expires without being resolved. When that happens, Shopify sends the customer an email with a link to complete payment, which opens a new checkout session where they can retry.

Will investigate if there’s a way to trigger this.

2 Likes