improved logging for creditcall payment processing
This commit is contained in:
parent
f4f44da541
commit
bb526a248d
2
main.go
2
main.go
@ -23,7 +23,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
buildVersion = "1.0.22"
|
buildVersion = "1.0.24"
|
||||||
serviceName = "hardlink"
|
serviceName = "hardlink"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -297,11 +297,11 @@ func buildSuccessURL(result map[string]string) string {
|
|||||||
|
|
||||||
func BuildFailureURL(msgType, description string) string {
|
func BuildFailureURL(msgType, description string) string {
|
||||||
q := url.Values{}
|
q := url.Values{}
|
||||||
if msgType == "" {
|
if msgType != "" {
|
||||||
msgType = ResultError
|
description = fmt.Sprintf("Transaction %s", strings.ToLower(msgType))
|
||||||
}
|
}
|
||||||
if description == "" {
|
if description != "" {
|
||||||
description = "Transaction failed"
|
msgType = ResultError
|
||||||
}
|
}
|
||||||
|
|
||||||
log.WithFields(log.Fields{LogFieldError: msgType, LogFieldDescription: description}).
|
log.WithFields(log.Fields{LogFieldError: msgType, LogFieldDescription: description}).
|
||||||
|
|||||||
@ -2,10 +2,13 @@
|
|||||||
|
|
||||||
builtVersion is a const in main.go
|
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
|
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
|
added test mode into config file to allow testing without connecting to the dispenser
|
||||||
|
|
||||||
#### 1.0.21 - 20 October 2025
|
#### 1.0.21 - 20 October 2025
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user