---
title: PaymentSessionRedirectUserErrorCode - Payments Apps API
description: >-
  Possible error codes that can be returned by
  `PaymentSessionRedirectUserError`.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/payments-apps/latest/enums/PaymentSessionRedirectUserErrorCode
  md: >-
    https://shopify.dev/docs/api/payments-apps/latest/enums/PaymentSessionRedirectUserErrorCode.md
api_name: payments-apps
api_type: graphql
type: enum
---

# Payment​Session​Redirect​User​Error​Code

enum

Possible error codes that can be returned by `PaymentSessionRedirectUserError`.

## Valid values

* BUYER\_​ALREADY\_​REDIRECTED\_​BY\_​SHOPIFY

  Redirect request was received too late. The buyer has already been redirected by Shopify.

* INVALID\_​STATE\_​TRANSITION

  The state transition is invalid.

* PAYMENT\_​SESSION\_​NOT\_​FOUND

  Payment session not found.

* REDIRECT\_​NOT\_​SUPPORTED\_​FOR\_​CREDIT\_​CARD

  The credit card payments app extension is not configured properly to support redirection flow.

* REDIRECT\_​NOT\_​SUPPORTED\_​FOR\_​OFFSITE

  Redirect is not expected for offsite payments processing flow.

* REDIRECT\_​NOT\_​SUPPORTED\_​FOR\_​ONSITE

  Redirect is not expected for onsite payments processing flow.

***

## Fields

* [Payment​Session​Redirect​User​Error.code](https://shopify.dev/docs/api/payments-apps/latest/objects/PaymentSessionRedirectUserError#field-PaymentSessionRedirectUserError.fields.code)

  OBJECT

  An error that occurs during the execution of `PaymentSessionRedirect`.

***

## Map

### Fields with this enum

* [Payment​Session​Redirect​User​Error.code](https://shopify.dev/docs/api/payments-apps/latest/objects/PaymentSessionRedirectUserError#field-PaymentSessionRedirectUserError.fields.code)
