--- title: PaymentSessionNextActionContext - Payments Apps API description: The context required to perform an action. api_version: 2025-01 api_name: payments-apps type: union api_type: graphql source_url: html: https://shopify.dev/docs/api/payments-apps/2025-01/unions/PaymentSessionNextActionContext md: https://shopify.dev/docs/api/payments-apps/2025-01/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/2025-01/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/2025-01/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/2025-01/objects/PaymentSessionNextAction#field-context) OBJECT The next action that is expected of the Partner after the payment is finalized. *** ```graphql union PaymentSessionNextActionContext = PaymentSessionActionsRedirect ```