--- title: PaymentSessionRedirectUserErrorCode - Payments Apps API description: Possible error codes that can be returned by `PaymentSessionRedirectUserError`. api_version: 2025-01 api_name: payments-apps type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/payments-apps/2025-01/enums/PaymentSessionRedirectUserErrorCode md: https://shopify.dev/docs/api/payments-apps/2025-01/enums/PaymentSessionRedirectUserErrorCode.md --- # 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/2025-01/objects/PaymentSessionRedirectUserError#field-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/2025-01/objects/PaymentSessionRedirectUserError#field-code)