made url parametrs hexadecimal encoded
This commit is contained in:
parent
5e99453eeb
commit
41cf71a253
@ -3,6 +3,7 @@ package payment
|
||||
import (
|
||||
"context"
|
||||
"database/sql"
|
||||
"encoding/hex"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"net/url"
|
||||
@ -261,8 +262,8 @@ func BuildRedirectURL(result map[string]string) string {
|
||||
// 3) build query params
|
||||
q := url.Values{}
|
||||
q.Set("TxnReference", result["REFERENCE"])
|
||||
q.Set("CardHash", result["CARD_HASH"])
|
||||
q.Set("CardReference", result["CARD_REFERENCE"])
|
||||
q.Set("CardHash", hex.EncodeToString([]byte(result["CARD_HASH"])))
|
||||
q.Set("CardReference", hex.EncodeToString([]byte(result["CARD_REFERENCE"])))
|
||||
|
||||
// only append these when non-approved
|
||||
if msgType != "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user