1 Star 0 Fork 0

Hiram/alipay

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
face_certify_test.go 993 Bytes
一键复制 编辑 原始数据 按行查看 历史
package alipay_test
import (
"context"
"github.com/smartwalle/alipay/v3"
"testing"
)
func TestClient_FaceVerificationInitialize(t *testing.T) {
t.Log("========== FaceVerificationInitialize ==========")
var p = alipay.FaceVerificationInitialize{}
p.OuterOrderNo = "xxxxxx"
p.BizCode = "DATA_DIGITAL_BIZ_CODE_FACE_VERIFICATION"
p.IdentityType = "CERT_INFO"
p.CertType = "IDENTITY_CARD"
p.CertName = "张三"
p.CertNo = "131128199004234511"
rsp, err := client.FaceVerificationInitialize(context.Background(), p)
if err != nil {
t.Fatal(err)
}
if rsp.IsFailure() {
t.Fatal(rsp.Msg, rsp.SubMsg)
}
t.Logf("%v", rsp)
}
func TestClient_FaceVerificationQuery(t *testing.T) {
t.Log("========== FaceVerificationQuery ==========")
var p = alipay.FaceVerificationQuery{}
p.CertifyId = "xxxxxx"
rsp, err := client.FaceVerificationQuery(context.Background(), p)
if err != nil {
t.Fatal(err)
}
if rsp.IsFailure() {
t.Fatal(rsp.Msg, rsp.SubMsg)
}
t.Logf("%v", rsp)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gbat/alipay.git
git@gitee.com:gbat/alipay.git
gbat
alipay
alipay
master

搜索帮助