improved logging for creditcall payment processing

This commit is contained in:
yurii 2025-11-13 16:06:31 +00:00
parent f4f44da541
commit bb526a248d
3 changed files with 10 additions and 7 deletions

View File

@ -23,7 +23,7 @@ import (
)
const (
buildVersion = "1.0.22"
buildVersion = "1.0.24"
serviceName = "hardlink"
)

View File

@ -297,11 +297,11 @@ func buildSuccessURL(result map[string]string) string {
func BuildFailureURL(msgType, description string) string {
q := url.Values{}
if msgType == "" {
msgType = ResultError
if msgType != "" {
description = fmt.Sprintf("Transaction %s", strings.ToLower(msgType))
}
if description == "" {
description = "Transaction failed"
if description != "" {
msgType = ResultError
}
log.WithFields(log.Fields{LogFieldError: msgType, LogFieldDescription: description}).

View File

@ -2,10 +2,13 @@
builtVersion is a const in main.go
#### 1.0.23 - 20 October 2025
#### 1.0.24 - 13 November 2025
improved logging for creditcall payment processing
#### 1.0.23 - 13 November 2025
moved handlers from main.go to handlers/handlers.go
#### 1.0.22 - 20 October 2025
#### 1.0.22 - 13 November 2025
added test mode into config file to allow testing without connecting to the dispenser
#### 1.0.21 - 20 October 2025