S SmartDocs
Série: Go go 11 linhas · Atualizado 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).
)

Artigos relacionados