Kaduno Checkout Journey (kaduno-checkout-journey)
Summary
Outside test purchase on a Kaduno store every 15 min: product → cart → checkout → monitor buyer → payment method → provider page, then stop (never pays). CRITICAL after 2 failed runs in a row.
Classification
- Category:
ECOMMERCE - Plugin id:
kaduno-checkout-journey - Version:
1.0.0 - Target types:
WEBSHOP - Weight class:
MEDIUM - Risk level:
MEDIUM - Browser required: Yes (Playwright)
- Tier / group: Tier 3 — E-commerce / flows (Playwright)
Schedule
- scheduleHints:
{ defaultInterval: '*/15 * * * *', priority: 2 } - Prerequisites: None declared on this plugin.
Configurable inputs
Public keys are derived from inputSchema: z.object({ ... }) (underscore-prefixed keys are runtime-only and omitted here).
| Field | Notes |
|---|---|
| (none) | This plugin uses an empty z.object({}) or only internal wrappers — see inputSchema in the source file. |
Runtime / injected config
_secrets—KADUNO_SYNTHETIC_KEY(the store's API key with the scopemonitor:synthetic, sent as the cookiekd_syntheticon the store host only; Kaduno contract K-SHOP-8652),LOGIN_EMAIL/LOGIN_PASSWORDfor a store that sells to signed-in buyers only,KADUNO_PREVIEW_PASSWORDfor a preview store._priorRunMetrics—monitorStatecarries the failure streak and the payment-method rotation (readsPriorRunMetrics).- Without
KADUNO_SYNTHETIC_KEYa PRODUCTION target is skipped (unlessallowWithoutMonitorKey), and the order button is never pressed. - The store sets the key and switches the journey itself with Kaduno's «Connect teste.no monitor» (K-SHOP-8719), server to server through
PUT /api/sites/KSHOP/:storeId/synthetic-monitor(TESTE-NO-562); nobody pastes the key.
What it does
- Runs as part of the worker test execution pipeline; results become
Runrows and may createFindingrecords. - Outside test purchase on a Kaduno store every 15 min: product → cart → checkout → monitor buyer → payment method → provider page, then stop (never pays). CRITICAL after 2 failed runs in a row.
- Uses the shared
passKadunoPreviewGateto exchange target Secrets VaultKADUNO_PREVIEW_PASSWORD(run Basic password fallback) at most once per run via/api/staging-auth, after a gated entry preflight; password and__kaduno_staging_authare redacted, HTTP uses the exact HTTPS origin, and local/remote browser contexts install a secure host-only cookie before their first page. If the storefront lands on/staging-login, the journey reuses that attempt, installs the cookie and reloads the storefront; missing/refused passwords or an unavailable handshake skip measurement with vault-key advice (refused says refused), without advancing the failure streak.
Source
packages/test-plugins/src/plugins/kaduno-checkout-journey.ts