add status api
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-22 12:42:31 +05:00
1 parent ac94e0dd8a
commit f2b55f9896
4 files changed
+76 -99

No files matched your search

@@ -33,4 +33,10 @@ type Repository interface {
// HandleCallback verifies a payment attempt's real outcome with GBÜS
// (never trusting the callback request itself) and finalizes it.
HandleCallback(ctx context.Context, paymentID int64) (PaymentResultDTO, error)
// Status re-checks the order's latest payment attempt the same way
// HandleCallback does - for the frontend to call (authenticated,
// order-scoped) when it can't rely on GBÜS having redirected the
// browser back to the callback, e.g. the user closed the hosted
// payment page before the redirect fired.
Status(ctx context.Context, orderID int64) (PaymentResultDTO, error)
}