From 245fa243d792f7c6b3feb38d6bf1a30dbf952528 Mon Sep 17 00:00:00 2001 From: relayhop Date: Sun, 3 May 2026 17:50:48 +0800 Subject: [PATCH] feat(payments): include sol_price_usd in GET /payments/:id The widget polls GET /payments/:id for status; previously sol_price_usd was only returned on creation, so the widget had to make a separate /api/price/sol call. Including it here lets the widget read the price directly from the payment object (matching the issue's expected behavior), saving one HTTP roundtrip per checkout. Refs Cypher-CP0/fluxpay#1 --- src/routes/payments.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/payments.ts b/src/routes/payments.ts index 8a96584..0e62749 100644 --- a/src/routes/payments.ts +++ b/src/routes/payments.ts @@ -93,6 +93,7 @@ export async function paymentRoutes(app: FastifyInstance) { status: payment.status, expires_at: payment.expires_at, created_at: payment.created_at, + sol_price_usd: await getSolPrice(), }) } )