View Source WeChat.Pay (wechat v0.12.0)

微信支付

官方文档

注意 未经上线测试,请谨慎使用

Link to this section Summary

Types

平台证书列表

商户API证书

商户API私钥

商户号

平台证书的序列号

Link to this section Types

@type cacerts() :: [binary()]

平台证书列表

@type client() :: module()
@type client_cert() :: binary()

商户API证书

@type client_key() :: binary()

商户API私钥

@type mch_id() :: binary()

商户号

@type options() :: Enumerable.t()
@type serial_no() :: binary()

平台证书的序列号

Link to this section Functions

Link to this function

build_client(client, options)

View Source
@spec build_client(client(), options()) :: {:ok, client()}

动态构建 client

Link to this function

get_cert(client, serial_no)

View Source
Link to this function

get_requester_opts(client)

View Source
Link to this function

get_requester_spec(id, client, cacerts)

View Source
Link to this function

init_cacerts2storage(client, cacerts)

View Source
Link to this function

put_cert(client, serial_no, cert)

View Source
Link to this function

put_requester_opts(client, id, serial_no)

View Source
Link to this function

remove_cert(client, serial_no)

View Source
Link to this function

start_next_requester(client, opts)

View Source