系列: Go
go
11 行
· 更新于 2026-04-18
status.go
Go/payment-gateway-challenge/internal/domain/status.go
// Package domain holds shared constants and types for the payment gateway
// boundary. Keeping status strings in one place avoids typos between HTTP,
// persistence, and tests.
package domain
// Payment lifecycle statuses returned to merchants (Checkout.com challenge spec).
const (
StatusAuthorized = "Authorized"
StatusDeclined = "Declined"
StatusRejected = "Rejected" // Only returned on POST when validation fails (no bank call).
)
相关文章
Go
go
更新于 2026-04-18
main.go
main.go — go source code from the Go learning materials (Go/Baasid/cmd/hashpw/main.go).
阅读文章 →
Go
go
更新于 2026-04-18
main.go
main.go — go source code from the Go learning materials (Go/Baasid/cmd/server/main.go).
阅读文章 →
Go
go
更新于 2026-04-18
docs.go
docs.go — go source code from the Go learning materials (Go/Baasid/docs/docs.go).
阅读文章 →
Go
go
更新于 2026-04-18
jwt.go
jwt.go — go source code from the Go learning materials (Go/Baasid/internal/auth/jwt.go).
阅读文章 →
Go
go
更新于 2026-04-18
password.go
password.go — go source code from the Go learning materials (Go/Baasid/internal/auth/password.go).
阅读文章 →
Go
go
更新于 2026-04-18
password_test.go
password_test.go — go source code from the Go learning materials (Go/Baasid/internal/auth/password_test.go).
阅读文章 →