bankcard4c

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// URL 接口地址
	URL = "https://bankcard4c.shumaidata.com/bankcard4c"

	// MsgSuccess 认证成功消息
	MsgSuccess = "认证信息匹配"
	// MsgFailure 认证失败消息
	MsgFailure = "认证失败,请稍后再试"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticateRequest

type AuthenticateRequest struct {
	Name     string `validate:"required" label:"姓名"`                 // 姓名
	IDCard   string `validate:"required,idcard" label:"身份证号"`        // 身份证号
	BankCard string `validate:"required,bankcard" label:"银行卡卡号"`     // 银行卡卡号
	Mobile   string `validate:"required,len=11,number" label:"电话号码"` // 电话号码
}

AuthenticateRequest 银行卡四要素认证请求

type AuthenticateResponse

type AuthenticateResponse struct {
	OrderNo string // 订单号
}

AuthenticateResponse 银行卡四要素认证响应

type BankCard4C

type BankCard4C struct {
	// contains filtered or unexported fields
}

BankCard4C 银行卡四要素认证器

func MustNewBankCard4C

func MustNewBankCard4C(c Config) *BankCard4C

MustNewBankCard4C 新建银行卡四要素认证器

func NewBankCard4C

func NewBankCard4C(c Config) (*BankCard4C, error)

NewBankCard4C 新建银行卡四要素认证器

func (*BankCard4C) Authenticate

Authenticate 银行卡四要素认证

type Config

type Config struct {
	IsMock       bool   `json:",optional"` // 是否模拟通过
	AppKey       string `json:",optional"` // 应用Key
	AppKeySecret string `json:",optional"` // 应用密钥
}

Config 银行卡四要素认证配置

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL