Documentation ¶
Index ¶
- Constants
- func MerchantApplymentState(v3 ApiV3, merchant string) bool
- type AesUtils
- type ApiV3
- func (this *ApiV3) Call(method string, url string, parameter string) ([]byte, error)
- func (this *ApiV3) DecryptText(ciphertext string) (string, error)
- func (this *ApiV3) DoGet(url string) ([]byte, error)
- func (this *ApiV3) DoPost(url string, body string) ([]byte, error)
- func (this *ApiV3) DownloadFlatPublicKey(filename string) error
- func (this *ApiV3) EncryptText(secretMessage string) (string, error)
- func (this *ApiV3) SetApiV3Key(key string)
- func (this *ApiV3) SetFlatKey(cno string, publickey []byte) error
- func (this *ApiV3) SetMerchantKey(cno string, privatekey []byte) error
Constants ¶
View Source
const (Authorize_authorized = "AUTHORIZE_STATE_AUTHORIZED" Authorize_unauthorized = "AUTHORIZE_STATE_UNAUTHORIZED" )
Variables ¶
This section is empty.
Functions ¶
func MerchantApplymentState ¶
获取特约商户的实名状况
Types ¶
type AesUtils ¶
type AesUtils struct {
// contains filtered or unexported fields
}
*
AES GCM解密方式
func (*AesUtils) DecryptToString ¶
解密文本
type ApiV3 ¶
type ApiV3 struct { //服务商商户号 MerchantId string Nonce string // contains filtered or unexported fields }
*
api v3 协议
func (*ApiV3) DownloadFlatPublicKey ¶
获取平台秘钥,并保存
func (*ApiV3) SetFlatKey ¶
设置平台秘钥信息
Click to show internal directories.
Click to hide internal directories.