fix: use private helcimApiToken for all server-side Helcim API calls

This commit is contained in:
Jennie Robinson Faber 2026-04-04 13:37:34 +01:00
parent ccd1d0783a
commit d31b5b4dac
53 changed files with 1755 additions and 572 deletions

View file

@ -239,12 +239,12 @@ export const useHelcimPay = () => {
// Clean up observer after a timeout
setTimeout(() => observer.disconnect(), 5000);
// Add timeout to clean up if no response
// Add timeout to clean up if no response (10 minutes for manual card entry)
setTimeout(() => {
console.log("60 seconds passed, cleaning up event listener...");
console.log("Payment timeout reached, cleaning up event listener...");
window.removeEventListener("message", handleHelcimPayEvent);
reject(new Error("Payment timeout - no response received"));
}, 60000);
}, 600000);
} else {
reject(new Error("appendHelcimPayIframe function not available"));
}