lbw

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 8 Imported by: 0

README

lbw

兰铂旺服务

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueEncode

func ValueEncode(params map[string]string) string

Types

type Bankcard2C

type Bankcard2C struct {
	Status   bool   // 认证状态
	ErrMsg   string // 错误信息
	OrderId  string // 订单号
	BankName string // 银行名称
}

type IdCard

type IdCard struct {
	Status  bool   // 认证状态
	ErrMsg  string // 错误信息
	OrderId string // 订单号
}

type Service

type Service struct {
	MchInfo     string        // merchant info
	MchId       string        // merchant id
	MchSecurity string        // merchant security
	RiskInfo    string        // risk info
	OrderIdFunc func() string // order id gen
}

func NewService

func NewService(mchName string, mchId string, mchSecurity string, riskInfo string, orderIdFunc func() string) *Service

func (*Service) Bankcard2C

func (s *Service) Bankcard2C(realName string, bankcard string) (*Bankcard2C, error)

func (*Service) IdCard

func (s *Service) IdCard(realName string, cardNo string) (*IdCard, error)

func (*Service) OrderId

func (s *Service) OrderId() string

func (*Service) Sign

func (s *Service) Sign(orderId string, ts string) string

func (*Service) Ts

func (s *Service) Ts() string

Jump to

Keyboard shortcuts

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