开发前,请务必仔细阅读并看懂
获取包:
go get github.com/godcong/wego
建议使用golang/dep添加包:
dep ensure --add github.com/godcong/wego
或者vgo添加:
vgo get github.com/godcong/[email protected]
接口说明可以参考godoc
godoc -http:6060
    cfg := C(util.Map{
        "app_id":"wx1ad61aeexxxxxxx",                //AppId
        "mch_id":"1498xxxxx32",                        //商户ID
        "key":"O9aVVkxxxxxxxxxxxxxxxbZ2NQSJ",    //支付key
        "notify_url":"https://host.address/uri", //支付回调地址
        //如需使用敏感接口(如退款、发送红包等)需要配置 API 证书路径(登录商户平台下载 API 证书)
        "cert_path":"cert/apiclient_cert.pem",   //支付证书地址
        "key_path":"cert/apiclient_key.pem",      //支付证书地址
        //银行转账功能
        "rootca_path":"cert/rootca.pem",     //(可不填)
        "pubkey_path":"cert/publickey.pem",  //(可不填)部分支付使用(如:银行转账)
        "prikey_path":"cert/privatekey.pem", //(可不填)部分支付使用(如:银行转账)
    }
   通过配置config.toml文件,具体参考config.toml.example
    //必要配置
    app_id ='wx1ad61aeexxxxxxx'                //AppId
    mch_id = '1498xxxxx32'                        //商户ID
    key = 'O9aVVkxxxxxxxxxxxxxxxbZ2NQSJ'    //支付key
    notify_url ='https://host.address/uri' //支付回调地址
    //如需使用敏感接口(如退款、发送红包等)需要配置 API 证书路径(登录商户平台下载 API 证书)
    cert_path = 'cert/apiclient_cert.pem'   //支付证书地址
    key_path = 'cert/apiclient_key.pem'      //支付证书地址
    //银行转账功能
    rootca_path = 'cert/rootca.pem'     //(可不填)
    pubkey_path = "cert/publickey.pem"  //(可不填)部分支付使用(如:银行转账)
    prikey_path = "cert/privatekey.pem" //(可不填)部分支付使用(如:银行转账)
公众号 文档待更新
小程序 文档待更新
开放平台 //TODO:
企业微信 //TODO:
企业微信开放平台 //TODO: