I’m facing an issue with my custom Shopify credit card payment app. After completing the 3D Secure authentication challenge, I send the paymentSessionReject mutation with the appropriate rejection reason. The mutation executes successfully, and the payment session is marked as REJECTED. However, the nextAction field in the response is null, and Shopify does not automatically redirect the customer back to the checkout page.
Details:
- The paymentSessionReject mutation response includes {“nextAction”:null}.
- As a result, the customer remains stuck on the 3D Secure page without being redirected to the Shopify checkout.
{“data”:{“paymentSessionReject”:{“paymentSession”:{“id”:“gid://shopify/PaymentSession/XXXXXX3B8b62kGUm”,“state”:{“code”:“REJECTED”,“reason”:“PROCESSING_ERROR”,“merchantMessage”:“3DSecure authentication rejected”},“nextAction”:null},“userErrors”:}}}