Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrConfigurationInvalid indicates invalid configuration ErrConfigurationInvalid = errors.New("configuration is invalid") // ErrProviderNotFound indicates provider not found ErrProviderNotFound = errors.New("payment provider not found") ErrProviderUnavailable = errors.New("payment provider unavailable") // ErrInvalidCredentials indicates invalid credentials ErrInvalidCredentials = errors.New("invalid credentials") // ErrNetworkTimeout indicates network timeout ErrNetworkTimeout = errors.New("network timeout") // ErrRateLimitExceeded indicates rate limit exceeded ErrRateLimitExceeded = errors.New("rate limit exceeded") // ErrInvalidResponse indicates invalid response ErrInvalidResponse = errors.New("invalid response from provider") // ErrTransactionNotFound indicates transaction not found ErrTransactionNotFound = errors.New("transaction not found") // Additional errors for client API ErrInvalidConfig = errors.New("invalid configuration") ErrInvalidRequest = errors.New("invalid payment request") ErrInvalidProvider = errors.New("invalid payment provider type") ErrPaymentFailed = errors.New("payment processing failed") ErrAuthenticationFailed = errors.New("authentication failed") ErrNetworkError = errors.New("network error") ErrTimeout = errors.New("request timeout") )
Common error variables
Functions ¶
func IsAuthenticationError ¶
IsAuthenticationError checks if error is authentication related
func IsTemporaryError ¶
IsTemporaryError checks if an error is temporary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.