|
|
@@ -21,14 +21,16 @@ const ( |
|
|
|
) |
|
|
|
|
|
|
|
func CardPaySend(method string, keyArr map[string]string, param map[string]string) (string, error) { |
|
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
|
url := "https://test-efps.epaylinks.cn/" + method |
|
|
|
//https://efps.epaylinks.cn/ |
|
|
|
for key, value := range param { |
|
|
|
if value == "" { |
|
|
|
delete(param, key) |
|
|
|
} |
|
|
|
} |
|
|
|
param["customerCode"] = keyArr["customerCode"] |
|
|
|
if param["customerCode"] == "" { |
|
|
|
param["customerCode"] = keyArr["customerCode"] |
|
|
|
} |
|
|
|
param["nonceStr"] = randomString(32) |
|
|
|
data := zhios_third_party_utils.SerializeStr(param) |
|
|
|
sign, err := CardPayGetSign(keyArr["privateKeyStr"], data) |
|
|
@@ -53,7 +55,7 @@ func CardPaySend(method string, keyArr map[string]string, param map[string]strin |
|
|
|
|
|
|
|
} |
|
|
|
func CardPaySendSecond(method string, keyArr map[string]string, param map[string]interface{}) (string, error) { |
|
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
|
url := "https://test-efps.epaylinks.cn/" + method |
|
|
|
//https://efps.epaylinks.cn/ |
|
|
|
for key, value := range param { |
|
|
|
if value == "" { |
|
|
@@ -85,7 +87,7 @@ func CardPaySendSecond(method string, keyArr map[string]string, param map[string |
|
|
|
|
|
|
|
} |
|
|
|
func CardPayApplySend(method string, keyArr map[string]string, param map[string]string) (string, error) { |
|
|
|
url := "https://efps.epaylinks.cn/" + method |
|
|
|
url := "https://test-efps.epaylinks.cn/" + method |
|
|
|
//https://efps.epaylinks.cn/ |
|
|
|
for key, value := range param { |
|
|
|
if value == "" { |
|
|
|