Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

456 B
Raw Blame
const activeStatuses=['starting','running','pausing','paused','cancelling'];
export function recordingFinished(job) {
 return job?.command==='load'&&job.progress?.control?.state==='completed';
}
export function runJobPresentation(jobStatus,recording) {
 const cleanupPending=activeStatuses.includes(jobStatus)&&recording?.recording_state==='complete'&&Boolean(recording?.ended_at);
 return {jobStatus:cleanupPending?'complete':jobStatus,cleanupPending};
}