feat: ( payment ) create payment microservice

This commit is contained in:
Abubeker Yasin
2026-06-11 15:25:24 +03:00
parent 3235567b41
commit 2b430f8e76
54 changed files with 2809 additions and 0 deletions

View 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),
}));