Payment APIs
Query a payment session and its status. You can use the mutations to reject, pend, or resolve a payment session.
In this section
Anchor link to section titled "In this section"paymentSessionPending — Change a payment session status to pending. Upon receiving the response from the
PaymentSessionPending
mutation, you must redirect the customer back to Shopify, usingredirectUrl
innextAction
. Upon completion, pending payments must be finalized into either a successful or failed state using thepaymentSessionResolve
orpaymentSessionReject
mutations. Bothsale
andauthorization
payments can be marked as pending.paymentSessionReject — Rejects an open payment session. After the
paymentSessionReject
mutation completes on a given payment session, anypaymentSessionResolve
mutation attempts will fail. SubsequentpaymentSessionReject
mutation attempts will succeed, but theRejectionReasonInput
argument will be ignored.paymentSessionResolve — Resolves an open payment session. After the
paymentSessionResolve
mutation completes on a given payment session, anypaymentSessionReject
mutation attempts will fail. SubsequentpaymentSessionResolve
mutation attempts will succeed, but theDetails
argument will be ignored.