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 (
|
||||
buildVersion = "1.0.22"
|
||||
buildVersion = "1.0.24"
|
||||
serviceName = "hardlink"
|
||||
)
|
||||
|
||||
|
||||
@ -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}).
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user