An open API service indexing awesome lists of open source software.

https://github.com/cnbattle/allinpay

通联支付 云商通/通商云 golang sdk
https://github.com/cnbattle/allinpay

Last synced: 3 months ago
JSON representation

通联支付 云商通/通商云 golang sdk

Awesome Lists containing this project

README

        

# allinpay

## Demo
```go
package main

import (
"log"

"github.com/cnbattle/allinpay"
)

func main() {
client := allinpay.NewAllInPayClient(allinpay.Config{
AppID: "xxx",
AppSecretKey: "xxx",
AppAccountID: "40000",
PfxPath: "./1581648210684.pfx",
TLCert: "./TLCert-test.cer",
PfxPwd: "123456",
IsProd: false,
Debug: true,
})
params := map[string]interface{}{}
params["bizUserId"] = "golang-test-1"
params["memberType"] = "3"
params["source"] = "1"
data, err := client.Request("allinpay.yunst.memberService.createMember", params)
log.Println(data)
log.Println(err)
}

```