diff --git a/main.go b/main.go index c4a45a0..abdb92f 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ import ( ) const ( - buildVersion = "1.0.24" + buildVersion = "1.0.25" serviceName = "hardlink" ) diff --git a/payment/creditcall.go b/payment/creditcall.go index faf53c0..0dd5886 100644 --- a/payment/creditcall.go +++ b/payment/creditcall.go @@ -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]))) diff --git a/release notes.md b/release notes.md index 061fb04..7c8c089 100644 --- a/release notes.md +++ b/release notes.md @@ -2,6 +2,9 @@ builtVersion is a const in main.go +#### 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