|
@@ -21,14 +21,16 @@ const ( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func CardPaySend(method string, keyArr map[string]string, param map[string]string) (string, error) { |
|
|
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/ |
|
|
//https://efps.epaylinks.cn/ |
|
|
for key, value := range param { |
|
|
for key, value := range param { |
|
|
if value == "" { |
|
|
if value == "" { |
|
|
delete(param, key) |
|
|
delete(param, key) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
param["customerCode"] = keyArr["customerCode"] |
|
|
|
|
|
|
|
|
if param["customerCode"] == "" { |
|
|
|
|
|
param["customerCode"] = keyArr["customerCode"] |
|
|
|
|
|
} |
|
|
param["nonceStr"] = randomString(32) |
|
|
param["nonceStr"] = randomString(32) |
|
|
data := zhios_third_party_utils.SerializeStr(param) |
|
|
data := zhios_third_party_utils.SerializeStr(param) |
|
|
sign, err := CardPayGetSign(keyArr["privateKeyStr"], data) |
|
|
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) { |
|
|
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/ |
|
|
//https://efps.epaylinks.cn/ |
|
|
for key, value := range param { |
|
|
for key, value := range param { |
|
|
if value == "" { |
|
|
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) { |
|
|
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/ |
|
|
//https://efps.epaylinks.cn/ |
|
|
for key, value := range param { |
|
|
for key, value := range param { |
|
|
if value == "" { |
|
|
if value == "" { |
|
|