pkg

package
v2.0.26 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RespCodeMD = map[string]string{
	"0000": "结果匹配,信息准确,三个要素完全匹配",
	"0001": "开户名不能为空,开户名不能为空",
	"0002": "银行卡号格式错误,银行卡号格式错误",
	"0003": "身份证号格式错误,身份证号格式错误",
	"0006": "银行卡号不能为空,银行卡号不能为空",
	"0007": "身份证号不能为空,身份证号不能为空",
	"0008": "信息不匹配,信息不匹配",
}

Functions

This section is empty.

Types

type ResBankAuth

type ResBankAuth struct {
	Name        string   `json:"name"`
	CardNo      string   `json:"cardNo"`
	IdNo        string   `json:"idNo"`
	RespMessage string   `json:"respMessage"`
	RespCode    RespCode `json:"respCode"`
	BankName    string   `json:"bankName"`
	BankKind    string   `json:"bankKind"`
	BankType    string   `json:"bankType"`
	BankCode    string   `json:"bankCode"`
}

func BankAuthenticate

func BankAuthenticate(APPCODE, name, cardNo, idNo string) (*ResBankAuth, error)

type RespCode

type RespCode string

func (*RespCode) ErrorValue

func (p *RespCode) ErrorValue() string

Jump to

Keyboard shortcuts

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