Skip to main content
Anchor to paymentSessionPending

paymentSessionPending

mutation

Requires write_payment_sessions access scope.

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.

•ID!
required

The payment session ID.

•DateTime!
required

The date and time when the pending payment expires, recommended to be within 3 days.

•PaymentSessionStatePendingReason!
required

The reason the payment is pending.


Was this section helpful?

Anchor to PaymentSessionPendingPayload returnsPaymentSessionPendingPayload returns

•PaymentSession

The updated payment session.

•[PaymentSessionPendingUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?