The payment step relied on a node-level timeout to release an abandoned checkout. Now that kessai expires a lapsed payment, drive it from the payment's own deadline instead.
PaymentWorkflowBridge::onExpired resumes the pinned step with a dedicated expired result, its own outcome distinct from the payer-driven ones, so the run takes its expiry path when the payer never returns.
The payment interaction gains a payment_timeout setting: a duration (seconds or an ISO 8601 duration like PT20M, parsed through orchestra's Duration), passed to kessai as the created payment's ttl. Empty uses the site default.
The example workflow drops its node timeout for the new setting and routes the expired outcome.
Depends on the kessai expiry event (kessai #3611872). Kernel-tested.
Issue fork orchestra-3611873
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedOpened merge request !357 against 1.x. Kernel-tested (the bridge resumes the step with the dedicated
expiredresult; the configuredpayment_timeoutbecomes the payment deadline). Depends on the kessai expiry event (kessai #3611872), so CI here goes green once that has landed in kessai 1.x-dev.Comment #5
mably commented