Merge pull request 'improved message handling' (#402) from mntx-401 into main
Some checks failed
ci/woodpecker/push/billing_documents Pipeline failed
ci/woodpecker/push/bff Pipeline failed
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/discovery Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/gateway_chain Pipeline was successful
ci/woodpecker/push/gateway_mntx Pipeline was successful
ci/woodpecker/push/gateway_tgsettle Pipeline was successful
ci/woodpecker/push/gateway_tron Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
Some checks failed
ci/woodpecker/push/billing_documents Pipeline failed
ci/woodpecker/push/bff Pipeline failed
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/discovery Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/gateway_chain Pipeline was successful
ci/woodpecker/push/gateway_mntx Pipeline was successful
ci/woodpecker/push/gateway_tgsettle Pipeline was successful
ci/woodpecker/push/gateway_tron Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
Reviewed-on: #402
This commit was merged in pull request #402.
This commit is contained in:
@@ -90,6 +90,7 @@ func (p *cardPayoutProcessor) Submit(ctx context.Context, req *mntxv1.CardPayout
|
|||||||
PayoutID: strings.TrimSpace(req.GetPayoutId()),
|
PayoutID: strings.TrimSpace(req.GetPayoutId()),
|
||||||
OperationRef: strings.TrimSpace(req.GetOperationRef()),
|
OperationRef: strings.TrimSpace(req.GetOperationRef()),
|
||||||
IdempotencyKey: strings.TrimSpace(req.GetIdempotencyKey()),
|
IdempotencyKey: strings.TrimSpace(req.GetIdempotencyKey()),
|
||||||
|
IntentRef: strings.TrimSpace(req.GetIntentRef()),
|
||||||
ProjectID: projectID,
|
ProjectID: projectID,
|
||||||
CustomerID: strings.TrimSpace(req.GetCustomerId()),
|
CustomerID: strings.TrimSpace(req.GetCustomerId()),
|
||||||
AmountMinor: req.GetAmountMinor(),
|
AmountMinor: req.GetAmountMinor(),
|
||||||
|
|||||||
@@ -113,6 +113,8 @@ func (p *paymentExecutor) submitCardPayoutPlan(ctx context.Context, payment *mod
|
|||||||
MaskedPan: strings.TrimSpace(card.MaskedPan),
|
MaskedPan: strings.TrimSpace(card.MaskedPan),
|
||||||
Metadata: meta,
|
Metadata: meta,
|
||||||
OperationRef: operationRef,
|
OperationRef: operationRef,
|
||||||
|
IntentRef: payment.Intent.Ref,
|
||||||
|
IdempotencyKey: payment.IdempotencyKey,
|
||||||
}
|
}
|
||||||
resp, err := p.deps.mntx.client.CreateCardTokenPayout(ctx, req)
|
resp, err := p.deps.mntx.client.CreateCardTokenPayout(ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -139,6 +141,9 @@ func (p *paymentExecutor) submitCardPayoutPlan(ctx context.Context, payment *mod
|
|||||||
CardExpMonth: card.ExpMonth,
|
CardExpMonth: card.ExpMonth,
|
||||||
CardHolder: holder,
|
CardHolder: holder,
|
||||||
Metadata: meta,
|
Metadata: meta,
|
||||||
|
OperationRef: operationRef,
|
||||||
|
IntentRef: payment.Intent.Ref,
|
||||||
|
IdempotencyKey: payment.IdempotencyKey,
|
||||||
}
|
}
|
||||||
resp, err := p.deps.mntx.client.CreateCardPayout(ctx, req)
|
resp, err := p.deps.mntx.client.CreateCardPayout(ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user