improved logging for creditcall payment processing

This commit is contained in:
2025-11-13 16:06:31 +00:00
parent f4f44da541
commit bb526a248d
3 changed files with 10 additions and 7 deletions
+4 -4
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}).