--- title: PaymentSessionNextActionContext - Payments Apps API description: The context required to perform an action. api_version: 2025-10 api_name: payments-apps type: union api_type: graphql source_url: html: >- https://shopify.dev/docs/api/payments-apps/latest/unions/PaymentSessionNextActionContext md: >- https://shopify.dev/docs/api/payments-apps/latest/unions/PaymentSessionNextActionContext.md --- # Payment​Session​Next​Action​Context union Requires `read_payment_sessions` access scope. The context required to perform an action. ## Possible types * [Payment​Session​Actions​Redirect](https://shopify.dev/docs/api/payments-apps/latest/objects/PaymentSessionActionsRedirect) OBJECT The payload required to redirect the customer to the shop after payment is finalized. * redirect​Url [URL!](https://shopify.dev/docs/api/payments-apps/latest/scalars/URL) non-null The URL of the checkout that's used to redirect the customer. *** ## Fields with this union * [Payment​Session​Next​Action.context](https://shopify.dev/docs/api/payments-apps/latest/objects/PaymentSessionNextAction#field-PaymentSessionNextAction.fields.context) OBJECT The next action that is expected of the Partner after the payment is finalized. *** ```graphql union PaymentSessionNextActionContext = PaymentSessionActionsRedirect ```