add status api
This commit is contained in:
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)
|
||||
}
|
||||
Reference in new issue
Block a user