Documentation
¶
Index ¶
Constants ¶
View Source
const OK = "000000"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 杉德支付客户端
type Form ¶
Form 数据表单
func NewReqForm ¶
func NewReqForm(method, productID string, body V, options ...HeadOption) *Form
NewReqForm 生成请求数据表单
type HeadOption ¶
type HeadOption func(form *Form)
HeadOption 报文头配置项
func WithAccessType ¶
func WithAccessType(v string) HeadOption
WithAccessType 设置接入类型:1 - 普通商户接入(默认);2 - 平台商户接入
func WithChannelType ¶
func WithChannelType(v string) HeadOption
WithChannelType 设置渠道类型:07 - 互联网(默认);08 - 移动端
func WithPLMid ¶
func WithPLMid(id string) HeadOption
WithPLMid 设置平台ID:接入类型为2时必填,在担保支付模式下填写核心商户号;在杉德宝平台终端模式下填写平台商户号
func WithVersion ¶
func WithVersion(v string) HeadOption
WithVersion 设置版本号:默认:1.0;功能产品号为微信小程序或支付宝生活号,对账单需获取营销优惠金额字段传:3.0
Click to show internal directories.
Click to hide internal directories.