Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Decrypt(cipher string) (string, error)
- func (c *Client) Encrypt(plain string) (string, error)
- func (c *Client) MchNO() string
- func (c *Client) MustEncrypt(plain string) string
- func (c *Client) PostForm(ctx context.Context, api, serviceNO string, bizData value.V) (gjson.Result, error)
- func (c *Client) VerifyNotify(form url.Values) (gjson.Result, error)
- type Option
Constants ¶
View Source
const ( SysOK = "SYS000" // 网关受理成功响应码 SysAccepting = "SYS001" // 网关受理中响应码 ComOK = "COM000" // 业务受理成功 ComProcessing = "COM004" // 业务处理中 )
Variables ¶
View Source
var ErrSysAccepting = errors.New("SYS001 | 网关受理中")
ErrSysAccepting 网关受理中
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 银盛支付客户端
func (*Client) MustEncrypt ¶
MustEncrypt 敏感数据DES加密;若发生错误,则Panic
type Option ¶
type Option func(c *Client)
Option 自定义设置项
func WithLogger ¶
WithLogger 设置日志记录
func WithPrivateKey ¶
func WithPrivateKey(key *lib_crypto.PrivateKey) Option
WithPrivateKey 设置商户RSA私钥
Click to show internal directories.
Click to hide internal directories.