fix: use private helcimApiToken for all server-side Helcim API calls
This commit is contained in:
parent
ccd1d0783a
commit
d31b5b4dac
53 changed files with 1755 additions and 572 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue