# paymentSessionPending - payments-apps - MUTATION Version: 2024-10 ## Description Change a payment session status to pending. Upon receiving the response from the `PaymentSessionPending` mutation, you must redirect the customer back to Shopify, using `redirectUrl` in `nextAction`. Upon completion, pending payments must be finalized into either a successful or failed state using the `paymentSessionResolve` or `paymentSessionReject` mutations. Both `sale` and `authorization` payments can be marked as pending. ### Access Scopes `write_payment_sessions` access scope. ## Arguments * [id](/docs/api/payments-apps/2024-10/scalars/ID): ID! - The payment session ID. * [pendingExpiresAt](/docs/api/payments-apps/2024-10/scalars/DateTime): DateTime! - The date and time when the pending payment expires, recommended to be within 3 days. * [reason](/docs/api/payments-apps/2024-10/enums/PaymentSessionStatePendingReason): PaymentSessionStatePendingReason! - The reason the payment is pending. ## Returns * [paymentSession](/docs/api/payments-apps/2024-10/objects/PaymentSession): PaymentSession The updated payment session. * [userErrors](/docs/api/payments-apps/2024-10/objects/PaymentSessionPendingUserError): PaymentSessionPendingUserError! The list of errors that occurred from executing the mutation. ## Examples