use descriptive top-level message for direct payments

Keep provider-specific details in data.message and return a stable, human-readable top-level success message for /payments/direct responses.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Yared Yemane 2026-05-07 09:26:07 -07:00
parent 0983589e36
commit 9a17f0b3c4

View File

@ -350,7 +350,7 @@ func (h *Handler) InitiateDirectPayment(c *fiber.Ctx) error {
} }
return c.JSON(domain.Response{ return c.JSON(domain.Response{
Message: result.Message, Message: "Direct payment initiated successfully",
Data: result, Data: result,
}) })
} }