Coder Social home page Coder Social logo

wego's Introduction

WEGO a wechat interface for go(golang)

GoDoc license Go Report Card

世界上最好的Go微信开发SDK(时尚,简单,性能卓越)

a fashion fast wechat api for golang

WEGO借鉴了并参考了,当前许多流行的开源微信支付框架.并且为了使性能得到更大提高.全部使用golang进行重构

开发前,请务必仔细阅读并看懂

获取包:

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" //(可不填)部分支付使用(如:银行转账)

Readme

微信支付

公众号 文档待更新

小程序 文档待更新

开放平台 //TODO:

企业微信 //TODO:

企业微信开放平台 //TODO:

具体功能涵盖,微信模板,企业转账,微信红包,微信支付,微信客服,微信小程序等常用接口。

wego's People

Contributors

godcong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wego's Issues

获取domain失败

api domain配置key为official_account,代码中获取api domain的key为 official 导致获取domain失败
` [Debug]/xxx/vendor/github.com/godcong/wego/core/access_token.go|39 [AccessToken|sendRequest

<title>404 Not Found</title>

404 Not Found


nginx ]`

怎么使用

微信支付的文档打不开,SDK怎么使用呢

go get 出现如下错误

../../../go/src/github.com/godcong/wego/util/function.go:129:17: multiple-value uuid.NewV1() in single-value context

undefined: BIZPAYURL

/eagle/vendor/github.com/godcong/wego/core

vendor\github.com\godcong\wego\core\application.go:154:9: undefined: BIZPAYURL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.