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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
export function formatDuration(seconds) {
if(!Number.isFinite(Number(seconds))||Number(seconds)<0)return '—';
const total=Math.round(Number(seconds)),hours=Math.floor(total/3600),minutes=Math.floor(total%3600/60),remaining=total%60;
return [hours?`${hours} hr`:'',minutes?`${minutes} min`:'',remaining||!total?`${remaining} sec`:''].filter(Boolean).join(' ');
}