From 979a0ac9173f6fe7b8a44a8bef0311fbdba1569a Mon Sep 17 00:00:00 2001 From: Stephan D Date: Tue, 3 Feb 2026 17:49:10 +0100 Subject: [PATCH] improved message handling --- api/gateway/mntx/internal/service/gateway/card_processor.go | 1 + .../internal/service/orchestrator/payment_plan_card.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/api/gateway/mntx/internal/service/gateway/card_processor.go b/api/gateway/mntx/internal/service/gateway/card_processor.go index cdd6d3cc..4b106b9c 100644 --- a/api/gateway/mntx/internal/service/gateway/card_processor.go +++ b/api/gateway/mntx/internal/service/gateway/card_processor.go @@ -90,6 +90,7 @@ func (p *cardPayoutProcessor) Submit(ctx context.Context, req *mntxv1.CardPayout PayoutID: strings.TrimSpace(req.GetPayoutId()), OperationRef: strings.TrimSpace(req.GetOperationRef()), IdempotencyKey: strings.TrimSpace(req.GetIdempotencyKey()), + IntentRef: strings.TrimSpace(req.GetIntentRef()), ProjectID: projectID, CustomerID: strings.TrimSpace(req.GetCustomerId()), AmountMinor: req.GetAmountMinor(), diff --git a/api/payments/orchestrator/internal/service/orchestrator/payment_plan_card.go b/api/payments/orchestrator/internal/service/orchestrator/payment_plan_card.go index a0d9c7c8..2a0eb08a 100644 --- a/api/payments/orchestrator/internal/service/orchestrator/payment_plan_card.go +++ b/api/payments/orchestrator/internal/service/orchestrator/payment_plan_card.go @@ -113,6 +113,8 @@ func (p *paymentExecutor) submitCardPayoutPlan(ctx context.Context, payment *mod MaskedPan: strings.TrimSpace(card.MaskedPan), Metadata: meta, OperationRef: operationRef, + IntentRef: payment.Intent.Ref, + IdempotencyKey: payment.IdempotencyKey, } resp, err := p.deps.mntx.client.CreateCardTokenPayout(ctx, req) if err != nil { @@ -139,6 +141,9 @@ func (p *paymentExecutor) submitCardPayoutPlan(ctx context.Context, payment *mod CardExpMonth: card.ExpMonth, CardHolder: holder, Metadata: meta, + OperationRef: operationRef, + IntentRef: payment.Intent.Ref, + IdempotencyKey: payment.IdempotencyKey, } resp, err := p.deps.mntx.client.CreateCardPayout(ctx, req) if err != nil { -- 2.49.1