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

+9
View File
@@ -55,6 +55,15 @@ type PaymentInitResultDTO struct {
SuccessUrl string `json:"successUrl"`
}
// CallbackResultDTO is what the GBÜS callback responds with, once GBÜS
// redirects the browser back after payment. Paid reflects the verified
// server-to-server outcome (not merely that GBÜS redirected here), and Data
// is a Turkmen-language message describing the result for display.
type CallbackResultDTO struct {
Paid bool `json:"paid"`
Data string `json:"data"`
}
// PaymentResultDTO is one payout attempt's final, verified state, recorded
// as its own row in visa_master_order_payments (a full audit trail -
// failed attempts are kept, not overwritten by a retry) - deliberately not