Przejdź do głównej zawartości

cartClearPaymentSelection

Clear all payment selection state on the cart in a single atomic operation. Use for accordion "back to method picker" flows in the storefront UI. Idempotent — calling twice yields the same end state. The cart must be ACTIVE (CONVERTED carts reject with ALREADY_COMPLETED).

cartClearPaymentSelection(
input: CartClearPaymentSelectionInput!
): CartClearPaymentSelectionPayload!

Arguments

cartClearPaymentSelection.input ● CartClearPaymentSelectionInput! non-null input

Cart UUID to clear all payment selection state (method, provider, instrument)

Type

CartClearPaymentSelectionPayload object

Result of cartClearPaymentSelection. cart is populated on success with cleared selection fields (selectedPaymentMethod === null, selectedPaymentInstrument === null). userErrors is populated when the cart is locked (CONVERTED status → ALREADY_COMPLETED code).