mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 09:58:12 +00:00
feat: ( payment ) create payment microservice
This commit is contained in:
15
apps/edr-payment-api/src/config/notifier.config.ts
Normal file
15
apps/edr-payment-api/src/config/notifier.config.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { registerAs } from "@nestjs/config";
|
||||
|
||||
export default registerAs("notifier", () => ({
|
||||
/** mark-paid callback URL per owning service (PaymentService discriminator routes here). */
|
||||
passengerUrl:
|
||||
process.env.PAYMENT_NOTIFY_PASSENGER_URL ??
|
||||
"http://localhost:3002/internal/payments/mark-paid",
|
||||
freightUrl:
|
||||
process.env.PAYMENT_NOTIFY_FREIGHT_URL ??
|
||||
"http://localhost:3001/internal/payments/mark-paid",
|
||||
relayIntervalMs: parseInt(process.env.OUTBOX_RELAY_INTERVAL_MS ?? "5000", 10),
|
||||
maxAttempts: parseInt(process.env.OUTBOX_MAX_ATTEMPTS ?? "10", 10),
|
||||
httpTimeoutMs: parseInt(process.env.NOTIFY_HTTP_TIMEOUT_MS ?? "10000", 10),
|
||||
relayBatchSize: parseInt(process.env.OUTBOX_RELAY_BATCH_SIZE ?? "20", 10),
|
||||
}));
|
||||
Reference in New Issue
Block a user