Compare commits
No commits in common. "development" and "1.2.6" have entirely different histories.
developmen
...
1.2.6
2
main.go
2
main.go
@ -29,7 +29,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
buildVersion = "1.2.7"
|
buildVersion = "1.2.6"
|
||||||
serviceName = "hardlink"
|
serviceName = "hardlink"
|
||||||
pollingFrequency = 8 * time.Second
|
pollingFrequency = 8 * time.Second
|
||||||
)
|
)
|
||||||
|
|||||||
@ -155,9 +155,8 @@ func BuildPreauthRedirectURL(result map[string]string) (string, bool) {
|
|||||||
|
|
||||||
func BuildSuccessURL(result map[string]string) string {
|
func BuildSuccessURL(result map[string]string) string {
|
||||||
q := url.Values{}
|
q := url.Values{}
|
||||||
q.Set("CardNumber", hex.EncodeToString([]byte(result[types.PanMasked])))
|
q.Set("CardNumber", hex.EncodeToString([]byte(result[types.PAN_MASKED])))
|
||||||
q.Set("CardType", hex.EncodeToString([]byte(result[types.CardType])))
|
q.Set("ExpiryDate", hex.EncodeToString([]byte(result[types.EXPIRY_DATE])))
|
||||||
q.Set("ExpiryDate", hex.EncodeToString([]byte(result[types.ExpiryDate])))
|
|
||||||
q.Set("TxnReference", result[types.Reference])
|
q.Set("TxnReference", result[types.Reference])
|
||||||
q.Set("CardHash", hex.EncodeToString([]byte(result[types.CardHash])))
|
q.Set("CardHash", hex.EncodeToString([]byte(result[types.CardHash])))
|
||||||
q.Set("CardReference", hex.EncodeToString([]byte(result[types.CardReference])))
|
q.Set("CardReference", hex.EncodeToString([]byte(result[types.CardReference])))
|
||||||
|
|||||||
@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
builtVersion is a const in main.go
|
builtVersion is a const in main.go
|
||||||
|
|
||||||
#### 1.2.7 - 13 May 2026
|
|
||||||
retrieve CardType from the ChepDNA response
|
|
||||||
|
|
||||||
#### 1.2.6 - 20 April 2026
|
#### 1.2.6 - 20 April 2026
|
||||||
added the second attempt to send the card to the encoder after 6 seconds
|
added the second attempt to send the card to the encoder after 6 seconds
|
||||||
|
|
||||||
|
|||||||
@ -39,9 +39,8 @@ const (
|
|||||||
ReceiptDataMerchant = "RECEIPT_DATA_MERCHANT"
|
ReceiptDataMerchant = "RECEIPT_DATA_MERCHANT"
|
||||||
ReceiptDataCardholder = "RECEIPT_DATA_CARDHOLDER"
|
ReceiptDataCardholder = "RECEIPT_DATA_CARDHOLDER"
|
||||||
Reference = "REFERENCE"
|
Reference = "REFERENCE"
|
||||||
CardType = "CARD_SCHEME_ID"
|
PAN_MASKED = "PAN_MASKED"
|
||||||
PanMasked = "PAN_MASKED"
|
EXPIRY_DATE = "EXPIRY_DATE"
|
||||||
ExpiryDate = "EXPIRY_DATE"
|
|
||||||
TransactionResult = "TRANSACTION_RESULT"
|
TransactionResult = "TRANSACTION_RESULT"
|
||||||
TransactionType = "TRANSACTION_TYPE"
|
TransactionType = "TRANSACTION_TYPE"
|
||||||
TransactionState = "TRANSACTION_STATE"
|
TransactionState = "TRANSACTION_STATE"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user