GithubHelp home page GithubHelp logo

unionpay's People

Contributors

panjjo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unionpay's Issues

Demo 里面的代码用不了

Hi

我看到您这边关于 unionpay 的 golang 实现,但是在使用的时候,直接复制 README 里面的代码,

没有 CertPathInfo 这个 Struct,也没有 apiconfig 这个变量

请教一下,能贴出完整的 Golang 实现的 Demo 吗?

sysParams 关于 reserved 保留域名 拼接参数 格式不对

Hello
我在使用您这个库的时候,发现您这边unionpay.go 里面sysParams函数103行跟银联开放平台文档不符合

银联开放平台关于保留域的文档说明如下:

保留域用法说明:1.保留域包含多个子域,所有子域需用“{}”包含,子域间以“&”符号链接。格式如下:{子域名1=值&子域名2=值&子域名3=值}.

库代码相关如下:

	if data.Reserved != nil {
		list := []string{}
		for k, v := range data.Reserved {
			list = append(list, k+"&"+v)       //这里不应该使用 "&"拼接 银联开放平台是用"="拼接
		}
		if len(list) > 0 {
			request["reserved"] = "{" + strings.Join(list, "&") + "}"
		}
	}

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.