Defines polling configuration for QR payment modal, specifying interval, timeout, and allowed payer roles.
// Source: https://github.com/intelligo-dev/intelligo | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. /** * Polling behaviour for the QR payment modal — consumer-owned. * * `pollIntervalMs`: how often to ask the provider whether the invoice * settled. Three seconds is a compromise: fast enough that the success * screen feels immediate, slow enough not to hammer a provider that * rate-limits status reads. * * `timeoutMs`: when to stop asking and offer a retry instead. Five * minutes is long enough for someone to switch apps, log into their * bank, and confirm — the common case that a shorter timeout would * cut off mid-payment. * * `payerRoles`: who in a workspace may ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key