Compare commits

..
2 Commits
3 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import (
)
const (
buildVersion = "1.0.22"
buildVersion = "1.0.25"
serviceName = "hardlink"
)
+8 -4
View File
@@ -37,6 +37,8 @@ const (
ReceiptDataMerchant = "RECEIPT_DATA_MERCHANT"
ReceiptDataCardholder = "RECEIPT_DATA_CARDHOLDER"
Reference = "REFERENCE"
PAN_MASKED = "PAN_MASKED"
EXPIRY_DATE = "EXPIRY_DATE"
TransactionResult = "TRANSACTION_RESULT"
TransactionType = "TRANSACTION_TYPE"
ConfirmResult = "CONFIRM_RESULT"
@@ -286,6 +288,8 @@ func BuildRedirectURL(result map[string]string) string {
func buildSuccessURL(result map[string]string) string {
q := url.Values{}
q.Set("CardNumber", hex.EncodeToString([]byte(result[PAN_MASKED])))
q.Set("ExpiryDate", hex.EncodeToString([]byte(result[EXPIRY_DATE])))
q.Set("TxnReference", result[Reference])
q.Set("CardHash", hex.EncodeToString([]byte(result[CardHash])))
q.Set("CardReference", hex.EncodeToString([]byte(result[CardReference])))
@@ -297,11 +301,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}).
+8 -2
View File
@@ -2,10 +2,16 @@
builtVersion is a const in main.go
#### 1.0.23 - 20 October 2025
#### 1.0.25 - 08 December 2025
return masked card number and expiry date in the payment success URL
#### 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